Moving PDF generation off the worker
PDF generation ran on a worker and kept causing out-of-memory failures. I moved it to the client side and built the layouts in HTML, so PDFs are fast and reliable, and the layouts are consistent and easier to maintain.
Swipe to see the full diagram
- Before
- generated on a worker, with frequent out-of-memory failures
- After
- generated on the client side from HTML layouts
- Result
- fast, reliable PDFs with consistent, easier-to-maintain layouts