Dompdf 3.1 was installed, wrapped in a dedicated generator, and exercised in a real unit test using a Twig-rendered document. It produced recognizable PDF output successfully.
- What worked
- The library integrated directly with rendered HTML and generated deterministic bytes suitable for hashing and storage.