Convert PDF to .TIF

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
vargheseg
Posts: 11
Joined: 2016-02-08T14:37:40-07:00
Authentication code: 1151

Convert PDF to .TIF

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

Re: Convert PDF to .TIF

Post 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.
ak2016
Posts: 2
Joined: 2016-10-17T12:28:44-07:00
Authentication code: 1151

Re: Convert PDF to .TIF

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert PDF to .TIF

Post by snibgo »

What command were you running? What version of IM? What platform? (I assume Windows.)
snibgo's IM pages: im.snibgo.com
ak2016
Posts: 2
Joined: 2016-10-17T12:28:44-07:00
Authentication code: 1151

Re: Convert PDF to .TIF

Post by ak2016 »

C# in Visual Studio.Net 2015 deployment on win server 2012 16 core 64gb machine
Post Reply