TPDFlibSignatureByteRange
security and signatures
Requires the Enterprise edition — the type is declared in the Enterprise unit PDFlibEntSignVerify, which other editions do not include
Description
TPDFlibSignatureByteRange is an alias of TPLSignatureByteRange, the fixed array of four Int64 values that mirrors the /ByteRange entry of a signature dictionary. The two names denote the same type, so a value of one is a value of the other and no conversion is needed.
The alias is declared in the Enterprise unit PDFlibEntSignVerify and requires the Enterprise edition; the base type is declared in unit PDFlibCMSRead. The verification code of TPDFlibSignatureVerifier uses the alias in its private methods, and no public method takes or returns it, so application code only needs it for variables passed around with that code.
Syntax
TPDFlibSignatureByteRange = TPLSignatureByteRange;Fields
| [0] | Offset of the first signed range in the file |
|---|---|
| [1] | Length of the first signed range |
| [2] | Offset of the second signed range, after the /Contents gap |
| [3] | Length of the second signed range |
Remarks
The verification code of TPDFlibSignatureVerifier reads the /ByteRange of a signature into a value of this type and hands it to the integrity and time-stamp checks; their outcome reaches the application through flags such as ByteRangeValid of TPDFlibSignatureVerificationReport.
TPDFlibSignatureTimeStampProcess.PrepareHash reads the byte ranges of all other signatures of the document into values of this type, to refuse a /Contents placeholder that one of them covers (result 17).
The type is a plain static array: an assignment copies the four values and no memory is owned. The rules a range has to satisfy are described under TPLSignatureByteRange.
See also
TPLSignatureByteRange, TPDFlibSignatureVerifier, TPDFlibSignatureTimeStampProcess, PrepareHash