Releases: foliojs/pdfkit
Releases · foliojs/pdfkit
0.15.2
0.15.1
0.15.0
- Add subset for PDF/UA
- Fix for line breaks in list items (#1486)
- Fix for soft hyphen not being replaced by visible hyphen if necessary (#457)
- Optimize output files by ignoring identity transforms
- Fix for Acroforms - setting an option to false will still apply the flag (#1495)
- Fix for text extraction in PDFium-based viewers due to invalid ToUnicodeMap (#1498)
- Remove deprecated
write
method - Drop support for Node.js < 18 and for browsers released before 2020
0.14.0
0.13.0
0.12.1
v0.12.0
- Add support for Embedded Files and File Attachment Annotations
- Accessibility support
- Replace integration tests by visual regression tests
- Fix access permissions in PDF version 1.7ext3
- Fix Buffer() is deprecation warning
- Add
forms.md
to generate documentation files - Fix "@" in FontName
v0.11.0
- Fix infinite loop when an individual character is bigger than the width of the text.
- Fix infinite loop when text is positioned after page right margin
- Allow links in continued text to be stopped by setting link to null
- Add support to interlaced PNG files
- Do not emit _interopDefault helper in commonjs build
- Fix gradient with multiple stops (#1045)
- Set link annotation flag to print by default
- Add support for AcroForms
- Drop support for (uncommon) cid less fonts on standalone build (reduces bundle size)
v0.10.0
v0.8.0
Switches the font engine from an internal one to fontkit, an advanced text shaping engine I've been working on for a while. For PDFKit, this means the following features and improvements:
- Support for OpenType (CFF), WOFF, and WOFF2 fonts. Previously PDFKit only supported TTF, DFont, and TTC fonts.
- Support for advanced text layout features, including ligatures, kerning, and other advanced glyph substitutions and positioning adjustments.
- Support for OpenType GSUB and GPOS tables, and script specific shapers (currently Arabic and Hangul shapers are included).
- Support for Apple Advanced Typography (morx) substitutions.
- Support for kerning built-in PDF fonts using data from AFM files.
- Support for vertical positioning adjustments, e.g. for accents on non-composite glyphs.
- Fonts are now embedded as CID fonts, meaning support for large character sets like CJK scripts is much improved.
PDFKit's API remains almost exactly the same, the changes are entirely under the covers. The only addition is a new features
option to the doc.text
method, which can be used to apply custom OpenType features to the text. If given, it should be an array of OpenType feature tags. Most of the time, this is unnecessary as the script shaper will automatically apply required features.