evCreate API 5.7 Help

EvVLayoutConfig Interface

The EvVLayoutConfig TS interface specifies a blueprint of a JS object that configures pages automatically added to a document in Vertical Layout mode.

Properties

An EvVLayoutConfig object has the following properties:

optional footer: EvLayoutHeaderFooter;

An EvLayoutHeaderFooter object, the footer of an added page.

optional header: EvLayoutHeaderFooter;

An EvLayoutHeaderFooter object, the header of an added page.

optional pageHeight: number;

A number, the height of an added page in 2D length unit of measure global for the entire evCreate API.

The page height includes the heights of the header, footer, contained object items, and vertical spacing between them.

If a single object item is higher than the page, the height of that page will grow to accommodate that object item.

If pageHeight is not given or set to 0, the page will grow to fit the content until a new page is added explicitly with the AddPage(name?: string, title?: string): Promise<EvItem> function.

optional pageWidth: number;

A number, the width of an added page in 2D length unit of measure global for the entire evCreate API.

If an object item is wider than the page, parts of that object item will go outside the page.

If pageWidth is not given or set to 0, the page width will be set to the width of the Letter Portrait page size.

Examples

TS

{ footer: { height: 72, page_number: EvPageNumberLocation.Center }, header: { height: 72, title: "evCreate API" }, pageHeight: 1080, pageWidth: 1440 }

JS

{ footer: { height: 72, page_number: "center" }, header: { height: 72, title: "evCreate API" }, pageHeight: 1080, pageWidth: 1440 }
23 April 2025