Page 1 of 1

convert pdf to tiff

Posted: 2019-03-29T04:13:08-07:00
by mail2vguna
Hi

I am using ImageMagick-7.0.8-Q16 64 bit for windows.

I am using following script for convert multipage pdf to multiple tiff file.

magick.exe -density 300 test,tif -depth 8 temp_%d.tiff

i am getting following error.

magick.exe: FailedToExecuteCommand `"gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pamcmyk32" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r300x300" -dUseCIEColor "-sOutputFile=C:/Users/Rajani/AppData/Local/Temp/magick-13844PIUOCk6mUkHs%d" "-fC:/Users/Rajani/AppData/Local/Temp/magick-13844__yV4eGH1XJq" "-fC:/Users/Rajani/AppData/Local/Temp/magick-13844Q9TW5xWER67_"' (The system cannot find the file specified.
) @ error/delegate.c/ExternalDelegateCommand/475.
magick.exe: PDFDelegateFailed `The system cannot find the file specified.
' @ error/pdf.c/ReadPDFImage/795.

Do the needful. Many thanks

Re: convert pdf to tiff

Posted: 2019-03-29T09:24:50-07:00
by fmw42
Either you do not have Ghostscript installed or your policy.xml file is restricting use of PDF files. Check to see that Ghostscript is installed. If not install it, but do not use GS 9.26. It seems to be buggy. Use 9.25, 9.24, 9.23.

However, I do not understand why you would need Ghostscript for that command. Your input is TIF and your output is TIF. Did you make a typo for your command. Should it be

magick.exe -density 300 test.pdf -depth 8 temp_%d.tiff

Re: convert pdf to tiff

Posted: 2019-03-29T09:51:28-07:00
by mail2vguna
Thanks you are correct.

I just wrongly mention the input file type as tif instead of pdf.

Will check with GS and update you.

Many Thanks