Skip to contents

Returns the DER-encoded PKCS#7 (for adbe.pkcs7.* / ETSI.CAdES.detached sub-filters) or PKCS#1 (for adbe.x509.rsa_sha1) signature blob. Feed this into a PKI library to actually verify the signature (e.g. openssl::pkcs7_verify(bytes, data = signed_bytes)).

Usage

pdf_signature_contents(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

A raw vector of the signature blob.

Details

Wraps FPDFSignatureObj_GetContents.