From Newsgroup: comp.lang.postscript
On Friday, June 17, 2022 at 2:32:32 PM UTC-5, D.B. Carter wrote:
Hello,
I'm trying to use Ghostscript via Autocad command line using Autolisp programming. The goal is totake multiple pdf's in a folder and create one pdf. I have the lisp writing the command line but it fails.
Here is what the autolisp file produces at the command line.
-sDEVICE= pdfwrite -dBATCH -sOutputFile=F:\Quick Plots\temp\20220617-TEST.PDF DP-L1.pdf DP-DP5.pdf DP-DP4.pdf DP-DP3.pdf DP-DP2.pdf DP-DP1.pdf
Why is failing?
(Error: /undefined in -sDEVICE=pdfwrite.)
Stab in the dark, but the error makes it look like the PostScript interpreter is trying
to execute the command line as if it were PostScript code. Maybe autocad is piping
directly into a running ghostscript instance and you'll need to use some other interface in Autocad to change the way ghostscript is being invoked (assuming the
earlier guess is correct).
--- Synchronet 3.21d-Linux NewsLink 1.2