- Changed npm dependency
fontkit
to@denkiyagi/fontkit
- Improved
options
parameter ofPDFDocument#embedFont
- Fix
CustomFontEmbedder#embedCIDFontDict
so that it respects glyph metrics when embedding vertical fonts - Add methods
PDFFont#getRawStandardFont
andPDFFont#getRawCustomFont
- Improve parameters of
PDFPage#drawText
:- Expand the data type of the
text
parameter so that it also accepts Glyph IDs instead of string - Add
fontLayoutAdvancedParams
property to theoptions
parameter
- Expand the data type of the
- (removed)
- Upgraded
crypto-js
- (removed)
- Added border-radius options to
PDFPage#drawRectangle()
- Added encryption feature:
PDFDocument#encrypt()
- Changed the property
PDFDocument#isEncrypted
to a method as it is dynamic now. - Enabled to create/update the document ID:
PDFDocument#updateId()
- (removed)
- Used
fontkit 2
instead of@pdf-lib/fontkit
.- Removed
PDFDocument#registerFontkit()
.fontkit
is included by default.
- Removed
- Added vertical text option.
- Removed support for deno and react-native.
- Upgraded TypeScript version to 4.9.
- Used
import type
and removedexport default
from internal packages.
- Used