since version 4.5.14

Finishes the current page.

Child elements


Parent elements

AtPageCreation, AtPageShipout, Case, Contents, ForAll, Function, Loop, Otherwise, Record, SavePages, SetVariable, Until, While


force (optional)

Force the creation of a new page when multiple consecutive ClearPage commands occur.

matter (optional)

Set the matter for the new page.

openon (optional)

The next current page will be a left or a right page. E.g. when on page 1 and openon="right" then page 2 is empty and the next current page is 3.


The next objects will be placed on a left page.


The next objects will be placed on a right page.

pagetype (text, optional)

The name of the next page type that should be used. If an InsertPage follows the NextPage, the pagetype is used for the first inserted page.

skippagetype (text, optional)

The pagetype of the blank page if inserted (see the attribute openon).


This used to be the command <NewPage>. NewPage is kept internally for backwards compatibility, but had incorrect behaviour.


<Record element="data">
      <Paragraph><Value>This is page 1</Value></Paragraph>
  <ClearPage openon="right"/>
      <Paragraph><Value>And this is page 3</Value></Paragraph>

See also