|  |  | 14.2 The page element

## 14.2 The `<page>` element

The `<page>` tag has one required attribute `mediabox`. This indicates the physical boundaries of the "paper" containing the page. The value is a sequence of four integers, separated by spaces, in the order min-x, min-y, max-x, max-y.

The contents of the `<page>` element consists, in this order, of possibly empty sequences of `<layer>` elements, `<view>` elements, and Ipe object elements.

The `<layer>` tag takes a required attribute `name`, and two optional attributes `visible` and `edit`. The `name` has to be unique within the page. The value of `visible` should be `yes`, `no`, or `dim`, and indicates how the layer is displayed on the screen (not in the PDF output--this is determined by the `<view>` elements), the value of `edit` should be `yes` or `no` and indicates whether the user can select and modify the contents of the layer in the Ipe user interface (of course the user can always modify the setting of the attribute). The layer element must be empty.

If a page contains no layer element, Ipe automatically adds a default layer named "alpha", visible and editable.

The `<view>` tag takes a required attribute `layers`, and three optional attribute, `duration`, `transition`, and `effect`. The value of `layers` must be a sequence of layer names defined in this page, separated by white space. The value of `duration` and `transition` must be a real number, the value of `effect` must be an integer between 0 and 16 (see `IpePresentation::TEffect` for the exact meaning of those). The parameters translated directly into the page transition effect in PDF.

It is okay for a page not to contain any `<view>` element. Such a page will be saved to PDF including all its layers, with no special effect.

The remaining elements of the `<page>` are Ipe objects.

|  |  | 14.2 The page element