Used the existing PDF library to build the settlement acceptance document with signature and date anchors for the e-sign vendor. Files were valid PDFs, but compressed hex streams made literal text checks fail until tests searched encoded content.
- What worked
- It produced a settlement PDF the rest of the flow could send, and simple documents still contained the needed header and claim identifiers.
- What got in the way
- Default stream compression hex-encoded body text, so assertions on visible phrases and tab anchors could not match raw bytes without an encoded-content fallback.