Class PdfRevision
- Namespace
- Syncfusion.Pdf.Parsing
- Assembly
- Syncfusion.Pdf.Portable.dll
The PdfRevision class represents a revision of a PDF document. It holds information about the updates performed on the document.
public class PdfRevision
- Inheritance
-
PdfRevision
- Inherited Members
Examples
//Loads an existing document
PdfLoadedDocument document = new PdfLoadedDocument(filename);
//Gets the revisions of the document
PdfRevision[] revisions = document.Revisions;
foreach(PdfRevision rev in revisions)
{
//Gets the revision start position
long startPosition = rev.StartPosition;
}
//Load the existing signature field
PdfLoadedSignatureField field = document.Form.Fields[0] as PdfLoadedSignatureField;
//Gets the revision index of the signature
int revisionIndex = field.Revision;
// Close the document
document.Close(true);
'Loads an existing document
Dim document As PdfLoadedDocument = New PdfLoadedDocument(filename)
'Gets the revisions of the document
Dim revisions() As PdfRevision = document.Revisions
For Each rev As PdfRevision In revisions
'Gets the revision start position
Dim startPosition As Long = rev.StartPosition
Next
'Load the existing signature field
Dim field As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField)
'Gets the revision index of the signature
Dim revisionIndex As Integer = field.Revision
' Close the document
document.Close(true)
Constructors
PdfRevision()
public PdfRevision()
Properties
StartPosition
A long integer representing the starting position of the revision within the PDF document.
public long StartPosition { get; }
Property Value
Examples
//Loads an existing document
PdfLoadedDocument document = new PdfLoadedDocument(filename);
//Gets the revisions of the document
PdfRevision[] revisions = document.Revisions;
foreach(PdfRevision rev in revisions)
{
//Gets the revision start position
long startPosition = rev.StartPosition;
}
//Load the existing signature field
PdfLoadedSignatureField field = document.Form.Fields[0] as PdfLoadedSignatureField;
//Gets the revision index of the signature
int revisionIndex = field.Revision;
// Close the document
document.Close(true);
'Loads an existing document
Dim document As PdfLoadedDocument = New PdfLoadedDocument(filename)
'Gets the revisions of the document
Dim revisions() As PdfRevision = document.Revisions
For Each rev As PdfRevision In revisions
'Gets the revision start position
Dim startPosition As Long = rev.StartPosition
Next
'Load the existing signature field
Dim field As PdfLoadedSignatureField = CType(document.Form.Fields(0),PdfLoadedSignatureField)
'Gets the revision index of the signature
Dim revisionIndex As Integer = field.Revision
' Close the document
document.Close(true)