Hi all,
I'm working on a project where I need to programmatically convert a lot of PDF files to TIFF. A fast and reliable tool for this is Ghostscript. But I'm facing troubles with it.
Here is the command line I'm using for the job:
Code:
$ gs -q -dSAFER -dBATCH -dNOPAUSE -r300x300 -sDEVICE=tifflzw -sOutputFile=out-%06d.tif inputfile.pdf
As one can see, I'm converting a PDF file to TIFF with an output resolution of 300dpi, 1bit color (B&W) and LZW compression. This is a requirement for the project.
When I run the above line on Slackware, I get this:
Code:
Unrecoverable error: undefined in .getdeviceparams
Operand stack:
--nostringval-- --nostringval--
Now, when I run it under Ubuntu (>12.04) it work just fine. It also works on Slackware when I change the device to
-sDEVICE=tiffgray, but this gives me an 8bit color file, which breaks the project specification.
I've already look around the net and can't find anything that help me to solve this out. That's why I'm asking for the Slackware experts here.
Does anyone out there have faced something similar? Is this a Ghostscript or Postscript error? Is there any know solution for this under Slackware?
Bellow are some debug info about GS. The Slackware it's running on is a -current multilib.
Code:
$ gs
GPL Ghostscript 9.07 (2013-02-14)
Copyright (C) 2012 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>devicenames ==
[... /tifflzw ...]
Let me know if I can provide any piece of information from this system.
I thank you very much in advance for any relevant information.