I have an SVG that I need to convert to PDF for printing. How can I achieve this while offering support for the following requirements:
- CSS fonts
- Patterns
- Clip paths
- CMYK colour profiles
- Filters
- CMYK Rasterisation
- Command line/silent conversion
I have tried many of the popular tools, which I will list below but none of them are particularly successful, always some feature that's not fully supported. I do struggle to understand why it is so difficult to find a decent tool given the length of time that SVG has been support by browsers.
I cannot find a tool that does all of these things. Inkscape comes the closest but fails in patterns and CMYK rasterisation, also had some strange behaviour with clip paths. That said printing as PDF directly from the browser actually produces the best results but doesn't support CMYK and appears to just be one complete rasterised image. However if I could do this silently from command line I'd almost be happy at least.
Anyway the full list of tools/libraries I have tried are as follows:
- Inkscape
- ImageMagick/Magical.net
- Scribus
- CiaroSVG
- Mkhtmltopdf
- TotalCADConverter
- Windows print to PDF