GetDocumentRevisionCount
Security and signatures, direct access functionality
Description
Reports the number of incremental revisions stored in a PDF file, without loading it into the full in-memory document model
Revisions are numbered from zero (the original document) upward; each subsequent revision is an incremental update that appended objects to the file
Syntax
Delphi
Function TPDFlib.GetDocumentRevisionCount(Const InputFile, Password: WideString): Integer;Parameters
| InputFile | The path of the PDF file to inspect |
|---|---|
| Password | The open password, or an empty string when the file is not encrypted |
Return value
Returns the revision count, or 0 when the file cannot be read or its revisions cannot be followed
See also
GetDocumentRevisionStart, GetDocumentRevisionEnd, GetDocumentRevisionKind, GetDocumentRevisionChanges, GetSignatureRevisionIndex