documenso/packages/lib/server-only/pdf
Lucas Smith 0b9a23c550
fix: handle malformed pdf cropbox/mediabox entries (#2668)
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
2026-04-02 18:58:13 +11:00
..
add-rejection-stamp-to-pdf.ts refactor: replace pdf-sign with libpdf/core for PDF operations (#2403) 2026-01-21 15:16:23 +11:00
auto-place-fields.ts fix: auto placement field meta (#2480) 2026-02-12 14:20:52 +11:00
generate-audit-log-pdf.ts fix: highlight rejected certificate text (#2478) 2026-02-12 16:06:43 +11:00
generate-certificate-pdf.ts fix: highlight rejected certificate text (#2478) 2026-02-12 16:06:43 +11:00
get-page-size.ts fix: handle malformed pdf cropbox/mediabox entries (#2668) 2026-04-02 18:58:13 +11:00
helpers.ts perf: upgrade @libpdf/core to 0.3.3 and deduplicate font registration (#2598) 2026-03-11 20:23:18 +11:00
insert-field-in-pdf-v1.ts fix: update server only urls to use private internal web app url (#2290) 2025-12-08 12:56:41 +11:00
insert-field-in-pdf-v2.ts perf: upgrade @libpdf/core to 0.3.3 and deduplicate font registration (#2598) 2026-03-11 20:23:18 +11:00
insert-form-values-in-pdf.ts refactor: replace pdf-sign with libpdf/core for PDF operations (#2403) 2026-01-21 15:16:23 +11:00
legacy-insert-field-in-pdf.ts fix: update server only urls to use private internal web app url (#2290) 2025-12-08 12:56:41 +11:00
normalize-pdf.ts feat: autoplace fields from placeholders (#2111) 2026-01-29 13:13:45 +11:00
render-audit-logs.ts perf: upgrade @libpdf/core to 0.3.3 and deduplicate font registration (#2598) 2026-03-11 20:23:18 +11:00
render-certificate.ts perf: upgrade @libpdf/core to 0.3.3 and deduplicate font registration (#2598) 2026-03-11 20:23:18 +11:00