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.)
On 06/17/2022 12:32 PM, 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.)
You have a space between the "-sDEVICE=" and "pdfwrite" but the error
seems to show it is ignoring the space.
I don't see that the command starts with "gs" but I'm not a Windoze user.
Try "gs -h" and see if "pdfwrite" is listed under "Available devices:"
Jeff
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.)
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.)
In article <[email protected]>,
[email protected] says...
You might want to use the pdfwrite2 device.There is no pdfwrite2 device, there is ps2write but that outputs level 2 PostScript.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 07:13:36 |
| Calls: | 12,100 |
| Calls today: | 8 |
| Files: | 15,003 |
| Messages: | 6,517,930 |
| Posted today: | 1 |