Download ReportLab PDF Generation User Guide
Transcript
User Guide Table of contents Table of contents Table of contents 2 Chapter 1 Introduction 6 1.1 About this document . . . . . . . . . 1.2 What is the ReportLab PDF Library? 1.3 ReportLab's commercial software . . 1.4 What is Python? . . . . . . . . . . . 1.5 Acknowledgements . . . . . . . . . 1.6 Installation and Setup . . . . . . . . 1.7 Getting Involved . . . . . . . . . . . 1.8 Site Configuration . . . . . . . . . . 1.9 Learning More About Python . . . . 1.10 Goals for the 3.x release series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 2 Graphics and Text with pdfgen 2.1 Basic Concepts . . . . . . . . . . . . . . . . . . . 2.2 More about the Canvas . . . . . . . . . . . . . . . 2.3 Drawing Operations . . . . . . . . . . . . . . . . 2.4 The tools: the "draw" operations . . . . . . . . . . 2.5 The toolbox: the "state change" operations . . . . 2.6 Other canvas methods. . . . . . . . . . . . . . . . 2.7 Coordinates (default user space) . . . . . . . . . . 2.8 Colors . . . . . . . . . . . . . . . . . . . . . . . . 2.9 Color space checking . . . . . . . . . . . . . . . . 2.10 Color Overprinting . . . . . . . . . . . . . . . . . 2.11 Standard fonts and text objects . . . . . . . . . . 2.12 Text object methods . . . . . . . . . . . . . . . . 2.13 Paths and Lines . . . . . . . . . . . . . . . . . . 2.14 Rectangles, circles, ellipses . . . . . . . . . . . . 2.15 Bezier curves . . . . . . . . . . . . . . . . . . . 2.16 Path object methods . . . . . . . . . . . . . . . 2.17 Further Reading: The ReportLab Graphics Library Chapter 3 Fonts and encodings . . . . . . . . . . .6 .6 .7 .7 .7 .8 .8 .8 .9 .9 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 . 10 . 11 . 12 . 14 . 16 . 16 . 21 . 24 . 24 . 26 . 28 . 34 . 38 . 39 . 41 . 46 47 3.1 Unicode and UTF8 are the default input encodings . . . . . . . . . . . 47 3.2 Automatic output font substitution . . . . . . . . . . . . . . . . . . . . 47 Page 2