GetDocumentRevisionsCompleteA

Digital signatures

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, an empty string or False 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 GetDocumentRevisionsComplete and string arguments are interpreted using the current SetAnsiMode code page

Reports whether the whole revision history of a document was recoverable

Syntax

Delphi

Function DLGetDocumentRevisionsCompleteA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar): Integer;

DLL

int DLGetDocumentRevisionsCompleteA(int InstanceID, const char* InputFile, const char* Password);

Parameters

InputFileThe document to inspect
PasswordThe password to open it, or an empty string

Return values

1The cross-reference chain was followed all the way back, so the revision list is the whole history
0It was not, or the file could not be read

Remarks

A chain that is broken, cyclic, or longer than the reader will follow leaves the oldest updates unseen. Every figure from GetDocumentRevisionCount and the indices used by the other revision functions are then a lower bound rather than an answer, and a conclusion drawn from them about what a signature covers is not safe. Check this before treating a revision analysis as final

See also

GetDocumentRevisionCount, GetDocumentRevisionKind, GetSignatureRevisionIndex