Releases: parallax/jsPDF
v3.0.4
This release includes a bunch of bugfixes. Thanks to all contributors!
What's Changed
- [Snyk] Upgrade @babel/runtime from 7.28.3 to 7.28.4 by @MrRio in #3895
- fix: cell function now properly accepts align parameter by @vishal-rathod-07 in #3896
- Remove duplicated function "ga" from WebPDecoder.js by @jvdp in #3902
- Fix font state management issue #3890 by @srikanth-s2003 in #3891
- Fix pages property to always return current array reference ( #3898 ) by @Opineppes in #3899
- Fix jsPDF + Vite compatibility issue #3851 by @tishajain25 in #3903
- Do not add pages dynamically unless autoPaging is enabled by @anmiles in #3915
- Fix: Context2d font regex too restrictive ( #3904 ) by @Opineppes in #3906
- Fix Incorrect Typing for Margins in the TableConfig Interface Definition by @Maito1794 in #3816
New Contributors
- @survivant made their first contribution in #3897
- @vishal-rathod-07 made their first contribution in #3896
- @jvdp made their first contribution in #3902
- @srikanth-s2003 made their first contribution in #3891
- @Opineppes made their first contribution in #3899
- @tishajain25 made their first contribution in #3903
- @anmiles made their first contribution in #3915
- @josephyi made their first contribution in #3907
- @Maito1794 made their first contribution in #3816
Full Changelog: v3.0.3...v3.1.0
v3.0.3
This release fixes regressions with PNG encoding that were introduced in v3.0.2.
What's Changed
- Fix division by zero when calculating word spacing by @alxndr-pggm in #3879
- fix scaling of form object bounding boxes by @HackbrettXXX in #3888
- fix regressions in PNG encoding that were introduced in 3.0.2 by @HackbrettXXX in #3887
New Contributors
- @alxndr-pggm made their first contribution in #3879
Full Changelog: v3.0.2...v3.0.3
v3.0.2
This release fixes a security issue where parsing of corrupt PNG images could lead to long running loops and denial of service.
What's Changed
- [Snyk] Upgrade @babel/runtime from 7.26.7 to 7.26.9 by @MrRio in #3847
- Fix parsing corrupt PNG images in addImage method by @HackbrettXXX in #3880. The atob and btoa dependencies have been removed and the fast-png dependency has been added.
New Contributors
- @WardenDrew made their first contribution in #3872
Full Changelog: v3.0.1...v3.0.2
v3.0.1
This release fixes two security vulnerabilities:
- Upgrade optional dependency canvg to 3.0.11
- Fix a ReDoS vulnerability in the
addImagemethod and the methodshtmlandaddSvgAsImage, which depend onaddImage
v3.0.0
This major release officially drops support for Internet Explorer and fixes a security vulnerability in the html function by updating the optional dependency dompurify to v3.2.4. There are no other breaking changes.
New Contributors
- @nlqivision made their first contribution in #3812
- @dependabot made their first contribution in #3826
- @hainenber made their first contribution in #3827
Full Changelog: v2.5.2...v3.0.0
v2.5.2
This release upgrades the Dompurify dependency to 2.5.4 with fixes a vulnerability with high severity: GHSA-mmhx-hmjr-r674.
It also upgrades fflate, core-js, and @babel/runtime to more recent versions.
What's Changed
- Implement justifying for unicode fonts by @owenl131 in #3285
- chore: update dompurify version 2.5.4 by @MarcioMeier in #3768
- [Snyk] Upgrade fflate from 0.4.8 to 0.8.1 by @MrRio in #3666
- [Snyk] Upgrade core-js from 3.6.5 to 3.33.0 by @MrRio in #3664
- [Snyk] Upgrade @babel/runtime from 7.14.6 to 7.23.2 by @MrRio in #3665
v2.5.1
v2.5.0
This release adds some minor new features and fixes some bugs, e.g. related to multiline text. Thanks to all contributors!
New Features
Bugfixes
- #3271: fix
htmlfunction only rendering on the first invocation per document - #3304, #3295: fix
context2D.closePath(now properly closes the path) - #3274: fix Acroform text fields with multiline text
- #3281: fix
textWithLinkfor multiline text - #3283: fix
lineHeightFactorintextoptions having no effect - #3302: fixes to
htmltypings - #3272: fix return type of
savefunction in typings (promise overload)
v2.4.0
This release brings long awaited improvements to the html function and many other bugfixes and improvements. Thanks to all contributors!
- #3203: Add
widthandwindowWidthoptions to thehtmlmethod, which will make correct scaling much easier. - #2977: Add/implement
marginoption forhtmlmethod and addautoPagingoption with two different modes:'slice'and'text'. - #3169: Add
setLineDashandlineDashOffsettocontext2d. - #3039: Add
rowStartandcellStartevents andheaderTextColorproperty to `table' function - #3132: Fix possibly negative line widths in context2d.
- #3217: Fix
setFontwithfontWeightparameter for the built-in basic fonts - #3173: Fix violation of strict mode.
- #3121: Improve
addImageperformance. - #3124: Allow to pass RGBA array to
addImage. - #3135: Fix possibly imbalanced render target stack with form objects.
- #3148: Add
getDrawColorfunction to typings. - #3149: Fix font name escaping.
- #3150: Throw an error when a zero size canvas is passed to
addImage. - #3168: Fix word spacing after justified text.
- #3215: Fix nullability of style arguments of geometry methods.
- #3108: Complete the
jsPDFOptionstype in the typings. - #3119: Improve typings of the
outputfunction.
v2.3.1
Small bugfixes. Thanks to all contributors!