Start with an untouched PDF
This workflow is for document reviewers, records teams, and security engineers who need a defensible technical record for a signed PDF. Save the received bytes as an evidence copy. Note where it came from, which version was received, and when it was acquired. Hash that copy before opening it in an editor or running a repair.
Compare integrity evidence
Use file-hash-verifier with the declared algorithm and retain the digest together with the file metadata. Then use checksum-comparator to compare it with the reference value from the approved source. A match means the two values describe the same bytes under the chosen algorithm; it does not prove that the reference publisher authored the PDF. A mismatch should remain a visible failure with its source and algorithm recorded.
Verify signatures and set the boundary
Run pdf-signature-verify on the preserved PDF. Record verification, document integrity, expiry, signature count, signer metadata, and available issuer, subject, validity, and chain details. Review those findings against a separate trust policy, including the expected issuer or fingerprint and any revocation rules. Keep four conclusions distinct: byte integrity, cryptographic signature status, certificate trust, and human or legal review. Tool results do not automatically create legal validity or guarantee the signer's identity.
Finish with a reviewable decision
Accept only when the evidence fields required by your policy are present and consistent. If any digest, signature, certificate, or trust field is missing, expired, unknown, or contradictory, preserve the original evidence and route the document for human review instead of trying alternate copies until one passes.