Kozea / CairoSVG

Convert your vector images
https://courtbouillon.org/cairosvg
GNU Lesser General Public License v3.0
764 stars 150 forks source link

Support ICC profiles in the SVG files when exporting to PDF #77

Open tanty opened 9 years ago

tanty commented 9 years ago

I assume this doesn't have an easy fix without a fix in Cairo. Also, I've seen the comment in: https://github.com/Kozea/CairoSVG/blob/master/test/fail/color/README.rst

However, this is one of the main requests from SVG creators. Right now, the only way of having a PDF output respecting the ICC profiles added to a SVG document (typically, using Inkscape) is through importing the SVG into Scribus and hoping that there is no lose of information in the process. For example: http://bugs.scribus.net/view.php?id=13435

Would it be possible to make this tool to modify, maybe, the resulting PDF document from Cairo to include the original ICC (CMYK) information?

liZe commented 9 years ago

That's theoretically possible with some post-processing magic on the PDF file generated by cairo, just as WeasyPrint does.