]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Document PCL-specific extension.
authorJeremias Maerki <jeremias@apache.org>
Mon, 24 Jul 2006 09:40:30 +0000 (09:40 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 24 Jul 2006 09:40:30 +0000 (09:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@424982 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/trunk/output.xml

index 8b89db59f959bacd538432384c37734536029f1f..9f50382bf1b98d07e9353308de1699d4760db1cf 100644 (file)
@@ -399,6 +399,42 @@ out = proc.getOutputStream();]]></source>
         the size of the output file and the print quality.
       </p>
     </section>
+    <section id="pcl-extensions">
+      <title>Extensions</title>
+      <p>The PCL Renderer supports some PCL specific extensions which can be embedded 
+      into the input FO document. To use the extensions the appropriate namespace must 
+      be declared in the fo:root element like this:</p>
+      <source><![CDATA[
+      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
+               xmlns:pcl="http://xmlgraphics.apache.org/fop/extensions/pcl">
+]]></source>
+      <section id="pcl-page-source">
+        <title>Page Source (Tray selection)</title>
+        <p>
+          The page-source extension attribute on fo:simple-page-master allows to 
+          select the paper tray the sheet for a particular simple-page-master is
+          to be taken from. Example:
+        </p>
+      <source><![CDATA[
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="simple" pcl:paper-source="2">
+          ...
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+]]></source>
+        <p>
+          Note: the tray number is a positive integer and the value depends on
+          the target printer. Not all PCL printers support the same paper trays.
+          Usually, 
+          "1" is the default tray,
+          "2" is the manual paper feed, 
+          "3" is the manual envelope feed, 
+          "4" is the "lower" tray and
+          "7" is "auto-select".
+          Consult the technical reference for your printer for all available values.
+        </p>
+      </section>
+    </section>
   </section>
   <section id="afp">
     <title>AFP</title>