Skip to content

Releases: typst/svg2pdf

Version 0.10.0

07 Mar 09:21
Compare
Choose a tag to compare

Added

  • Added ability to list the available fonts found by svg2pdf. Thanks to @rgreinho.
  • Added support for filter rendering.
  • usvg is now reexported to prevent version mismatches.

Fixed

  • Fixed dpi ratio calculation. Thanks to @Ultraxime.

Changed

  • Bumped resvg to v0.38 and fontdb to 0.16.
  • (Internal) reworked the test suite.
  • (Internal) synced test suite with resvg test suite.

Note: This release contains a slightly older version of svg2pdf than is on main to have a version of svg2pdf that is on resvg 0.38 rather than 0.40 (which contained major breaking changes).

Version 0.9.1

29 Nov 14:30
Compare
Choose a tag to compare

This release:

  • makes improvements to color representation by using ICC profiles
  • fixes a bug gradient bounding boxes
  • extracts the CLI into its own crate, which can now be installed as svg2pdf-cli

0.9.0

25 Oct 15:34
Compare
Choose a tag to compare

This release updates the dependencies to usvg 0.36 and fontdb 0.15 (breaking change since they are exposed).

0.8.0

04 Oct 12:08
Compare
Choose a tag to compare

This release

  • updates pdf-writer to 0.9
  • adapts the API of convert_tree_into to pdf-writer's new Chunk type, which enables writing of a to-be-embedded SVG independently of the main PDF document (especially in combination with renumbering)

0.7.1

14 Sep 12:41
Compare
Choose a tag to compare

This release disables the default features of the image dependency, which significantly shrinks the dependency tree and binary size. Thanks to @frozolotl!

0.7.0

13 Sep 08:14
Compare
Choose a tag to compare

This release

  • updates usvg to version 0.35 and fontdb 0.14 (breaking change since they are exposed)
  • creates more efficient PDFs by merging multiple SVG groups into a single PDF content stream instead of creating many XObjects
  • fixed issues with path and fill rendering
  • fixes an issue with clip paths
  • adds support for blend modes

Thanks to @LaurenzV!

0.6.0

07 Aug 15:32
Compare
Choose a tag to compare

This release contains a complete rewrite of svg2pdf by the one and only @LaurenzV, fixing many of the issues this crate had.

Since some exposed dependencies were bumped (breaking changes) and this is an all-around great release, this is svg2pdf 0.6.0 πŸŽ‰

0.5.0

12 Jun 08:30
Compare
Choose a tag to compare

This version uses usvg 0.32 and fixes #17 and #30 (courtesy of @LaurenzV).

0.4.1

31 Dec 09:41
Compare
Choose a tag to compare

Thanks to the PR of @LaurenzV, two bugs relating to transforms have been fixed: transforms of clipping paths are now applied to the clipped contents and group transform application has been fixed!

0.4.0

10 Jun 16:23
Compare
Choose a tag to compare

This release is a breaking change because it updates both usvg and pdf-writer.

Content streams can now be compressed to reduce file size.

Some bugs with clipping paths and images have been fixed. Raster images can now be positioned and will not produce an invalid PDF.