GetDocumentRevisionChanges

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, an empty string or False and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

Description

Returns per-object detail for one revision, one line per changed object, formatted as objnum,change,class,detail where change is added, modified or freed

Syntax

Delphi

Function TPDFlib.GetDocumentRevisionChanges(Const InputFile, Password: WideString; RevisionIndex: Integer): Integer; Virtual;

ActiveX

Function PDFlib::GetDocumentRevisionChanges(InputFile As String, Password As String, RevisionIndex As Long) As Long

DLL

int DLGetDocumentRevisionChanges(int InstanceID, const wchar_t* InputFile, const wchar_t* Password, int RevisionIndex);
int DLGetDocumentRevisionChangesA(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 changes are requested

Return values

Returns a string-list handle to release with ReleaseStringList, or 0 when the file cannot be read

See also

GetDocumentRevisionCount, GetDocumentRevisionKind, GetStringListItem, ReleaseStringList