GetDocumentRevisionEnd
Security and signatures, direct access functionality
Requires the Small Business edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibSmallBusiness (unit PDFlibSmallBusiness) or TPDFlibEnterprise; the Small Business and Enterprise DLL and ActiveX builds provide it unchanged; the Single edition keeps the method, which returns 0 and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
Description
Reports the byte offset at which one incremental revision ends within the file
Syntax
Delphi
Function TPDFlib.GetDocumentRevisionEnd(Const InputFile, Password: WideString; RevisionIndex: Integer): Int64; Virtual;ActiveX
Function PDFlib::GetDocumentRevisionEnd(InputFile As String, Password As String, RevisionIndex As Long) As LongDLL
long long DLGetDocumentRevisionEnd(int InstanceID, const wchar_t* InputFile, const wchar_t* Password, int RevisionIndex);
long long DLGetDocumentRevisionEndA(int InstanceID, const char* InputFile, const char* Password, int RevisionIndex);Parameters
| InputFile | The path of the PDF file to inspect |
|---|---|
| Password | The open password, or an empty string when the file is not encrypted |
| RevisionIndex | The zero-based revision number whose end offset is requested |
Return values
Returns the byte offset, or 0 on a bad index
Remarks
The offset is 64 bits wide. The DLL and Dylib exports return long long and the Automation member returns a 64-bit integer, so a scripting host without such a type cannot receive an offset past 2 GB; use the Delphi, C++Builder or Lazarus API, or call the export from C, when offsets that large matter
See also
GetDocumentRevisionCount, GetDocumentRevisionStart, GetDocumentRevisionKind