Package com.itextpdf.kernel.pdf
Class PdfRevisionsReader
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PdfRevisionsReader
-
public class PdfRevisionsReader extends java.lang.Object
Class to retrieve important information about PDF document revisions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PdfRevisionsReader.RevisionsXrefProcessor
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<DocumentRevision>
documentRevisions
private IMetaInfo
metaInfo
private PdfReader
reader
-
Constructor Summary
Constructors Constructor Description PdfRevisionsReader(PdfReader reader)
CreatesPdfRevisionsReader
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DocumentRevision>
getAllRevisions()
Gets information about PDF document revisions.void
setEventCountingMetaInfo(IMetaInfo metaInfo)
Sets theIMetaInfo
that will be used duringPdfDocument
creation.
-
-
-
Field Detail
-
reader
private final PdfReader reader
-
documentRevisions
private java.util.List<DocumentRevision> documentRevisions
-
metaInfo
private IMetaInfo metaInfo
-
-
Constructor Detail
-
PdfRevisionsReader
public PdfRevisionsReader(PdfReader reader)
CreatesPdfRevisionsReader
class.- Parameters:
reader
-PdfReader
instance from which revisions to be collected
-
-
Method Detail
-
setEventCountingMetaInfo
public void setEventCountingMetaInfo(IMetaInfo metaInfo)
Sets theIMetaInfo
that will be used duringPdfDocument
creation.- Parameters:
metaInfo
- meta info to set
-
getAllRevisions
public java.util.List<DocumentRevision> getAllRevisions() throws java.io.IOException
Gets information about PDF document revisions.- Returns:
List
ofDocumentRevision
objects- Throws:
java.io.IOException
- in case of input-output related exceptions during PDF document reading
-
-