insert_document method

insert_document

Inserts an empty document with default page size at index position.

def insert_document(self, index, activate):
    ...
ParameterTypeDescription
indexintPosition at which a document should be inserted.
activateboolFlag indicating whether to select inserted document as active.

insert_document

Inserts an empty document with the first page dimensions width and height at index position.

def insert_document(self, index, width, height, activate):
    ...
ParameterTypeDescription
indexintPosition at which a document should be inserted.
widthfloatWidth of the first page.
heightfloatHeight of the first page.
activateboolFlag indicating whether to select inserted document as active.

See Also