Skip to contents

Returns the (offset, length) pairs that describe which contiguous spans of the original PDF byte stream were covered by the signing digest. A signature typically covers everything except the signature's own /Contents entry, so a normal signed PDF returns two pairs: bytes 0 to just-before-Contents, and bytes just-after-Contents to end-of-file.

Usage

pdf_signature_byte_range(doc, signature_index = 1L)

Arguments

doc

A pdfium_doc from pdf_doc_open(), or a character path.

signature_index

One-based signature index (default 1), as listed by pdf_signatures().

Value

An integer matrix with byte_range_pairs rows and two columns named offset and length (both in bytes).

Details

Wraps FPDFSignatureObj_GetByteRange.