Help! Convert svg to pdf creates low-res files

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dbc001
Posts: 2
Joined: 2011-11-11T14:41:56-07:00
Authentication code: 8675308

Help! Convert svg to pdf creates low-res files

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

both are vector files and need the density to define its size, so try

convert -density 300 source.svg target.pdf
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post by anthony »

A word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
dbc001
Posts: 2
Joined: 2011-11-11T14:41:56-07:00
Authentication code: 8675308

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

Post 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
Post Reply