GetDocumentRevisionKind
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 7 and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
Description
Classifies what one revision changed, expressed as the most far-reaching of the objects it touched
Syntax
Delphi
Function TPDFlib.GetDocumentRevisionKind(Const InputFile, Password: WideString; RevisionIndex: Integer): Integer; Virtual;ActiveX
Function PDFlib::GetDocumentRevisionKind(InputFile As String, Password As String, RevisionIndex As Long) As LongDLL
int DLGetDocumentRevisionKind(int InstanceID, const wchar_t* InputFile, const wchar_t* Password, int RevisionIndex);
int DLGetDocumentRevisionKindA(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 kind is requested |
Return values
| 0 | Bookkeeping only |
|---|---|
| 1 | Validation material (DSS or VRI) |
| 2 | A document time stamp |
| 3 | A signature |
| 4 | A form field |
| 5 | An annotation |
| 6 | Document content |
| 7 | Could not be determined; the revision must not be treated as harmless because something in it could not be read |
See also
GetDocumentRevisionCount, GetDocumentRevisionChanges, GetSignatureRevisionIndex