Hi..
I am using GhostScript 8.64, ImageMagick is 6.5.1 and delegates what i have installed are : bzlib fontconfig freetype gs jpeg lcms png rsvg tiff x11 xml wmf zlib. Actually ImageMagick was working fine but today I uploaded one pdf for conversion and it was not converting with php code. So I tried manually then i got this error (below). I dont know what is this problem. Please help to solve this.
warning: ignoring zlib error: incorrect data check
Error: /typecheck in --setlinejoin--
Operand stack:
--nostringval-- --dict:8/17(L)-- (Planetary Solutio1e4j\n/F15 1F5.1522 TD \n-0.0001 Tc\n-0.00gu\n[\(eh.com\)j\n/F13 1 Tf\nT*\n0 Tc\n-0.0001 Tw\n\(2030 17t h St.\)Tj\nT*\n-0.0001 Tc\n0.0001 Tw\n[\(Boulder\)73.8\(, CO 80302 \)]TJ\nT*\n0 Tc\n1 Tc\n-303-442-6228 ) (Planetary Solutio1e4j\n/F15 1F5.1522 TD\n-0.0001 Tc \n-0.00gu\n[\(eh.com\)j\n/F13 1 Tf\nT*\n0 Tc\n-0.0001 Tw\n\(2030 17th St.\)Tj\nT *\n-0.0001 Tc\n0.0001 Tw\n[\(Boulder\)73.8\(, CO 80302 \)]TJ\nT*\n0 Tc\n1 Tc\n-3 03-442-6228 ) 2
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval- - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa lse 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_ pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 262 1 320 --nostringval-- %for_pos_int_continue --nostringval-- --nostringva l-- --nostringval-- --nostringval-- %array_continue --nostringval-- fa lse 1 %stopped_push --nostringval-- %loop_continue 1743 3 10 %op array_pop --nostringval--
Dictionary stack:
--dict:1152/1684(ro)(G)-- --dict:1/20(G)-- --dict:74/200(L)-- --dict:74 /200(L)-- --dict:106/127(ro)(G)-- --dict:278/300(ro)(G)-- --dict:22/25(L)- - --dict:4/6(L)-- --dict:22/40(L)-- --dict:14/20(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.64: Unrecoverable error, exit code 1
convert: Postscript delegate failed `/home/freado/public_html/cdn/book/uploads/4 27/4c3048f8619c38735ceed82a095ed2021239113060.pdf': No such file or directory @ pdf.c/ReadPDFImage/612.
convert: missing an image filename `/home/freado/public_html/cdn/book/converted/ 762/page.png' @ convert.c/ConvertImageCommand/2775.
Sanoj
Getting error while converting pdf to png
Re: Getting error while converting pdf to png
Your PDF is either corrupted or there is a bug in Ghostscript. Post a URL to your PDF and we will download and confirm our analysis.
Re: Getting error while converting pdf to png
I fixed that issue.. there was problem with pdf file.
Thank you very much for your help
regards,
Sanoj
Thank you very much for your help
regards,
Sanoj
Re: Getting error while converting pdf to png
I am getting a similar error with a PDF I created from a pptx file using using OpenOffice 3 and PyODConverter. Trying to make a png out of it with:
convert test_ppt_to_pdf.pdf[0] -thumbnail '100x100>' test_output.png
Produces:
Error: /typecheck in --run--
Operand stack:
--nostringval-- --dict:7/16(L)-- F2 18 --dict:8/8(L)-- --dict:8/8(L)-- --nostringval-- --nostringval--
Encoding
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3
%oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval--
%for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue
--nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval--
--nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1157/1684(ro)(G)-- --dict:1/20(G)-- --dict:74/200(L)-- --dict:74/200(L)-- --dict:106/127(ro)(G)--
--dict:278/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:21/40(L)-- --dict:3/5(L)-- --dict:8/8(L)--
Current allocation mode is local
GPL Ghostscript 8.64: Unrecoverable error, exit code 1
convert: Postscript delegate failed `test_ppt_to_pdf.pdf': No such file or directory @ coders/pdf.c/ReadPDFImage/592.
convert: missing an image filename `test_output.png' @ wand/convert.c/ConvertImageCommand/2710.
The PDF can be downloaded here:
http://github.com/dylanvaughn/OpenOffic ... to_pdf.pdf
I am able to generate thumbs of other PDF files - this is the only one I am having issues with so far. Any ideas?
convert test_ppt_to_pdf.pdf[0] -thumbnail '100x100>' test_output.png
Produces:
Error: /typecheck in --run--
Operand stack:
--nostringval-- --dict:7/16(L)-- F2 18 --dict:8/8(L)-- --dict:8/8(L)-- --nostringval-- --nostringval--
Encoding
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3
%oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval--
%for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue
--nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval--
--nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1157/1684(ro)(G)-- --dict:1/20(G)-- --dict:74/200(L)-- --dict:74/200(L)-- --dict:106/127(ro)(G)--
--dict:278/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:21/40(L)-- --dict:3/5(L)-- --dict:8/8(L)--
Current allocation mode is local
GPL Ghostscript 8.64: Unrecoverable error, exit code 1
convert: Postscript delegate failed `test_ppt_to_pdf.pdf': No such file or directory @ coders/pdf.c/ReadPDFImage/592.
convert: missing an image filename `test_output.png' @ wand/convert.c/ConvertImageCommand/2710.
The PDF can be downloaded here:
http://github.com/dylanvaughn/OpenOffic ... to_pdf.pdf
I am able to generate thumbs of other PDF files - this is the only one I am having issues with so far. Any ideas?
Re: Getting error while converting pdf to png
The bug is in Ghostscript or your PDF. Try gs directly from the command line:
- -> gs test_ppt_to_pdf.pdf
GPL Ghostscript 8.64 (2009-02-03)
Copyright (C) 2009 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
Can't find (or can't open) font file /usr/share/ghostscript/8.64/Resource/Font/NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Can't find (or can't open) font file /usr/share/ghostscript/8.64/Resource/Font/NimbusRomNo9L-Regu.
Can't find (or can't open) font file NimbusRomNo9L-Regu.
Querying operating system for font files...
Loading NimbusRomNo9L-Regu font from /usr/share/fonts/default/Type1/n021003l.pfb... 3930288 2081697 11769312 10443584 3 done.
Error: /typecheck in --run--
Operand stack:
--nostringval-- --dict:7/16(L)-- F2 18 --dict:8/8(L)-- --dict:8/8(L)-- --nostringval-- --nostringval-- Encoding
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1145/1684(ro)(G)-- --dict:1/20(G)-- --dict:74/200(L)-- --dict:74/200(L)-- --dict:106/127(ro)(G)-- --dict:278/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:21/40(L)-- --dict:3/5(L)-- --dict:8/8(L)--
Current allocation mode is local
GPL Ghostscript 8.64: Unrecoverable error, exit code 1
Re: Getting error while converting pdf to png
Should I repost this to the GS list then?