Download ReportLab PDF Generation User Guide

Transcript
User Guide
Table of contents
Table of contents
Table of contents
2
Chapter 1 Introduction
5
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 2.x series . . . . . .
1.11 What's New in ReportLab 2.4 . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
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 Overprinting . . . . . . . . . . . . . . . . .
2.10 Standard fonts and text objects . . . . . . . . . . .
2.11 Text object methods . . . . . . . . . . . . . . . .
2.12 Paths and Lines . . . . . . . . . . . . . . . . . . .
2.13 Rectangles, circles, ellipses . . . . . . . . . . . .
2.14 Bezier curves . . . . . . . . . . . . . . . . . . . .
2.15 Path object methods . . . . . . . . . . . . . . . .
2.16 Further Reading: The ReportLab Graphics Library
Chapter 3 Fonts and encodings
.
.
.
.
.
.
.
.
.
.
.
.5
.5
.6
.6
.6
.7
.8
.8
.9
.9
.9
11
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. 11
. 11
. 12
. 13
. 15
. 17
. 17
. 22
. 25
. 27
. 29
. 35
. 39
. 40
. 42
. 47
48
3.1 Unicode and UTF8 are the default input encodings . . . . . . . . . . . . . . . . 48
3.2 Changing the built-in fonts output encoding . . . . . . . . . . . . . . . . . . . 48
Page 2