convert fails utterly for PDF to SVG and PDF to SVGZ

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
jeffrey.berger
Posts: 12
Joined: 2013-08-16T09:33:28-07:00
Authentication code: 6789

convert fails utterly for PDF to SVG and PDF to SVGZ

Post 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post by dlemstra »

Did you install Ghostscript which is required to read pdf files?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
jeffrey.berger
Posts: 12
Joined: 2013-08-16T09:33:28-07:00
Authentication code: 6789

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

Post 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.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post by dlemstra »

Did you upgrade to 6.9.0-9? Your post above reports 6.9.0-3.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
jeffrey.berger
Posts: 12
Joined: 2013-08-16T09:33:28-07:00
Authentication code: 6789

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

Post 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
jeffrey.berger
Posts: 12
Joined: 2013-08-16T09:33:28-07:00
Authentication code: 6789

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

Post 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.
jeffrey.berger
Posts: 12
Joined: 2013-08-16T09:33:28-07:00
Authentication code: 6789

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

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