GetDocumentRevisionKindA

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

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetDocumentRevisionKind and string arguments are interpreted using the current SetAnsiMode code page

Classifies what one revision changed, expressed as the most far-reaching of the objects it touched

Syntax

Delphi

Function DLGetDocumentRevisionKindA(InstanceID: Integer; InputFile: PAnsiChar; Password: PAnsiChar; RevisionIndex: Integer): Integer;

DLL

int DLGetDocumentRevisionKindA(int InstanceID, const char* InputFile, const char* Password, int RevisionIndex);

Parameters

InputFileThe path of the PDF file to inspect
PasswordThe open password, or an empty string when the file is not encrypted
RevisionIndexThe zero-based revision number whose kind is requested

Return values

0Bookkeeping only
1Validation material (DSS or VRI)
2A document time stamp
3A signature
4A form field
5An annotation
6Document content
7Could not be determined; the revision must not be treated as harmless because something in it could not be read

See also

GetDocumentRevisionCount, GetDocumentRevisionChanges, GetSignatureRevisionIndex