跳到主要内容

InsertBlankPage

Inserts a blank page to the current location.

Syntax

expression.InsertBlankPage();

expression - A variable that represents a ApiDocument class.

Parameters

This method doesn't have any parameters.

Returns

boolean

Example

This example shows how to insert a blank page at the current cursor position.

const doc = Api.GetDocument();
doc.InsertBlankPage();

const paragraph = Api.CreateParagraph();
paragraph.AddText('This text is on the page after the blank one.');
doc.Push(paragraph);