Page 1 of 1

Convert PDF to .TIF

Posted: 2016-02-08T14:49:45-07:00
by vargheseg
Hi,

I am trying to convert PDF file to .tif format.

Here is my version information:
Version: ImageMagick 6.9.3-3 Q16 x64 2016-02-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo freetype jng jp2 jpeg lcms lqr openexr pangoca
iro png ps rsvg tiff webp xml zlib

here is the error that I am getting when converting 2 page PDF file - just for testing purpose:

my convert command is as follows:

C:\Program Files\ImageMagick-6.9.3-Q16> convert SNOMED.pdf logo.tif

convert.exe: FailedToExecuteCommand `"gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -
dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEV
ICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" "-sOutputFile=C
:/Users/VARGHE~1/AppData/Local/Temp/magick-105764Ix1z_T1KeiR%d" "-fC:/Users/VARG
HE~1/AppData/Local/Temp/magick-10576Yy5dBdR9aUEm" "-fC:/Users/VARGHE~1/AppData/L
ocal/Temp/magick-105762iWecZdvJ8s_"' (The system cannot find the file specified.

) @ error/delegate.c/ExternalDelegateCommand/480.
convert.exe: PDFDelegateFailed `The system cannot find the file specified.
' @ error/pdf.c/ReadPDFImage/800.
convert.exe: no images defined `logo.gif' @ error/convert.c/ConvertImageCommand/
3241.

Re: Convert PDF to .TIF

Posted: 2016-02-08T15:16:17-07:00
by fmw42
Delegates (built-in): bzlib cairo freetype jng jp2 jpeg lcms lqr openexr pangoca
iro png ps rsvg tiff webp xml zlib
You have not installed the delegate for Ghostscript, which should show in your list above as gslib (or possibly gs). It is needed to read PDF files.

Re: Convert PDF to .TIF

Posted: 2016-10-17T12:36:16-07:00
by ak2016
I have both ghostscript installed and this was working fine till two days ago. however now it is not working. All I have done is update the nupkg in my Visual Studio environment. This is the error I get
PDFDelegateFailed `[ghostscript library 9.19] -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r300x300" "-sOutputFile=C:/Users/User1/AppData/Local/Temp/2/magick-8008QsYryUmaf_FB%d" "-fC:/Users/User1/AppData/Local/Temp/2/magick-80087-DPYDPS-cnj" "-fC:/Users/User1/AppData/Local/Temp/2/magick-8008xZPZNmzHTfdM": (null)' @ error/pdf.c/ReadPDFImage/783.

The interesting thing is that this error is happening on a Win Server 2012 16 core box, while on a dual core win server 2008 R2 is working fine.



Any help is greatly appreciated. I uninstalled and reinstalled ghostscript 9.19 that was working fine with the setup.

Re: Convert PDF to .TIF

Posted: 2016-10-17T14:08:08-07:00
by snibgo
What command were you running? What version of IM? What platform? (I assume Windows.)

Re: Convert PDF to .TIF

Posted: 2016-10-17T16:11:41-07:00
by ak2016
C# in Visual Studio.Net 2015 deployment on win server 2012 16 core 64gb machine