Home/ Reference/ Import / Export

doc.SaveAs(path)

Saves under a new path and points the document at it.

Signature

doc.SaveAs(path)

Notes

Saves under a new path and points the document at it.

Python example (runnable)

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

doc.SaveAs(out)              # save as; doc.FileName now points at the new file
print("Saved as: ", doc.FileName)

# for a backup before editing, save twice under different names
# doc.SaveAs("/artwork/backup.cdr")

About this section: Import / Export

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

Other entries in this section