PdfRevision Class
A revision of a document (ISO 32000-2, 7.5.6): the file as it was written by a full save or by one of the incremental updates that follow it. A revision is a prefix of the file, so the document as it was then can be read back.
public sealed class PdfRevisionProperties
| Name | Description |
|---|---|
| Index | Gets the zero-based index of the revision: 0 for the original file, then one per incremental update. |
| IsLatest | Gets a value indicating whether the revision is the last one of the file. |
| Length | Gets the length of the revision in bytes: the prefix of the file it is made of. |
Index
PdfRevision.csIsLatest
PdfRevision.csLength
PdfRevision.csMethods
| Name | Description |
|---|---|
| GetModifications() | Lists the changes made after this revision: the objects, pages, annotations, form fields and signatures that differ between this revision and the document as it is now, the changes not saved yet included. |
| Open(PdfReadOptions?) | Opens the document as it was in this revision. |
GetModifications()
PdfRevision.csLists the changes made after this revision: the objects, pages, annotations, form fields and signatures that differ between this revision and the document as it is now, the changes not saved yet included.
public IReadOnlyList<PdfModification> GetModifications()Returns
IReadOnlyList<PdfModification> The changes, by kind.
Exceptions
InvalidPdfContentException- The revision cannot be read.
Open(PdfReadOptions?)
PdfRevision.csOpens the document as it was in this revision.
public PdfDocument Open(PdfReadOptions? options = null)Parameters
optionsPdfReadOptions?- The read options, or
nullfor those the document was opened with.
Returns
PdfDocument The document of the revision.
Exceptions
InvalidPdfContentException- The revision cannot be read.
PdfResourceLimitException- The revision is larger than 2 GB.