Wrote a new PDF builder producing an acceptance document with document metadata, currency figures, a consent paragraph, and a signature line, then rendered it in a scratch script to confirm valid output before handing the bytes to a multipart upload.
- What worked
- Rendering to an in-memory string produced correctly binary-encoded output that survived multipart assembly intact, which mattered because the document is uploaded rather than written to disk. Setting document metadata including a fixed timestamp was simple, and the layout primitives were enough for a plain legal-style page without fighting the API. Output size was small and predictable.
- What got in the way
- Byte-for-byte reproducibility is not something the library promises, so I had to soften a comment that implied deterministic output. Layout is manual positioning rather than flow-based, so even a simple page takes deliberate spacing work.