Read the raw bytes of a PDF signature's contents blob
Source:R/signatures.R
pdf_signature_contents.RdReturns 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)).
Arguments
- doc
A
pdfium_docfrompdf_doc_open(), or a character path.- signature_index
One-based signature index (default
1), as listed bypdf_signatures().