Page 1 of 1

Help! Convert svg to pdf creates low-res files

Posted: 2011-11-11T14:53:30-07:00
by dbc001
Okay, I'm trying to create a pdf from an svg file. I do a search & replace on the svg file and then create a pdf from it using this command:

Code: Select all

convert source.svg target.pdf
Every time I try it I end up with terribly pixelated files that look like a highly compressed jpg. The fonts are rasterized and low resolution. How can I max out the resolution of my output file? It's going to be printed (4 feet wide I believe) so I need as much resolution as I can get.

Thanks in advance!
dbc

PS I'm on a CentOS box using imagemagick 6.5.4.7

Code: Select all

$ convert -version
Version: ImageMagick 6.5.4-7 2010-02-26 Q16 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

Re: Help! Convert svg to pdf creates low-res files

Posted: 2011-11-11T15:20:09-07:00
by fmw42
both are vector files and need the density to define its size, so try

convert -density 300 source.svg target.pdf

Re: Help! Convert svg to pdf creates low-res files

Posted: 2011-11-13T22:47:06-07:00
by anthony
A word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector

Re: Help! Convert svg to pdf creates low-res files

Posted: 2011-11-15T08:09:01-07:00
by dbc001
fmw42,
Thanks! That did the trick.

Anthony,
Thanks for the link. It never occurred to me that IM was rasterizing everything for conversion. Any idea what tool I should be using for svg -> pdf conversion?

Thanks again guys!
dbc001