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 <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: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 428 |
Nodes: | 16 (2 / 14) |
Uptime: | 109:57:41 |
Calls: | 9,053 |
Files: | 13,395 |
Messages: | 6,016,026 |