Download RML User Guide - Bezirksreiter
Transcript
RML User Guide Contents 1. Introduction .. 5 1.1 The ReportLab Enterprise Reporting Solution ... 5 1.2 Installation and Use ... 5 1.3 What is RML? ... 7 1.4 What is this document? ... 7 1.5 Who is this document aimed at? ... 7 1.6 Conventions used in this document ... 7 Part I - The Basics .. 8 2. Pages and page structures .. 9 2.1 XML syntax and RML ... 9 2.2 The prolog ... 9 2.3 Document forms: stylesheet/pageDrawing vs template/stylesheet/story ... 10 3. Basic Text Operations .. 13 3.1 Coordinates and measurements ... 13 3.2 Using Colors ... 13 3.3 Using fonts ... 14 3.4 Basic text operations - setFont and drawString ... 14 4. Basic figures - lines and shapes .. 16 4.1 Rect, circle and ellipse ... 16 4.2 Fill and stroke ... 19 4.3 Lines and lineMode ... 19 5. Graphics vs Flowables .. 26 6. More about pages and page structures .. 27 6.1 More about template and pageTemplate ... 27 6.2 Frame and nextFrame ... 28 6.3 condPageBreak: conditional page breaks ... 28 6.4 storyPlace: out of band flowables ... 28 6.5 pto: Please Turn Over Control ... 29 6.6 More about stylesheets ... 29 7. Advanced text .. 31 7.1 Title ... 31 7.2 Headings -- h1, h2, h3 ... 31 7.3 Paragraphs and paragraph styles ... 31 7.4 The font tag ... 32 7.5 Superscripts and subscripts ... 32 7.6 Using multiple frames ... 33 7.7 Preformated text -- pre and xpre ... 33 7.8 Greek letters ... 34 7.9 Asian Fonts ... 37 Part II - Advanced Features .. 39 8. Miscellaneous useful features .. 40 8.1 pageNumber ... 40 8.2 name and getName ... 40 8.3 Seq, seqReset, seqChain and SeqFormat ... 40 8.4 Entities ... 44 8.5 Aliases ... 44 8.6 CDATA -- unparsed character data ... 44 8.7 Plug-ins: plugInGraphic and plugInFlowable ... 45