add_document method

add_document

Adds an empty document with default page size.

def add_document(self, activate):
    ...
ParameterTypeDescription
activateboolFlag indicating whether to select added document as active.

add_document

Adds an empty document with the first page dimensions width and height.

def add_document(self, width, height, activate):
    ...
ParameterTypeDescription
widthfloatWidth of the first page.
heightfloatHeight of the first page.
activateboolFlag indicating whether to select added document as active.

See Also