mirror of
https://github.com/documenso/documenso.git
synced 2026-08-19 21:11:54 +10:00
Some PDFs have CropBox or MediaBox entries stored as a PDFDict instead of the expected PDFArray, causing pdf-lib to throw during lookup. Wrap both box lookups in try-catch and fall back to A4 dimensions when neither can be parsed