Can I preserve CMYK images during conversion from PDF to SVG?

42 views
Skip to first unread message

Support

unread,
Jan 6, 2009, 8:14:32 PM1/6/09
to PDF2SVG
Q: I have been playing around with PDF2SVG (http://www.pdftron.com/
pdf2svg/), I think this may be all we need for converting PDFs to XML.
I was wondering how I can force images to remain in CMYK? Currently
all images are converted to RGB PNGs. Is this a limitation of the
trial version? I am using the Command line tool, maybe this is only
available in the SDK?

----
A: The problem is that SVG does not directly support CMYK color spaces
the way PDF does (PNG and JPEG do not have good CMYK support and TIFF
is not supported in SVG). As a result all images are converted to
RGB.

If you would like to extract original images from PDF, you could use
PDFNet SDK (e.g. http://www.pdftron.com/net/samplecode.html#ImageExtract,
for more info see http://www.pdftron.com/net). pdftron.Image.Extract()
method can be used to extract TIFF images in the native format (such
as CMYK). Also you could use PDFNet to implement a custom PDF to XML
converter (along the lines or ELementReaderAdv or TextExtract sample).
PDF2SVG itself is built using PDFNet content extraction API.
Reply all
Reply to author
Forward
0 new messages