Home/ Reference/ Import / Export

doc.PublishToPDF(path)

PDF export. Fewest arguments, most reliable — the first choice for print delivery.

Signature

doc.PublishToPDF(path)

Notes

PDF export. Fewest arguments, most reliable — the first choice for print delivery.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
out = "D:/output/final.pdf"

doc.PublishToPDF(out)        # fewest arguments and the most stable; first choice for print delivery
print("PDF written: ", out)

About this section: Import / Export

Import / Export — import, export, save and print.

Other entries in this section