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
You might want to use the pdfwrite2 device.
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 <12d3b91f-0037-4d9a...@googlegroups.com>,
rpre...@gmail.com says...
You might want to use the pdfwrite2 device.There is no pdfwrite2 device, there is ps2write but that outputs level 2 PostScript.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 70 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 03:44:44 |
| Calls: | 949 |
| Calls today: | 1 |
| Files: | 1,325 |
| Messages: | 281,242 |