Home/ Reference/ Application

app.CreateDocument()

Creates a blank document and returns it.

Signature

app.CreateDocument()

Notes

Creates a blank document and returns it.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
doc = app.CreateDocument()              # create a blank document, returns a Document
print("Created, pages: ", doc.Pages.Count)

doc2 = app.CreateDocument()             # opening a second one is fine too
print("Now open: ", app.Documents.Count, " document(s)")

About this section: Application

Application — the CorelDRAW application object.

Other entries in this section