Page 1 of 1

convert fails utterly for PDF to SVG and PDF to SVGZ

Posted: 2015-03-02T08:25:07-07:00
by jeffrey.berger
From the command line:
MacBook-Pro:~/Desktop$ convert fw4.pdf fw4.svg
convert: no images defined `fw4.svg' @ error/convert.c/ConvertImageCommand/3210.
MacBook-Pro:~/Desktop$ convert fw4.pdf fw4.svgz
convert: no images defined `fw4.svgz' @ error/convert.c/ConvertImageCommand/3210.
MacBook-Pro:~/Desktop$

The PDF is as downloaded from: http://www.irs.gov/pub/irs-pdf/fw4.pdf

Version: ImageMagick 6.9.0-3 Q16 x86_64 2015-01-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
Features: DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png xml zlib

On Mac OS 10.10.2

-J

Re: convert fails utterly for PDF to SVG and PDF to SVGZ

Posted: 2015-03-02T08:30:52-07:00
by dlemstra
Did you install Ghostscript which is required to read pdf files?

Re: convert fails utterly for PDF to SVG and PDF to SVGZ

Posted: 2015-03-02T08:49:40-07:00
by jeffrey.berger
Thank you. No, I neglected to do that.

However, having installed that I see convert is still producing SVGs with invalid <svg ...> tags.

I thought this had been fixed in a beta version since rolled into the current release. Apparently not.

Will there be a fix?

Thanks.

Re: convert fails utterly for PDF to SVG and PDF to SVGZ

Posted: 2015-03-02T09:33:55-07:00
by dlemstra
Did you upgrade to 6.9.0-9? Your post above reports 6.9.0-3.

Re: convert fails utterly for PDF to SVG and PDF to SVGZ

Posted: 2015-03-02T09:36:56-07:00
by jeffrey.berger
I'm using brew which reports 6.9.0-3 as the latest. Can you suggest how I might get -9?

Thanks
-J

Re: convert fails utterly for PDF to SVG and PDF to SVGZ

Posted: 2015-03-02T12:43:39-07:00
by jeffrey.berger
Just tried following the install instructions http://www.imagemagick.org/script/binar ... php#macosx using Mac ports. Those instructions produce IM 6.9.0-0.

I tried port upgrade ImageMagick, but that produced no change.

How can I install or upgrade to the latest binary?

Thanks.

Re: convert fails utterly for PDF to SVG and PDF to SVGZ

Posted: 2015-03-02T16:16:25-07:00
by jeffrey.berger
I also tried the "Alternatively,..." instructions on the same page. That produced a promisingly named directory ImageMagick-6.9.0-7.

However I could find no bin subdirectory in that folder nor any evidence of Mac executable files.