TPDFlibRevisionOperation

Data types, security and signatures

Description

Selects which query on the incremental revisions of a PDF file a dispatched call stands for. The value travels with the Operation parameter of the TPDFlibRevisionRead callback; the public methods take no parameter of this type.

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, and this value tells the callback which public method is calling. 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 passes a value of this type.

When no callback is supplied, the public method returns the documented default of the operation: 0, except 7 for roKind, which means the kind could not be determined, and -1 for roSignatureIndex.

Syntax

Delphi

type TPDFlibRevisionOperation = (roCount, roComplete, roStart, roEnd, roKind, roChanges, roSignatureIndex, roExtract);

Values

roCountNumber of incremental revisions stored in the file; the operation behind GetDocumentRevisionCount
roCompleteWhether the whole revision history was recoverable; the operation behind GetDocumentRevisionsComplete
roStartByte offset at which one revision begins; the operation behind GetDocumentRevisionStart
roEndByte offset at which one revision ends; the operation behind GetDocumentRevisionEnd
roKindMost far-reaching kind of change a revision contains; the operation behind GetDocumentRevisionKind
roChangesPer-object detail of the changes a revision contains; the operation behind GetDocumentRevisionChanges
roSignatureIndexRevision at which a signature ByteRange ends; the operation behind GetSignatureRevisionIndex
roExtractWriting of one earlier revision to a new file; the operation behind ExtractDocumentRevision

See also

TPDFlibRevisionRead, GetDocumentRevisionCount, ExtractDocumentRevision