Change PDF Options with Lisp

Change PDF Options with Lisp

kieran.leadbetter
Advocate Advocate
797 Views
4 Replies
Message 1 of 5

Change PDF Options with Lisp

kieran.leadbetter
Advocate
Advocate

Hello, I was wondering if anyone may know how to use a lisp to alter the PDF Options within Plot, 

The standard "-Plot" command does not cover the PDF options I wish to alter, I require to disable and enable

Disable:

"Include Layer Information" and "Capture Fonts used in the Drawing"

Enable:

"Convert all Text to Geometry"

And vice versa. this is in order to Flatten a PDF when required through AutoCAD Plotting. 

Kind Regards,

kieranleadbetter_0-1692616435869.png

 

0 Likes
Accepted solutions (1)
798 Views
4 Replies
Replies (4)
Message 2 of 5

annoisscary
Advocate
Advocate
Accepted solution

configure your settings for the plot and save it as a printer configuration. When printing from lisp just call that specific configuration where needed.

0 Likes
Message 3 of 5

kieran.leadbetter
Advocate
Advocate

SPOT ON, been stuck on this for weeks,

Thank you so much

0 Likes
Message 4 of 5

kieran.leadbetter
Advocate
Advocate
I was quick to close this forum, that fixed the first issue and allowed me to plot controlling pdf layers,

But now that I need to switch between the 2 plotting styles, is there a lisp line to change the Plotter of my layout page, currently I need to manually go into the plot setting to achieve this, as the -Plot command does not seem to do this fully
0 Likes
Message 5 of 5

annoisscary
Advocate
Advocate

I don't know if you can *change* the selected plotter from lisp, but you can assign a specific plotter for each command call. here is a command call for plot with each prompt being answered, "dwg to Pdf" is the plotter. Customize this to your needs, if you are lost on what each entry it just go into cad and manually execute the -plot command and take note of each prompt.

 

 

 

(command "-plot" "yes" "" "dwg to Pdf" "ANSI full bleed A (8.50 x 11.00 Inches)" "Inches" "Landscape" "No" "Layout" "Fit" "" "Y" "DMW.ctb" "Y" "N" "N" "N" pdfname "N" "Y")

 

 

 

If you need more help just ask.

0 Likes