Class PdfRevision
The PdfRevision class represents a revision of a PDF document. It holds information about the updates performed on the document.
Inheritance
System.Object
PdfRevision
Namespace: Syncfusion.Pdf.Parsing
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public class PdfRevision : Object
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()
Declaration
public PdfRevision()
Properties
StartPosition
A long integer representing the starting position of the revision within the PDF document.
Declaration
public long StartPosition { get; }
Property Value
Type |
---|
System.Int64 |
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)