ITADN
typst/svg2pdf

版本发布 8

Version 0.12.0v0.12.0
? · 2024-09-30

### Added - New `pdfa` option for using PDF/A-compliant pdf-writer workflows. ### Changed - Conversion is now fallible and returns a `Result`. - Reduce PDF sizes through better font subsetting. ### Fixed - Fixed a bug with Unicode CMaps.

Version 0.11.0v0.11.0
? · 2024-06-01

### Added - Text is now embedded as proper text instead of being flattened to paths. - Made the CLI more flexible in terms of which features you want to include. - Added `raster-scale` and `text-to-paths` as arguments for the CLI. ### Changed - Bumped resvg to v0.42, fontdb to v0.18, and pdf-writer to v0.10. - The `convert_tree` method has been renamed into `to_pdf`. - The `convert_tree_into` function has been renamed into `to_chunk` and now returns an independent chunk and the object ID of the actual SVG in the chunk. ### Fixed - Fixed a bug with softmasks on images. ### Removed - The `convert_str` method has been removed. You should now always convert your SVG string into a `usvg` tree yourself and then call either `to_pdf` or `to_chunk`. - Removed the option to configure the view box from the API. This might be readded in a later update.

Version 0.10.0v0.10.0
? · 2024-03-07

### Added - Added ability to list the available fonts found by svg2pdf. Thanks to [@rgreinho](https://github.com/rgreinho). - Added support for filter rendering. - `usvg` is now reexported to prevent version mismatches. ### Fixed - Fixed dpi ratio calculation. Thanks to [@Ultraxime](https://github.com/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.10.0v0.10.0
? · 2024-03-07

### Added - Added ability to list the available fonts found by svg2pdf. Thanks to [@rgreinho](https://github.com/rgreinho). - Added support for filter rendering. - `usvg` is now reexported to prevent version mismatches. ### Fixed - Fixed dpi ratio calculation. Thanks to [@Ultraxime](https://github.com/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.1v0.9.1
? · 2023-11-29

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`

Version 0.9.1v0.9.1
? · 2023-11-29

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.0v0.9.0
? · 2023-10-25

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

0.7.1v0.7.1
? · 2023-09-14

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