Skip to content

Reader and recipient acceptance

Use the release candidate to generate synthetic fixtures, with the Python reader packages listed in the PDF interoperability CI job and OpenSSL, Poppler and NSS certutil available on PATH.

python3 bench/pdf-profiles/check-native.py target/release/pressjet --check-readers \
  --artifacts /tmp/pressjet-recipient-accessible
python3 scripts/check-pdf-readers.py target/release/pressjet --check-nss \
  --certify-input /tmp/pressjet-recipient-accessible/ua2-native.pdf \
  --artifacts /tmp/pressjet-recipient-fixtures

The output folders contain public test material. The root certificate is a temporary fixture trust anchor. Use it only in a dedicated test profile. Regenerate the fixture if the certificate has expired.

Fixture Expected verification
fields.pdf The account name is required, the checkbox is off and the reference is read-only.
edited.pdf, edited-pdfium.pdf The account name and selected checkbox survive saving in one reader and reopening in the other.
certified.pdf The byte range and certification policy validate. The certificate chain is trusted when using the fixture root.
changed-bytes.pdf Signature integrity fails.
appended-page.pdf Cryptographic integrity of the original revision passes and the certification policy rejects the appended page.
certified-input.pdf The PDF/UA-2 sample remains compliant after certification. The verifier accepts it with certified-input-root.pem.
ua2-native.pdf Bookmarks with identical titles go to separate pages, internal links jump in both directions and image navigation reads Blue square.
ua2-html.pdf The external link, headings, list, table and image description can be reached in the expected reading order.

The automated check edits and saves the form in MuPDF and PDFium, then reopens the result in both readers to verify field values, labels and flags. PDFium also checks the rendered changes. Poppler checks the signature and tests certificate trust before and after the fixture root is imported into a temporary NSS store. pyHanko checks trust and the certification policy. CI also validates the certified accessible PDF with veraPDF. Poppler tools · pyHanko validation

Firefox and Orca on Linux

Open ua2-html.pdf with Firefox's built-in PDF viewer and focus the page content. With Orca running, navigate to the heading, link, list and table using its structural navigation commands. The expected reading order is Inventory, the public inventory link, First entry and Second entry, then the Region and Orders table headers and the row North, 42.

Firefox 160.0.1 exposed those roles in order to AT-SPI. In the local Orca session, keyboard navigation produced speech for the Inventory heading, public inventory link, First entry and the table, including the Region header and the North, 42 row. The native fixture embeds the image rectangle and its alternative text in the figure tag. Focus the internal link that follows the image and press Shift+G in Orca to navigate to the previous image. Orca 50.3 announced Blue square as an image in the local test. Firefox PDF accessibility · Orca

Verify a delivered PDF

Run the recipient check with pyHanko 0.38.2, the delivered PDF and the public trust anchors approved by its recipient. Use one --trust-anchor per PEM or DER file.

python3 scripts/verify_recipient_pdf.py delivered.pdf --trust-anchor recipient-root.pem \
  --require-certification

The command verifies the integrity and coverage of the PDF, the signing chain and the declared document modification policy. It uses only the supplied trust anchors and does not make network requests. It returns an exit code of 0 when the checks pass and a JSON result with each signature's certificate fingerprint and status. The certification flag requires the no-edits policy. Omit it for an ordinary approval signature.