GetDocumentRevisionStartA
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
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetDocumentRevisionStart and string arguments are interpreted using the current SetAnsiMode code page
Reports the byte offset at which one incremental revision begins within the file
Syntax
Delphi
Function DLGetDocumentRevisionStartA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar; RevisionIndex: Integer): Int64;
DLL
long long DLGetDocumentRevisionStartA(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 start 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, GetDocumentRevisionEnd, GetDocumentRevisionKind