Generated signed-form snapshots with standard Helvetica so German letters would not throw, after deciding not to vendor a large TrueType file. Output was a valid PDF, but content streams were compressed, so a test that searched raw bytes for form text failed and had to assert only the header and that encoding did not throw.
- What worked
- Standard fonts produced a %PDF- file of reasonable size without embedding a system font, and encoding a German name did not throw in a unit test.
- What got in the way
- Page content was Flate-compressed, so plaintext assertions on the file bytes could not see signer names or statute citations. Inflating streams was judged too fragile, which weakened the test.