Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
The placement cases carry controls: a Helvetica line beside the Symbol one, and a default indent
beside the infinite one. They catch a change that always places the line at the Symbol position or
always drops the item text.
- **The bytes of the document catalog are now pinned as tests (#606).** `CatalogGoldenTests` holds
63 cases that pin what `PdfDocument.Save` and `PdfDocument.PrepareForSigning` write for the
catalog. Each configuration (11 on `Save`, 9
on the signing path) is pinned by the SHA-256 of the whole file, and each classic-xref one also by
the exact text of the catalog object. The hash is taken after inflating every `/FlateDecode`
stream and masking byte offsets and the contents of every hint stream and
cross-reference stream, so it does not move when the compressor's output does; the
catalog text is not normalised. The tests pin that `Save` writes `/AcroForm` after
`/StructTreeRoot` and before `/OutputIntents`, and only for a document with form fields, that the
signing path writes it straight after `/Metadata`, and that the two paths number the
output-intent object differently when a document has an outline and a PDF/A claim. A catalog
holding every optional key and one holding only `/Lang` cover the key order and the `/Lang`
condition. Every file also goes through `qpdf --check`. Tests only.

### Changed

Expand Down
Loading
Loading