Socket
Socket
Sign inDemoInstall

pdfjs

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfjs - npm Package Versions

1
6

2.3.1

Diff

Changelog

Source

[2.3.1] - 2019-09-11

Fixed

  • add missing font type definitions #153
rkusa
published 2.3.0 •

Changelog

Source

[2.3.0] - 2019-05-07

Changed

  • setTemplate now accepts an second optional parameter indicating whether the templates is to used for the first page only #126
rkusa
published 2.2.0 •

Changelog

Source

[2.2.0] - 2019-04-02

Fixed

  • Pages from external documents should always be added with their original size #111
  • Fix parsing documents with nested /Pages objects #117
  • Fix parsing multi-line PDF strings #117

Changed

  • opentype.js has been updated to 0.11.0, which has a minor effect on kerning distances

Added

  • end option for doc.asBuffer #118
rkusa
published 2.1.0 •

Changelog

Source

[2.1.0] - 2018-09-22

Changed

  • When providing less cells than a row has columns, instead of throwing, autofill the row with empty cells #101

Fixed

  • Vertical table border in combinaton with colspan #100
  • Fix cyclic loop when parsing PDFs with TOCs #112
  • Fix to, when adding other PDFs (either as image or whole pages), add objects only once #109
  • Fix parsing of escaped characters in strings #114
rkusa
published 2.0.0 •

Changelog

Source

[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.

Changed

  • The outline method now accepts an outline ID (number) as a valid input for the parent parameter

Fixed

  • Fixed OTF font browser usage (new Font(src) now properly accepts both Node.js Buffer and ArrayBuffer as input)
rkusa
published 2.0.0-alpha.8 •

Changelog

Source

[2.0.0-alpha.8] - 2018-05-13

Added

  • Document outline support

Removed

  • creating AFM fonts from JSON (new Font(require('pdfjs/font/Helvetica.json')) - instead, load the font directly: require('pdfjs/font/Helvetica'))
rkusa
published 2.0.0-alpha.7 •

Changelog

Source

[2.0.0-alpha.7] - 2018-05-03

Deprecated

  • creating AFM fonts is deprecated new Font(require('pdfjs/font/Helvetica.json')), instead load instances directly require('pdfjs/font/Helvetica')

Added

  • Added type definitions for TypeScript #91
  • Added support for parsing Object Streams

Changed

  • Expose Document class instead an anonymous class #92
  • Improved ergonomics of loading AFM fonts (require('pdfjs/font/Helvetica') instead of new Font(require('pdfjs/font/Helvetica.json')))
  • The font option when creating a new Document is now optional and defaults to Helvetica

Fixed

  • Tests should now run on windows #78
rkusa
published 2.0.0-alpha.6 •

Changelog

Source

[2.0.0-alpha.6] - 2018-03-27

Fixed

  • fix kerning for OTF fonts #84
rkusa
published 2.0.0-alpha.5 •

Changelog

Source

[2.0.0-alpha.5] - 2018-03-26

Added

  • implement font kerning (with a minor limitation)

Fixed

  • fixed PDF text not being printed when using macOS print dialog #83 (as a consequence, set PDF version of documents to 1.6)
rkusa
published 2.0.0-alpha.4 •

Changelog

Source

[2.0.0-alpha.4] - 2018-03-21

Fixed

  • fix combination of multiple TTF/OTF fonts in one line #81
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc