Skip to content

Releases: Hopding/pdf-lib

v1.3.2

23 Feb 01:25
Compare
Choose a tag to compare
  • Switch PNG decoding library from png-ts to @pdf-lib/upng to support all PNG formats:
  • Update parser to handle PDFs with missing newline after binary comment:

v1.3.1

01 Jan 17:35
Compare
Choose a tag to compare
  • Fix bug causing jumbled text when copying to clipboard in certain PDF readers:
  • Export decodePDFRawStream:
  • Fix bug preventing document from being saved when it has no pages and addDefaultPage is set to true:

v1.3.0

23 Dec 00:52
Compare
Choose a tag to compare
  • Add option to throw error when invalid objects are parsed (thanks @jwoodrow):
  • Add PDFDocument.setLanguage method to set the document's language metadata (thanks @Mogztter):
  • Remove const enum to support TypeScript projects using the --isolatedModules flag:

v1.2.1

19 Oct 14:20
4a3d795
Compare
Choose a tag to compare
  • Prevent naming conflicts when embedding large numbers of images (Thanks @thebenlamm!):
  • Include parent Resources when normalizing pages:

v1.2.0

09 Oct 02:32
Compare
Choose a tag to compare

v1.1.1

25 Sep 23:20
09ff093
Compare
Choose a tag to compare

v1.0.1

04 Aug 17:56
Compare
Choose a tag to compare
  • Fix bug causing PDFDocument.getPageCount() to return undefined:

v1.0.0

28 Jul 00:47
Compare
Choose a tag to compare

This release is a complete rewrite of pdf-lib.

This rewrite was extensive, touching every part of the library. Here is a high-level overview of the changes and improvements:

  • A new high level API
  • Much faster parser
  • More robust parser
  • Smaller bundle size (you must now opt-in to using fontkit if you use custom fonts)
  • Better handling of encrypted documents
  • Improved automated test coverage
  • Improved manual test coverage
  • New project site (https://pdf-lib.js.org)
  • Improved documentation
  • Improved examples
  • Cleaner build system
  • Async APIs to avoid blocking the event loop (especially important for client-side usage)
  • Cleaner project/code structure

v0.6.4

21 Jul 00:05
Compare
Choose a tag to compare
  • Support copying pages with missing Parent entries.
  • Fix name decoding bug.
  • Handle parsing streams with invalid stream keyword EOLs.

v0.6.3

02 Jun 14:23
Compare
Choose a tag to compare