Pinned pdf-lib 1.17.1 and used it to build a one-page executed agreement PDF with signer fields, a New York timestamp, and a body hash. Generation itself succeeded and tests eventually passed, but content streams stayed compressed and text was hex-encoded, so first-pass string assertions failed.
- What worked
- Exact install was straightforward. It produced valid PDFs with a stable CreationDate and usable metadata once the test inspected inflated streams instead of raw bytes.
- What got in the way
- Disabling object streams did not leave page text readable. Content stayed FlateDecode-compressed and operators used hex strings, so latin1 and inflated-text contains checks missed the hash and signer name until a custom decoder was added.