convert pdf to tiff

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mail2vguna
Posts: 20
Joined: 2015-06-04T07:52:46-07:00
Authentication code: 6789

convert pdf to tiff

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert pdf to tiff

Post 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
mail2vguna
Posts: 20
Joined: 2015-06-04T07:52:46-07:00
Authentication code: 6789

Re: convert pdf to tiff

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