Hello experts,
i am migrating the application which was developed in imagemagick 5.4 to 6.3.8. This application is successfuly building exe and the convertion of jpeg files to thumb nail is working fine. But when i do convertion from pdf to jpeg, it does not work. I get the exception error "PostscriptDelegateFailed 'C:/ImageMagick/VisualMagick/bin/1.pdf:' No such file or directory". Can any one help me. Please treat this as urgent
d'singh
Problem in converting pdf to jpeg
Re: Problem in converting pdf to jpeg
This command should give you insight into why your PDF image file is failing to convert. Type
- convert -verbose 1.pdf 1.jpg
Re: Problem in converting pdf to jpeg
When i issue command from the console like 'convert x.pdf y.jpg', it is working. But through the application, it is not working.
Re: Problem in converting pdf to jpeg
i issued command as you said 'convert -verbose 1.pdf 3.jpg' at the console (DOS PROMPT)
i get the following scripts
[ghostscript library] Files/gs/gs8.61/bin/gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dUseCIEColor "-sOutputFile=C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH" "-fC:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-fNeb5SOd" "-fC:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-.L4orJvA"C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH[0] BMP 1482x2202 1482x2202+0+0 PseudoClass 256c 8-bit 12.4697mb 0.766u 0:01
C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH[1] BMP 1482x2202 1482x2202+0+0 PseudoClass 256c 8-bit 12.4697mb 0.547u 0:01
C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH[2] BMP 1482x2202 1482x2202+0+0 PseudoClass 256c 8-bit 12.4697mb 0.375u 0:01
C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH[3] BMP 1482x2202 1482x2202+0+0 PseudoClass 256c 8-bit 12.4697mb 0.188u 0:01
1.pdf PDF 1482x2202 1482x2202+0+0 DirectClass 16-bit 12.4697mb 0.953u 0:02
1.pdf=>3.jpg PDF 1482x2202 1482x2202+0+0 DirectClass 16-bit 830.963kb 1.719u 0:05
d'singh
i get the following scripts
[ghostscript library] Files/gs/gs8.61/bin/gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=bmpsep8" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dUseCIEColor "-sOutputFile=C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH" "-fC:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-fNeb5SOd" "-fC:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-.L4orJvA"C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH[0] BMP 1482x2202 1482x2202+0+0 PseudoClass 256c 8-bit 12.4697mb 0.766u 0:01
C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH[1] BMP 1482x2202 1482x2202+0+0 PseudoClass 256c 8-bit 12.4697mb 0.547u 0:01
C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH[2] BMP 1482x2202 1482x2202+0+0 PseudoClass 256c 8-bit 12.4697mb 0.375u 0:01
C:/DOCUME~1/DORAIS~1/LOCALS~1/Temp/magick-Xnf4JiOH[3] BMP 1482x2202 1482x2202+0+0 PseudoClass 256c 8-bit 12.4697mb 0.188u 0:01
1.pdf PDF 1482x2202 1482x2202+0+0 DirectClass 16-bit 12.4697mb 0.953u 0:02
1.pdf=>3.jpg PDF 1482x2202 1482x2202+0+0 DirectClass 16-bit 830.963kb 1.719u 0:05
d'singh
Re: Problem in converting pdf to jpeg
Add -verbose to your application and see what it reports. Generally this is an environment problem-- that is there is something different about your application environment than the Command Prompt environment. Compare the results of -verbose in both environments may reveal that the problem is.
Re: Problem in converting pdf to jpeg
thanks for your efforts. I have tested at the console prompt for the convertion of pdf to jpg after uninstall the ghostscript. i received the same error message. Now i can understand that it is because of unavailability of ghostscript. Now please let me know that what would be the format of command line in delegates.xml for pdf convertion.
my delegate file having the following lines. Should i do any changes on this in delegates.xml? or not
<delegate decode="pdf" encode="ps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i""/>
<delegate decode="pdf" encode="jpg" mode="bi" command=""@PSDelegate@" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i""/>
my delegate file having the following lines. Should i do any changes on this in delegates.xml? or not
<delegate decode="pdf" encode="ps" mode="bi" command=""@PSDelegate@" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i""/>
<delegate decode="pdf" encode="jpg" mode="bi" command=""@PSDelegate@" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 -sDEVICE=pswrite "-sOutputFile=%o" -- "%i""/>