TPDFlibRevisionRead

Data types, security and signatures

Description

Answers one query on the incremental revision history of a PDF file.

TPDFlib declares the public methods and a protected dispatch method for reading the incremental revision history of a PDF file. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.

Syntax

Delphi

TPDFlibRevisionRead = Function(Operation: TPDFlibRevisionOperation;
  Const InputFile, Password, FieldOrOutputName: WideString;
  RevisionIndex: Integer; DefaultValue: Int64): Int64 Of Object;

Parameters

OperationQuery to answer; one of the values of TPDFlibRevisionOperation
InputFilePath of the PDF file to inspect
PasswordOpen password, or an empty string when the file is not encrypted
FieldOrOutputNameName of the signature field for roSignatureIndex, target path for roExtract, otherwise an empty string
RevisionIndexZero-based revision number the query applies to; 0 is the original file
DefaultValueResult to return when the query cannot be answered; the documented default of the operation

Return values

T

See also

TPDFlibRevisionOperation, GetDocumentRevisionCount, ExtractDocumentRevision