4.6/59

pdfkit

npm i pdfkit

48 Versions

0.13.0

latest
10 months ago
  • Add tiling pattern support

0.12.3

1 year ago

0.12.2

1 year ago

0.12.1

1 year ago
  • Update crypto-js to v3.3 (fix security issue)
  • Update fontkit to 1.8.1

0.12.0

1 year ago
  • 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

0.11.0

3 years ago
  • 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)

0.10.0

3 years ago
  • Fix links to pages within the document
  • Add support for named destinations
  • Throw errors when dash(...) is passed invalid lengths
  • Remove PDFDocument#output method
  • Add standalone build (js/pdfkit.standalone.js)

0.9.1

3 years ago

0.9.0

4 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

6 years ago

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.


0.7.2

7 years ago

0.7.1

7 years ago

This is a fairly minor release. It includes the following fixes and improvements:

  • #331 Diminishing left-margin when inserting lists. Thanks @laszbalo.
  • #343 Fixed wrong XRef size. Thanks @denyskoch.
  • #377 Fixed regression caused by CoffeeScript 1.9.0+. Thanks @leesdolphin.
  • #375 Refactors PDF object representation of strings and buffers. Thanks @Nathanaela.

A precompiled version is attached to the release.


0.7.0

8 years ago

This is a big release. I'd like to thank the contributors listed below for making this possible!

  • Adds support for an optional page buffering feature where you can go back to previous pages to add things like page numbers. Thanks to @ef4. See #302 for the PR, and here for some docs.
  • Fixes indent with the continued option for text. Thanks @ef4. See #300.
  • Fixes center-aligned text with the characterSpacing option. Thanks again @ef4. See #301.
  • Works around missing ascender in ZapfDingbats font. Thanks @ef4. See #303.
  • Fixes an infinite loop when the first word of a text call is longer than the space available in the line. @ef4 again (this guy is awesome!). See #309.
  • Avoids unnecessarily breaking inside words when using continued. @ef4 deserves a medal. See #308.
  • Fixes TTF parsing when PDFKit is minified. Thanks to @yelouafi for this one. See #306.

0.6.5

8 years ago
  • Fixes unicode in annotations (#287)

0.6.4

8 years ago
  • Fixes cmap reading (#276) and some uint32 reading. Thanks @mishoo!

0.6.3

8 years ago
  • Support for new image valign option. It works like the align option but vertically inside the fit area.
  • Support for using ArrayBuffers and Uint8Arrays for loading fonts in the browser.

0.6.2

8 years ago
  • Fixes dependencies for browser demo (brfs broke something in a new version). PR #234
  • Support base64 images - useful in the browser. PR #235
  • Improves underlines for small font sizes. PR #237
  • Removes text state tracking since it wasn't working. Fixes #224. PR #238

Thanks to @ryanwersal for these contributions!


0.6.1

8 years ago
  • Removes use of trimRight method, which doesn't exist in some browsers (cough IE cough).

0.6.0

8 years ago
  • Adds support for using PDFKit in the browser! See the documentation in the readme.
  • Adds support for using Buffers as the source for the font method
  • Fixes some issues with font cmaps

I'm including a prebuilt version of PDFKit here, along with a source map. You can use these if you don't want to use browserify to build your project.


0.5.3

8 years ago

0.5.2

8 years ago

0.5.0

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.8

9 years ago

0.2.7

9 years ago

0.2.6

9 years ago

0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

48 Versions

TagPublished
0.13.0latest10mos ago
0.12.31yr ago
0.12.21yr ago
0.12.11yr ago
0.12.01yr ago
0.11.03yrs ago
0.10.03yrs ago
0.9.13yrs ago
0.9.04yrs ago
0.8.35yrs ago
0.8.25yrs ago
0.8.15yrs ago
0.8.06yrs ago
0.7.27yrs ago
0.7.17yrs ago
0.7.08yrs ago
0.6.58yrs ago
0.6.48yrs ago
0.6.38yrs ago
0.6.28yrs ago
0.6.18yrs ago
0.6.08yrs ago
0.5.38yrs ago
0.5.28yrs ago
0.5.08yrs ago
0.4.38yrs ago
0.4.28yrs ago
0.4.08yrs ago
0.3.08yrs ago
0.2.89yrs ago
0.2.79yrs ago
0.2.69yrs ago
0.2.59yrs ago
0.2.49yrs ago
0.2.39yrs ago
0.2.29yrs ago
0.2.19yrs ago
0.2.09yrs ago
0.1.910yrs ago
0.1.810yrs ago
0.1.710yrs ago
0.1.611yrs ago
0.1.511yrs ago
0.1.411yrs ago
0.1.311yrs ago
0.1.211yrs ago
0.1.111yrs ago
0.1.011yrs ago