GetDocumentRevisionsComplete
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
Reports whether the whole revision history of a document was recoverable
Syntax
Delphi
Function TPDFlib.GetDocumentRevisionsComplete(Const InputFile, Password: WideString): Integer; Virtual;ActiveX
Function PDFlib::GetDocumentRevisionsComplete(InputFile As String, Password As String) As LongDLL
int DLGetDocumentRevisionsComplete(int InstanceID, const wchar_t* InputFile, const wchar_t* Password);
int DLGetDocumentRevisionsCompleteA(int InstanceID, const char* InputFile, const char* Password);Parameters
| InputFile | The document to inspect |
|---|---|
| Password | The password to open it, or an empty string |
Return values
| 1 | The cross-reference chain was followed all the way back, so the revision list is the whole history |
|---|---|
| 0 | It 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