All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- The outline method now accepts an outline ID (number) as a valid input for the parent parameter
- Fixed OTF font browser usage (
new Font(src)
now properly accepts both Node.js Buffer and ArrayBuffer as input)
- Document outline support
- creating AFM fonts from JSON (
new Font(require('pdfjs/font/Helvetica.json'))
- instead, load the font directly:require('pdfjs/font/Helvetica')
)
- creating AFM fonts is deprecated
new Font(require('pdfjs/font/Helvetica.json'))
, instead load instances directlyrequire('pdfjs/font/Helvetica')
- Added type definitions for TypeScript #91
- Added support for parsing Object Streams
- Expose Document class instead an anonymous class #92
- Improved ergonomics of loading AFM fonts (
require('pdfjs/font/Helvetica')
instead ofnew Font(require('pdfjs/font/Helvetica.json'))
) - The
font
option when creating anew Document
is now optional and defaults to Helvetica
- Tests should now run on windows #78
- fix kerning for OTF fonts #84
- implement font kerning (with a minor limitation)
- fixed PDF text not being printed when using macOS print dialog #83 (as a consequence, set PDF version of documents to 1.6)
- fix combination of multiple TTF/OTF fonts in one line #81
- Text decoration underline and strikethrough
- fix font re-use to not include glyphs from other documents