s***@adeptivesw.com
2006-08-30 16:04:12 UTC
I am trying to use Ghostscript in Windows to merge multiple PDFs into a
single PDF. The command line I am running is:
gswin32 -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=C:\Temp\tmp323.pdf
-dBATCH C:\Temp\pdf1.pdf C:\Temp\pdf2.pdf
When ghostscript opens, I get the error:
**** Unable to open the initial device, quitting.
If I remove the device name and use the default device, ghostscript
runs successfully and I can see the PDF being generated. My path has
the bin and lib dirs. Running ghostscript reports pdfwrite as one of
the devices that can be used. I have tried setting other environment
variables, such as gs_lib and making sure the temp is to a writable
location.
I've seen others with this issue, but they appear to be using gs,
showing they are using unix instead. I'm not sure why there would be
any difference, but trying to make the changes suggested in those
threads has not helped.
single PDF. The command line I am running is:
gswin32 -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=C:\Temp\tmp323.pdf
-dBATCH C:\Temp\pdf1.pdf C:\Temp\pdf2.pdf
When ghostscript opens, I get the error:
**** Unable to open the initial device, quitting.
If I remove the device name and use the default device, ghostscript
runs successfully and I can see the PDF being generated. My path has
the bin and lib dirs. Running ghostscript reports pdfwrite as one of
the devices that can be used. I have tried setting other environment
variables, such as gs_lib and making sure the temp is to a writable
location.
I've seen others with this issue, but they appear to be using gs,
showing they are using unix instead. I'm not sure why there would be
any difference, but trying to make the changes suggested in those
threads has not helped.