errror during pdf conversion with pdf conaining list field

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
fabien

errror during pdf conversion with pdf conaining list field

Post by fabien »

Hello,
I'm using ImageMagick to convert a pdf file generated by scribus to an image
file (png in the example).
But the conversion failed with the following error message :

convert -density 200 -resize 800x1132 Document-1.pdf Document-1.png
ERROR: /typecheck in --show--
Operand stack:
--dict:15/15(L)-- 1.0 --dict:15/15(L)-- 1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- --nostringval-- --nostringval--
false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1
3 %oparray_pop --nostringval-- --nostringval-- 2 1
1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
5 11 %oparray_pop --nostringval-- false 1 %stopped_push 5
11 %oparray_pop --nostringval-- (gstatetype) --dict:0/0
(L)-- --nostringval-- false
1 %stopped_push --nostringval-- %loop_continue --nostringval--
Dictionary stack:
--dict:1127/1686(ro)(G)-- --dict:0/20(G)-- --dict:107/200
(L)-- --dict:107/200(L)-- --dict:104/127(ro)(G)-- --dict:241/347(ro)
(G)-- --dict:20/24(L)-- --dict:4/6(L)-- --dict:20/20
(L)-- --dict:19/21(L)-- --dict:5/5(L)-- --dict:9/13(L)--
Current allocation mode is local
ESP Ghostscript 815.03: Unrecoverable error, exit code 1
convert: Postscript delegate failed `Document-1.pdf'.
convert: missing an image filename `Document-1.png'.

But if I use pdftoppm command (from xpdf), I can convert the file to a ppm,
and after, convert the ppm to an image file using ImageMagik. But I prefere
to use only ImageMagick if it's possible.

That's what I use for all my pdf files, except for this one. But it have a
particularity : it's a pdf file containing a list field. That's seems to make
convert failed, because if I remove the field, the conversion ends done.

My tests files are downloadable here :
pdf file : http://omploader.org/vY2Fz
scribus file : http://omploader.org/vY2F0

I think there not a lot of people that use list fields in there pdf forms, but it's a possibility, and it will be very helpfull ImageMagick to
handle it.


If you have any idea about this problem, tell me, please :)


Some information about version I used :

convert --version
Version: ImageMagick 6.3.2 02/04/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC

scribus -v
Version de Scribus 1.3.3.8

pdftoppm -v
pdftoppm version 3.02
Copyright 1996-2007 Glyph & Cog, LLC
fabien

Re: errror during pdf conversion with pdf conaining list field

Post by fabien »

Yes, ImageMagick use GhostScript, but I don't think my problem is a font problem.
My problem just comes with pdf files which have List field.
I have talk a litle on the ImageMagik mailing list, and they explain me that GhostScript is required to build convert program, and they thinks the version I'm using have some bugs.

They suggest me to recompile svn version of GhostScript, and recompile svn version of convert using the previous compiled GhostScript.
I haven't the time to test this now, but I keep this solution in mind.
I think I am alone with this problem because nobody will use list field in pdf forms :)
Post Reply