]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Add section about landscape pages.
authorJeremias Maerki <jeremias@apache.org>
Thu, 15 May 2003 16:40:05 +0000 (16:40 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 15 May 2003 16:40:05 +0000 (16:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196436 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/fo.xml

index b0a8fdbd6b77c3009372e91b9ae995a0cbf3e4c8..30af578c230b285514dab7f1b4033aac37a67637 100644 (file)
@@ -421,6 +421,20 @@ This document can be used either to validate against the FO standard, or against
 See the notes near the beginning of the document for instructions on how to use it.
           </p>
       </section>
+      <section id="landscape">
+        <title>Producing landscape pages</title>
+        <p>
+          Pages in landscape format can easily be produced by exchanging the page-height and page-width values of a simple-page-master element.
+        </p>
+        <source><![CDATA[<fo:layout-master-set>
+  <fo:simple-page-master master-name="A4-portrait" page-height="29.7cm" page-width="21cm" [..]>
+    <fo:region-body/>
+  </fo:simple-page-master>
+  <fo:simple-page-master master-name="A4-landscape" page-height="21cm" page-width="29.7cm" [..]>
+    <fo:region-body/>
+  </fo:simple-page-master>
+</fo:layout-master-set>]]></source>
+      </section>
     </section>
   </body>
 </document>