XML technologies / XSL-FO / Reference / Compart XSL extensions / Elements / page-device

(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Category: Dokumentspezifisches Formatting object - cpfo:page-device

Description

This element specifies the printer’s input or output tray.

Attributes

cpfo:input-tray

This attribute specifies the input tray.

cpfo:output-tray

This attribute specifies the output tray.

XSL-FO example:

<fo:root>
<fo:layout-master-set>
<fo:simple-page-master margin="1cm" page-width="21cm" page-height="29.7cm" master-name="DinA4">
<fo:region-body region-name="xsl-region-body" margin="1cm" border=".1pt solid gray"/>
<fo:region-before region-name="xsl-region-before" extent="1cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="DinA4">
<cpfo:page-device input-tray="name-of-input-tray"/>
<fo:flow flow-name="xsl-region-body" font-size="20pt">
<fo:block>
page-device sample
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download the examples

In the output:

back to top