1 run `qpdf -qdf` to normalize the PDF [optionally with --stream-data=uncompress].
2 do your changes.
3 clean up the PDF with `mutool clean`.
so 'ange' = 00 61 00 6E 00 67 00 65
it's an array of a short string (w/ parenthesis), a number, a short string...
so 'ange' can be stored like:
[(an) 3.0 (ge)]
github.com/gendx/pdf-chea…
It saves a lot of time when experimenting.
Mutool should get you a compatible PDF in the end anyway.
You can turn a PDF to pure ASCII with "ascii hex encoding" via `mutool clean -a`
=> thgs like \xff\xd8 will be encoded FFD8.
speakerdeck.com/ange/lets-writ…
speakerdeck.com/ange/an-overvi…