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