documenso/packages/lib/server-only/pdf
Lucas Smith 03ca3971a0
perf: upgrade @libpdf/core to 0.3.3 and deduplicate font registration (#2598)
Upgrade @libpdf/core from 0.2.12 to 0.3.3, which includes:
- WebCrypto SHA-256 replacing pure-JS @noble/hashes (10x signing
speedup)
- Iterative collectReachableRefs (fixes stack overflow on large PDFs)
- Iterative Math.max helpers in xref writer (fixes remaining stack
overflow)

Extract duplicated FontLibrary.use() calls from render-certificate,
render-audit-logs, and insert-field-in-pdf-v2 into a shared
ensureFontLibrary() helper with has() guards so fonts are only
registered once per process.
2026-03-11 20:23:18 +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: match cert and audit log page dimensions to source document (#2473) 2026-02-12 18:25:11 +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