mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
0b9a23c550
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