Page 1 of 1

Colors not displayed after conversion svg to pdf

Posted: 2013-03-21T05:40:55-07:00
by bilog.mourad
Hello everyone, I've an an application witch generate an SVG source code and I must convert it to PDF.
The conversion works fine but when I open the PDF file generated I find that colors are not the same and in some cases are inverted.

I can't send you the SVG source it so big (about 10 Mo !), so that you can see the source image https://docs.google.com/a/bilog.fr/file ... ZpUW8/edit and the result image after adding a text and an icon https://docs.google.com/a/bilog.fr/file ... 9Wd0U/edit

Can anyone tell me what's rong in my procedure and how I can resolve this problem

Many thanks in advance.

Best regards

Re: Colors not displayed after conversion

Posted: 2013-03-21T13:59:56-07:00
by fmw42
Your images do not show up.

But note that IM will convert SVG to raster and then imbed the raster in a PDF shell. That may not be what you want. Also there may be colorspace issues depending upon what color space you specified in the SVG file and also on what version of IM you are using.

see
http://www.imagemagick.org/Usage/formats/#vector
viewtopic.php?f=4&t=21269
http://www.imagemagick.org/script/forma ... colorspace

What was your exact command? What Version of IM? What platform?

Re: Colors not displayed after conversion svg to pdf

Posted: 2013-03-25T01:13:15-07:00
by bilog.mourad
Many Thanks fmw42 for your reply.

I'm modified my post to let you seeying the images.
The command-line used for the conversion is very basci and simple : convert source_file.svg res_file.pdf
I'm on Windows 7 32 bits.

I've read the URL you sent but I've not most skills in working with images.

Many thanks for your help

Re: Colors not displayed after conversion svg to pdf

Posted: 2013-03-25T09:46:19-07:00
by fmw42
I am not an expert on SVG, but it looks like it is a colorspace issue.

try

convert -colorspace sRGB image.svg image.pdf