pdf-lib

Create and modify PDF documents in any JavaScript environment

MIT License

Downloads
4M
Stars
6.3K
Committers
33

Bot releases are hidden (Show)

pdf-lib - v1.3.2

Published by Hopding over 4 years ago

pdf-lib - v1.3.1

Published by Hopding almost 5 years ago

pdf-lib - v1.3.0

Published by Hopding almost 5 years ago

pdf-lib - v1.2.1

Published by Hopding about 5 years ago

pdf-lib - v1.2.0

Published by Hopding about 5 years ago

pdf-lib - v1.1.1

Published by Hopding about 5 years ago

pdf-lib - v1.0.1

Published by Hopding about 5 years ago

pdf-lib - v1.0.0

Published by Hopding about 5 years ago

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
pdf-lib - v0.6.3

Published by Hopding over 5 years ago

pdf-lib - v0.6.2

Published by Hopding over 5 years ago

pdf-lib - v0.6.1

Published by Hopding over 5 years ago

pdf-lib - v0.6.0

Published by Hopding almost 6 years ago

pdf-lib - v0.5.1

Published by Hopding almost 6 years ago

pdf-lib - v0.5.0

Published by Hopding almost 6 years ago

pdf-lib - v0.4.1

Published by Hopding almost 6 years ago

pdf-lib - v0.4.0

Published by Hopding almost 6 years ago

pdf-lib - v0.3.0

Published by Hopding about 6 years ago

pdf-lib - v0.2.0

Published by Hopding over 6 years ago

  • 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';