Home/ Reference/ Import / Export

doc.ExportEx(path, filter, options)

General export. filter takes a cdrFilter value; pass None to use the default options.

Signature

doc.ExportEx(path, filter, options)

Notes

General export. filter takes a cdrFilter value; pass None to use the default options.

Python example (runnable)

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

# ExportEx(path, filter, options): filter codes vary, keep a try around it
try:
    doc.ExportEx(out, 0, None)
    print("Exported: ", out)
except Exception as e:
    print("ExportEx failed: ", e)
    print("Going through PDF then converting the image is sturdier")

About this section: Import / Export

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

Other entries in this section