v1.7.0
Changed 1
- Encode PNG bytes directly in renderPageAsImage
Fixed 5
- Add cMapUrl for CJK font support in Node.js
- Add .js extension to relative imports in .d.mts & .d.cts files
- Resolve @napi-rs/canvas in the bundled PDF.js canvas factory
- Preserve line breaks in extractText with mergePages
- Destroy internally created document proxies and canvas resources
From unpdf
🐞 Bug Fixes
- Add cMapUrl for CJK font support in Node.js - by @xieguaiwu in https://github.com/unjs/unpdf/issues/52 (3789c)
- Add .js extension to relative imports in .d.mts & .d.cts files - by @kumarchandresh in https://github.com/unjs/unpdf/issues/56 (10e6d)
- Resolve
@napi-rs/canvasin the bundled PDF.js canvas factory - by @drakosha in https://github.com/unjs/unpdf/issues/54 (f5406) - Preserve line breaks in
extractTextwithmergePages- by @dsfaccini in https://github.com/unjs/unpdf/issues/58 (a49be) - Destroy internally created document proxies and canvas resources - by @dsfaccini in https://github.com/unjs/unpdf/issues/57 (ed9ac)
🏎 Performance
- Encode PNG bytes directly in
renderPageAsImage- by @johannschopplich and @dsfaccini in https://github.com/unjs/unpdf/issues/60 (95ebf)