createPage Method

Summary

Creates a new DocumentPage.

Syntax
TypeScript
JavaScript
DocumentPages.prototype.createPage = function( 
   size, 
   resolution 
) 
createPage( 
   size: LeadSizeD, 
   resolution: number 
): DocumentPage; 

Parameters

size

Size of the new page in document units. Cannot be empty (Empty).

resolution

The resolution of the new page in dots per inch (DPI). Must be greater than or equal to 0. A value of 0 means to use the default resolution of 96.

Return Value

The newly created page.

Remarks

Use this method to create new pages to be added in this LEADDocument. The constructor of DocumentPage is not accessible and this is the only method that allows you to create a DocumentPage.

The created page is not added automatically to the document, you must use Add or Insert to add the page.

The returned DocumentPage set as its size as its Resolution.

size is in document units, refer to Document Library Coordinate System for more information.

Example

For an example, refer to DocumentFactory.Create.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.