Skip to content

Releases: foliojs/pdfkit

0.19.1

Choose a tag to compare

@blikblum blikblum released this 10 Jun 19:33
  • Fix RGB JPEG embedded as DeviceGray (0.19.0 regression) (#1734)

0.19.0

Choose a tag to compare

@blikblum blikblum released this 07 Jun 12:01
96cd9c7

Highlights in this release are the bump in minimum supported environments (quite conservative), reduce of Node js specific dependencies (EventEmitter, Buffer), more granular image transparency and roundedRect options and the usual quality of life fixes

  • [BREAKING] Bump node version requirement to 20+
  • [BREAKING] Bump minimum supported browsers to Firefox 115, iOS/Safari 16
  • Fix text with input x as null
  • Add opacity option to doc.image() to control image transparency
  • Fix corrupted PDF when mixing standard and embedded fonts that share postscript name
  • Fix PDF/UA compliance issues in kitchen-sink-accessible example
  • Add bbox and placement options to PDFStructureElement for PDF/UA compliance
  • Extend roundedRect with borderRadius as number for all corners or per-corner array (CSS order)
  • Fix accessibility: scope in TH element
  • Fix PDF Name escaping for spot colors with spaces (#1644)

0.18.0

Choose a tag to compare

@blikblum blikblum released this 15 Mar 03:04
  • Fix garbled text copying in Chrome/Edge for PDFs with >256 unique characters (#1659)
  • Fix Link accessibility issues
  • Fix Table Accessibility Issue: Operator CS/cs not allowed in this current state
  • Fix Interlaced PNG with indexed transparency rendered incorrectly
  • Fix SVG path parser incorrectly handle arc flags without separators
  • Add pageLayout option to control how pages are displayed in PDF viewers
  • Preserve existing PageMode instead of overwriting when adding outlines
  • Add userUnit option for custom page units (PDF 1.6)
  • Support outlines that jump to specific page positions with custom zoom level
  • Add robust handling of null byte padding in JPEG images
  • Replace outdated jpeg-exif with minimal implementation
  • Replace outdated crypto-js with maintained small alternatives
  • Fix issue with indentation with indentAllLines: true when a new page is created

0.17.2

Choose a tag to compare

@blikblum blikblum released this 30 Aug 18:19
  • Fix rendering lists that spans across pages

0.17.1

Choose a tag to compare

@blikblum blikblum released this 03 May 04:03
  • Fix null values in table cells rendering as [object Object]
  • Fix further LineWrapper precision issues
  • Optmize standard font handling. Less code, less memory usage

0.17.0

Choose a tag to compare

@liborm85 liborm85 released this 15 Apr 11:01
  • Fix precision rounding issues in LineWrapper
  • Fix fonts without a postscriptName
  • Add support for dynamic sizing
  • Add support for rotatable text
  • Fix page cascade options when text overflows
  • Add table generation
  • Fix y position when using image() without x and y coordinates
  • Improve Prettier configuration

0.16.0

Choose a tag to compare

@liborm85 liborm85 released this 29 Dec 09:45
  • Update fontkit to 2.0
  • Update linebreak to 1.1
  • Add support for spot colors
  • Add support to scale text horizontally
  • Add an option to keep the indentation after a new line starts and allow to indent a whole paragraph/text element
  • Add Name property for set custom icon for note()
  • Fix sets tab order to "Structure" when a document is tagged
  • Fix font cache collision for fonts with missing postscript name or bad TTF metadata or identical metadata for different fonts
  • Fix for embedding fonts into PDF (font name must not contain spaces)
  • Fix measuring text when OpenType features are passed in to .text()

0.15.2

Choose a tag to compare

@liborm85 liborm85 released this 15 Dec 13:00
  • Fix index not counting when rendering ordered lists (#1517)
  • Fix PDF/A3 compliance of attachments
  • Fix CIDSet generation only for PDF/A1 subset
  • Fix missing acroform font dictionary
  • Fix modify time comparison check equality embedded files

0.15.1

Choose a tag to compare

@liborm85 liborm85 released this 30 Oct 13:33
  • Fix browserify transform sRGB_IEC61966_2_1.icc file
  • Fix time comparison check equality embedded files

0.15.0

Choose a tag to compare

@blikblum blikblum released this 24 Mar 01:24
  • 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