Download RML User Guide
Transcript
RML User Guide Document generated on 2014/09/25 13:10:59 1. Introduction ...................................................................................................................... 1.1. ReportLab PLUS ...................................................................................................... 1.2. Installation and Use .................................................................................................. 1.3. What is RML? .......................................................................................................... 1.4. What is this document?............................................................................................. 1.5. Who is this document aimed at?............................................................................... 1.6. Conventions used in this document .......................................................................... 4 4 4 7 7 7 7 Part I - The Basics 9 2. Pages and page structures ............................................................................................... 2.1. XML syntax and RML ............................................................................................. 2.2. The prolog................................................................................................................. 2.3. Document forms: stylesheet/pageDrawing vs template/stylesheet/story ................. 3. Basic Text Operations...................................................................................................... 3.1. Coordinates and measurements ................................................................................ 3.2. Using Colors ............................................................................................................. 3.3. Using fonts................................................................................................................ 3.4. Basic text operations - setFont and drawString ........................................................ 4. Basic figures - lines and shapes ....................................................................................... 4.1. Rect, circle and ellipse.............................................................................................. 4.2. Fill and stroke ........................................................................................................... 4.3. Lines and lineMode .................................................................................................. 5. Graphics vs Flowables ..................................................................................................... 6. More about pages and page structures .......................................................................... 6.1. More about template and pageTemplate .................................................................. 6.2. Frame and nextFrame ............................................................................................... 6.3. condPageBreak: conditional page breaks ................................................................. 6.4. storyPlace: out of band flowables............................................................................. 6.5. pto: Please Turn Over Control.................................................................................. 6.6. keepInFrame fixed space control.............................................................................. 6.7. imageAndFlowables tag ........................................................................................... 6.8. More about stylesheets ............................................................................................. 7. Advanced text ................................................................................................................... 7.1. Title........................................................................................................................... 7.2. Headings -- h1, h2, h3 .............................................................................................. 7.3. Paragraphs and paragraph styles............................................................................... 7.4. The font tag............................................................................................................... Page 2 9 9 9 11 14 14 14 14 15 17 17 20 21 28 29 29 30 30 30 31 31 32 32 35 35 35 35 36