Skip to content

Releases: Hopding/pdf-lib

v0.6.2

05 May 00:34
Compare
Choose a tag to compare
  • Add sizeOfFontAtHeight methods to font factories.
  • Fix cross reference table/stream offset calculation bug.
  • Fix PDFString serialization (remove incorrect escapes).
  • Fix parser hang for certain PDFs.
  • Fix object stream decoding for certain PDFs. Thanks @mlecoq!

v0.6.1

09 Mar 23:01
Compare
Choose a tag to compare
  • Fix existing page normalization bug.
  • Fix parsing error when parsing certain invalid streams.
  • Fix bug causing miscalculation of maxObjectNumber when parsing certain object streams.
  • Fix parsing error when parsing PDFs with non-encoded file streams.

v0.6.0

30 Dec 03:12
Compare
Choose a tag to compare

v0.5.1

20 Dec 16:38
Compare
Choose a tag to compare
  • Reduce minified bundle size from 1.1 MB to 864.26 KB for a 21% decrease in size. Before and after.
  • Fix usages of new Function() in dependencies that violate Content Security Policy settings.

v0.5.0

16 Dec 17:03
Compare
Choose a tag to compare
  • Add support for copying pages between different PDF documents.
    See examples here and here.

v0.4.1

23 Nov 15:53
Compare
Choose a tag to compare
  • Add support for parsing and modifying PDFs with comments.

v0.4.0

30 Oct 23:44
Compare
Choose a tag to compare
  • Add support for all characters in the WinAnsi character set for the Standard 14 Fonts. This allows certain non-ascii characters to be used when drawing text in PDFs (example). Thanks @jerp!
  • Several parser bug fixes. These allow a wider set of PDFs to be edited and modified without errors. Thanks @gregbacchus!

v0.3.0

26 Aug 17:35
Compare
Choose a tag to compare

v0.2.1

07 Jul 21:10
d06c6d5
Compare
Choose a tag to compare
  • Fix PDF parsing bug due to missing EOL characters that are supposed to precede the endstream keyword.
  • Add automatic content stream normalization.
  • Add argument validation to PDFDocumentFactory.load() method to ensure users pass it a Uint8Array (instead of, say, a Blob)

v0.2.0

24 Jun 22:51
Compare
Choose a tag to compare
  • Add ES6 module build to NPM release (in the es folder).
  • Add UMD build to NPM release (dist/pdf-lib.js).
  • Add minified UMD build to NPM release (dist/pdf-lib.min.js).
  • Fix issue with compiled TypeScript declaration files not having the same relative import paths as the compiled JS files.
  • Change import paths:
    • pdf-lib/x/y/z is no longer valid.
    • pdf-lib/lib/x/y/z is the CommonJS module.
    • pdf-lib/es/x/y/z is the ES6 module.
    • pdf-lib now directly exports all public classes and functions. For example:
      // v0.1.0
      import { PDFDocumentWriter, PDFDocumentFactory } from 'pdf-lib/core/pdf-document';
      import { drawText } from 'pdf-lib/helpers/pdf-operators/composite';
    
      // Now
      import {
        PDFDocumentWriter,
        PDFDocumentFactory,
        drawText,
      } from 'pdf-lib';