Skip to content

v1.17.1-mod.2025.8

Choose a tag to compare

@falworks-dy falworks-dy released this 27 Nov 08:15
· 7 commits to denkiyagi-fork since this release
4f24c70

What's Changed

  • 入出力形式単純化: WOFF系フォントの入力およびBase64形式の入出力をオミット by @falworks-dy in #11
  • APIが出しうる例外を pdf-lib 独自のエラークラスに統一 by @falworks-dy in #12

Full Changelog: v1.17.1-mod.2025.7...v1.17.1-mod.2025.8

From MODIFICATIONS.md

Feature Removals

  • Remove WOFF/WOFF2/DFont support from PDFDocument#embedFont by updating @denkiyagi/fontkit to 2.0.4-mod.2025.4;
    only *.ttf and *.otf font formats are now supported.
  • Remove Base64 string/dataURI inputs across PDFDocument loading, embedding, and attachments;
    binary data must now be provided as Uint8Array or ArrayBuffer.
  • Remove Base64 output by removing the PDFDocument#saveAsBase64 method;
    use PDFDocument#save which resolves a Uint8Array instead.

Error Handling

  • Introduced PDFLibError (exported from src/core) with a machine-readable type: PDFLibErrorType to classify errors.
  • Refactored API/core/utils errors so that all errors extend PDFLibError instead of throwing bare Error/TypeError.
  • Normalize external failure surfaces by catching @denkiyagi/fontkit and @pdf-lib/upng exceptions and rethrowing corresponding PDFLibError subclasses (e.g., InvalidFontDataError) instead of leaking third-party errors.

Internal Changes

  • Update several devDependencies including typescript to their latest versions.