Skip to content

<page> element

The <page> node represents a single page in the source document containing all the elements required to render that page.

Attributes

Attribute Description
left The left offset in pixels in pixels. This is typically 0.
top The top offset in pixels in pixels. This is typically 0.
width The width of the page in pixels.
height The height of the page in pixels.
styles Contains a semicolon delimited list of name:value pair style information values.

Styles

Style Description
pagewidth The width of the page in pixels.
pageheight The height of the page in pixels.
headerFromTop Indicates the space, in points, that the header is placed from the top of the page.
footerFromBottom Indicates the space, in points, that the footer is placed from the bottom of the page.
headerToBodySpacing Indicates the space, in points, that content is placed from the bottom of the header.
footerFromBottomSpacing Indicates the space, in points, that the content is placed from the top of the footer.
endSectionBreakType Indicates the type of break to use at the end of the current section, can be one of the following:0 Continuous1 NewColumn2 NewPage3 EvenPage4 OddPage
pageNumFormat Indicates the format that fielded page numbers use, can be one of the following:0 decimal1 upperRoman2 lowerRoman3 upperLetter4 lowerLetter5 ordinal6 cardinalText7 ordinalText8 hex
pageNumStart Indicates the first number to use when numbering pages.
pagemargins Specifies the top,left,right,bottom margin for the page in points.
areColumnsEvenlySpaced Indicates that columns should be evenly sized.
pageNumOffset Indicates the first page number for the section.
clipPage Indicates that content outside of the page margins should be clipped.
clipRect Indicates the top,left,right,bottom clipping rectangle for the page in points.
borderLeft Indicates the border style, width and color for the left side of the page.
borderRight Indicates the border style, width and color for the right side of the page.
borderTop Indicates the border style, width and color for the top side of the page.
borderBottom Indicates the border style, width and color for the bottom side of the page.
borderOffsetText Indicates if the left and right position of the text should be incremented by the width of the borders.
sourceDpiX Indicates the horizontal DPI from the source document, when present. Value is normally set for TIFF files.
sourceDpiY Indicates the vertical DPI from the source document, when present. Value is normally set for TIFF files.
sourceOrientation Indicates the page orientation from the source document, value is normally set for TIFF files, can be one of: TopLeft, TopRight, BottomLeft, BottomRight, LeftTop, RightTop, RightBottom, LeftBottom.
outputDpiX Indicates the output DPI used to create the generated output.
outputDpiY Indicates the output DPI used to create the generated output.
outputOrientation Indicates the page orientation used to create the generated output.

Children

Node Description
<header> A page can have zero or one <header>.
<footer> A page can have zero or one <footer>.
<section> A page can have zero or more <section>s.
<float> A page can have zero or more <float>ing objects.

Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<doc>
    <head>
        <meta name="Last Author" value="Ben Truscott" />
        <meta name="Page Count" value="50" />
        <meta name="Word Count" value="4633" />
        <meta name="Character Count" value="26412" />
    </head>
    <page styles="pagewidth: 816; pageheight: 1056; headerFromTop: 48; footerFromBottom: 9.33333; headerToBodySpacing: 0; footerFromBodySpacing: 0; endSectionBreakType: 0; pageNumFormat: decimal; pageNumChapterSeparator: 45; " left="0" top="0" width="816" height="1056">
        ...
    </page>
</doc>