Skip to content

Releases: yWorks/svg2pdf.js

v2.6.0

17 Sep 08:27

Choose a tag to compare

This release adds partial support for the CSS whitespace property. Only the pre value is supported and line-breaks are not preserved.

What's Changed

  • feat(whitespace): allow css property whitespace: pre by @Fuzzyma in #333
  • Add width and height options to the jsPdf constructor in readme by @bertyhell in #326

New Contributors

Full Changelog: v2.5.0...v2.6.0

v2.5.0

18 Mar 10:06

Choose a tag to compare

This release adds rudimentary support for the clip-rule attribute.

What's Changed

  • Parse clip-rule on the first child of clip-path element by @nguyenalter in #325

New Contributors

Full Changelog: v2.4.0...v2.5.0

v2.4.0

19 Feb 09:59

Choose a tag to compare

This release adds compatibility with jsPDF version 3.x. It remains compatible with jsPDF v2.x.

v2.3.0

12 Feb 12:48

Choose a tag to compare

This release adds support for some new SVG features.

What's Changed

  • Add support for inheritance of fill rule by @CasperVerswijvelt in #307
  • add support for marker "orient" attribute and the "context-fill" and "context-stroke" values by @Fuzzyma in #308
  • Add support for RGB percentage values by @lennartkerkvliet in #320
  • Add support for viewbox transformations for intrinsic raster image dimensions by @EugeneBalabai in #314
  • Provide href attribute support in a elements by @linev in #313

New Contributors

Full Changelog: v2.2.4...v2.3.0

v2.2.4

17 Jun 07:28
d15ab31

Choose a tag to compare

Bump dependencies.

What's Changed

Full Changelog: v2.2.3...v2.2.4

v2.2.3

11 Dec 09:45

Choose a tag to compare

#279: Fix elements referencing path elements with no contents (empty d attribute)

v2.2.2

15 Aug 12:39

Choose a tag to compare

  • #266: Fix inheritance of positional attributes (dx, dy) for nested tSpans
  • #268: Accept newlines in Base64 encoded data urls
  • #271: Don't stroke text if stroke-width=0
  • #274: Properly cleanup measurement elements in document.body

v2.2.1

09 Aug 09:22

Choose a tag to compare

Make getAttribute safer

v2.2.0

14 Sep 13:41

Choose a tag to compare

This release mainly brings some bugfixes and the support for numerical font weights.

  • #181: add support for numerical font weights
  • #188: fix rendering two SVGs with the same ids in the same PDF document
  • #187: fix exception when parsing CSS with @import rules
  • #186: fix rendering elements with empty or invalid clip-path attribute
  • #185: fix gradients with zero or one stop
  • #184: fix bounding boxes and attribute inheritance for <marker> elements

v2.1.0

07 Dec 15:02

Choose a tag to compare

Added support for some awesome new features thanks to @Mrfence97. Also thanks to the other contributions in context of the Hacktoberfest!

  • #158: Add support for currentColor
  • #160: Add support for the textLength attribute
  • #161: Add support for nested <tspan>s. Also fixed some text positioning issues.