15 releases (breaking)

0.12.0 Sep 30, 2024
0.11.0 Jun 1, 2024
0.10.0 Mar 7, 2024
0.9.1 Nov 29, 2023
0.1.0 Dec 6, 2021

#21 in Multimedia

Download history 1047/week @ 2024-08-25 1149/week @ 2024-09-01 1006/week @ 2024-09-08 973/week @ 2024-09-15 1299/week @ 2024-09-22 2333/week @ 2024-09-29 1829/week @ 2024-10-06 2180/week @ 2024-10-13 2307/week @ 2024-10-20 2037/week @ 2024-10-27 2113/week @ 2024-11-03 2280/week @ 2024-11-10 1945/week @ 2024-11-17 2468/week @ 2024-11-24 2765/week @ 2024-12-01 2051/week @ 2024-12-08

9,486 downloads per month
Used in 20 crates (10 directly)

MIT/Apache

110KB
2.5K SLoC

svg2pdf

Build status Current crates.io release Documentation

Convert SVG files to PDFs.

This crate allows to convert static (i.e. non-interactive) SVG files to either standalone PDF files or Form XObjects that can be embedded in another PDF file and used just like images.

See the documentation for a more detailed description, including which features are supported and which are not, as well as for examples on how to use this library.

CLI

This crate also contains a command line interface. Install it by running the command below:

cargo install svg2pdf-cli

You can then convert SVGs to PDFs by running commands like these:

svg2pdf your.svg

Contributing

We are looking forward to receiving your bugs and feature requests in the Issues tab. We would also be very happy to accept PRs for bug fixes, features, or refactorings! We'd be happy to assist you with your PR's, so feel free to post Work in Progress PRs if marked as such. Please be kind to the maintainers and other contributors. If you feel that there are any problems, please feel free to reach out to us privately.

Thanks to each and every prospective contributor for the effort you (plan to) invest in this project and for adopting it!

License

svg2pdf is licensed under a MIT / Apache 2.0 dual license.

Users and consumers of the library may choose which of those licenses they want to apply whereas contributors have to accept that their code is in compliance and distributed under the terms of both of these licenses.

Dependencies

~8.5MB
~145K SLoC