Changelog
[2.3.0] - 2019-05-07
Changelog
[2.2.0] - 2019-04-02
opentype.js
has been updated to 0.11.0
, which has a minor effect on kerning distancesend
option for doc.asBuffer
#118Changelog
[2.1.0] - 2018-09-22
Changelog
[2.0.0] - 2018-06-19
Version 2.0.0
is a re-write. The implementation is expected to settle with the current approach of streaming layouting with smart content chunking, which allows for having a small memory footprint even when creating a PDF document with thousands of pages.
2.0.0
requires Node >= 7. If you get an error on require('pdfjs')
you are probably using an older Node.js version, which can be fixed by updating Node.js or by running pdfjs through a transpiler like babel.
new Font(src)
now properly accepts both Node.js Buffer and ArrayBuffer as input)Changelog
[2.0.0-alpha.8] - 2018-05-13
new Font(require('pdfjs/font/Helvetica.json'))
- instead, load the font directly: require('pdfjs/font/Helvetica')
)Changelog
[2.0.0-alpha.7] - 2018-05-03
new Font(require('pdfjs/font/Helvetica.json'))
, instead load instances directly require('pdfjs/font/Helvetica')
require('pdfjs/font/Helvetica')
instead of new Font(require('pdfjs/font/Helvetica.json'))
)font
option when creating a new Document
is now optional and defaults to HelveticaChangelog
[2.0.0-alpha.6] - 2018-03-27
Changelog
[2.0.0-alpha.5] - 2018-03-26