All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- New file output formats: Added support for multiple output formats such as JPEG, PNG, and WebP, rather than just Buffer and Base64.
- ES6 Module Support: Switched from
require()
to ES6import
for better compatibility with modern JavaScript frameworks. - Parallel Page Rendering: Introduced parallel rendering of PDF pages using
Promise.all()
for improved performance. - GlobalWorkerOptions Setup: Added explicit
GlobalWorkerOptions.workerSrc
to handle workers in ES6 environments more effectively. - Examples and Server Setup: Added detailed examples and a simple Node.js server setup in the "examples" directory.
- Improved Error Handling: Added more informative error messages for invalid page numbers, dimensions, and scale values.
- Updated
package.json
Keywords: Added new keywords such ases6
,esm
, andmodule
to improve discoverability in modern JavaScript environments.
- README: Revised the
README.md
to reflect new features and usage examples.
- Security: Addressed a critical security vulnerability in previously used npm packages by updating
pdfjs-dist
to the latest versions. - Scaling Logic: Refined the handling of
width
,height
, andscale
parameters to cover more edge cases in image rendering.
- Add scale parameter.
- Add files whitelist to
package.json
.
- Fix return type in
d.ts
- Changelog
- Revert to
disableFontFace: true
- Underlying project code