File: reference.yml

package info (click to toggle)
python-reportlab 3.5.13-1%2Bdeb10u1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 8,640 kB
  • sloc: python: 83,635; ansic: 19,082; xml: 1,494; makefile: 425; java: 193; sh: 100
file content (312 lines) | stat: -rw-r--r-- 9,927 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
.t ReportLab API Reference

.nextPageTemplate Normal

.h1 Introduction

This is the API reference for the ReportLab library.  All public
classes, functions and methods are documented here.

Most of the reference text is built automatically from the
documentation strings in each class, method and function.
That's why it uses preformatted text and doesn't look very
pretty.

Please note the following points:
.bu <seqdefault id='list'/><bullet>(<seq/>)</bullet>Items with one leading underscore are considered private
to the modules they are defined in; they are not documented
here and we make no commitment to their maintenance.
.bu <bullet>(<seq/>)</bullet>Items ending in a digit (usually zero) are experimental;
they are released to allow widespread testing, but are
guaranteed to be broken in future (if only by dropping the
zero).  By all means play with these and give feedback, but
do not use them in production scripts.

.h2 Package Architecture

The reportlab package is broken into a number of subpackages.
These are as follows:

.df <font name="Courier"><b>reportlab.pdfgen</b></font>
- this is the programming
interface to the PDF file format.  The Canvas (and its co-workers,
TextObject and PathObject) provide everything you need to
create PDF output working at a low level - individual shapes
and lines of text.  Internally, it constructs blocks of
<i>page marking operators</i> which match your drawing commands,
and hand them over to the <font name="Courier">pdfbase</font>
package for drawing.

.df <font name="Courier"><b>reportlab.pdfbase</b></font>
- this is not part of the
public interface.  It contains code to handle the 'outer
structure' of PDF files, and utilities to handle text metrics
and compressed streams.

.df <font name="Courier"><b>reportlab.platypus</b></font>
- PLATYPUS stands for
"Page Layout and Typography Using Scripts".  It provides a
higher level of abstraction dealing with paragraphs, frames
on the page, and document templates.  This is used for multi-
page documents such as this reference.

.df <font name="Courier"><b>reportlab.lib</b></font>
- this contains code of
interest to application developers which cuts across
both of our libraries, such as standard colors, units, and
page sizes.  It will also contain more drawable and flowable
objects in future.

There is also a demos directory containing various demonstrations,
and a docs directory.  These can be accessed with package
notation but should not be thought of as packages.

Each package is documented in turn.

.pageBreak
.h1 <i>reportlab.pdfgen</i> subpackage

.h2 <i>reportlab.pdfgen.canvas module</i>

.getClassDoc reportlab.pdfgen.canvas Canvas
.pageBreak

.h2 <i>reportlab.pdfgen.pathobject module</i>

The method Canvas.beginPath allows users to construct
a PDFPathObject, which is defined in reportlab/pdfgen/pathobject.py.

.getClassDoc reportlab.pdfgen.pathobject PDFPathObject
.pageBreak

.h2 <i>reportlab.pdfgen.textobject module</i>

The method Canvas.beginText allows users to construct
a PDFTextObject, which is defined in reportlab/pdfgen/textobject.py.

.getClassDoc reportlab.pdfgen.textobject PDFTextObject
.pageBreak

.h2 <i>reportlab.pdfgen.pdfgeom module</i>

.getModuleDoc reportlab.pdfgen.pdfgeom

.h2 <i>reportlab.pdfgen.pdfimages module</i>

.getModuleDoc reportlab.pdfgen.pdfimages

.h2 <i>reportlab.pdfgen.pycanvas module</i>

.getModuleDoc reportlab.pdfgen.pycanvas

.pageBreak
.h1 <i>reportlab.platypus</i> subpackage

The platypus package defines our high-level page layout API.
The division into modules is far from final and has been
based more on balancing the module lengths than on any
particular programming interface.  The __init__ module
imports the key classes into the top level of the package.

.h2 Overall Structure

Abstractly Platypus currently can be thought of has having four
levels: documents, pages, frames and flowables (things which can fit into frames in some way).
In practice there is a fifth level, the canvas, so that if you want
you can do anything that pdfgen's canvas allows.

.h2 Document Templates
.h3 BaseDocTemplate

The basic document template class; it provides for initialisation and 
rendering of documents. A whole bunch of methods 
<b><font name=courier>handle_XXX</font></b> handle document
rendering events. These event routines all contain some
significant semantics so while these may be overridden that
may require some detailed knowledge. Some other methods are
completely virtual and are designed to be overridden.
.h3 BaseDocTemplate
.getClassDoc reportlab.platypus.doctemplate BaseDocTemplate

.pageBreak
A simple document processor can be made using derived class,
<b><font name=courier>SimpleDocTemplate</font></b>.

.pageBreak
.h3 SimpleDocTemplate
.getClassDoc reportlab.platypus.doctemplate SimpleDocTemplate

.pageBreak
.h2 Flowables
.getClassDoc reportlab.platypus.paragraph Paragraph
.getClassDoc reportlab.platypus.flowables Flowable
.getClassDoc reportlab.platypus.flowables XBox
.getClassDoc reportlab.platypus.flowables Preformatted
.getClassDoc reportlab.platypus.flowables Image
.getClassDoc reportlab.platypus.flowables NullDraw
.getClassDoc reportlab.platypus.flowables Spacer
.getClassDoc reportlab.platypus.flowables UseUpSpace
.getClassDoc reportlab.platypus.flowables PageBreak
.getClassDoc reportlab.platypus.flowables SlowPageBreak
.getClassDoc reportlab.platypus.flowables CondPageBreak
.getClassDoc reportlab.platypus.flowables KeepTogether
.getClassDoc reportlab.platypus.flowables Macro
.getClassDoc reportlab.platypus.flowables CallerMacro
.getClassDoc reportlab.platypus.flowables ParagraphAndImage
.getClassDoc reportlab.platypus.flowables KeepInFrame
.getClassDoc reportlab.platypus.flowables ImageAndFlowables
.getClassDoc reportlab.platypus.flowables AnchorFlowable
.getClassDoc reportlab.platypus.flowables FrameSplitter
.getClassDoc reportlab.platypus.tableofcontents TableOfContents
.getClassDoc reportlab.platypus.tableofcontents SimpleIndex
.getClassDoc reportlab.platypus.xpreformatted XPreformatted
.getClassDoc reportlab.platypus.xpreformatted PythonPreformatted

.pageBreak
.h1 <i>reportlab.lib</i> subpackage

This package contains a number of modules which either add utility
to pdfgen and platypus, or which are of general use in graphics
applications.

.h2 <i>reportlab.lib.colors</i> module
.getModuleDoc reportlab.lib.colors

.h2 <i>reportlab.lib.corp</i> module
.getModuleDoc reportlab.lib.corp

.h2 <i>reportlab.lib.enums</i> module
.getModuleDoc reportlab.lib.enums

.h2 <i>reportlab.lib.fonts</i> module
.getModuleDoc reportlab.lib.fonts

.h2 <i>reportlab.lib.pagesizes</i> module
.getModuleDoc reportlab.lib.pagesizes

.h2 <i>reportlab.lib.sequencer</i> module
.getModuleDoc reportlab.lib.sequencer

.h2 <i>reportlab.lib.abag</i> module
.getModuleDoc reportlab.lib.abag

.h2 <i>reportlab.lib.attrmap</i> module
.getModuleDoc reportlab.lib.attrmap

.h2 <i>reportlab.lib.boxstuff</i> module
.getModuleDoc reportlab.lib.boxstuff

.h2 <i>reportlab.lib.codecharts</i> module
.getModuleDoc reportlab.lib.codecharts

.h2 <i>reportlab.lib.extformat</i> module
.getModuleDoc reportlab.lib.extformat

.h2 <i>reportlab.lib.fontfinder</i> module
.getModuleDoc reportlab.lib.fontfinder

.h2 <i>reportlab.lib.formatters</i> module
.getModuleDoc reportlab.lib.formatters

.h2 <i>reportlab.lib.geomutils</i> module
.getModuleDoc reportlab.lib.geomutils

.h2 <i>reportlab.lib.logger</i> module
.getModuleDoc reportlab.lib.logger

.h2 <i>reportlab.lib.normalDate</i> module
.getModuleDoc reportlab.lib.normalDate

.h2 <i>reportlab.lib.pdfencrypt</i> module
.getModuleDoc reportlab.lib.pdfencrypt

.h2 <i>reportlab.lib.PyFontify</i> module
.getModuleDoc reportlab.lib.PyFontify

.h2 <i>reportlab.lib.randomtext</i> module
.getModuleDoc reportlab.lib.randomtext

.h2 <i>reportlab.lib.rltempfile</i> module
.getModuleDoc reportlab.lib.rltempfile

.h2 <i>reportlab.lib.rparsexml</i> module
.getModuleDoc reportlab.lib.rparsexml

.h2 <i>reportlab.lib.set_ops</i> module
.getModuleDoc reportlab.lib.set_ops

.h2 <i>reportlab.lib.styles</i> module
.getModuleDoc reportlab.lib.styles

.h2 <i>reportlab.lib.testutils</i> module
.getModuleDoc reportlab.lib.testutils

.h2 <i>reportlab.lib.textsplit</i> module
.getModuleDoc reportlab.lib.textsplit

.h2 <i>reportlab.lib.units</i> module
.getModuleDoc reportlab.lib.units

.h2 <i>reportlab.lib.utils</i> module
.getModuleDoc reportlab.lib.utils

.h2 <i>reportlab.lib.validators</i> module
.getModuleDoc reportlab.lib.validators

.h2 <i>reportlab.lib.xmllib</i> module
.getModuleDoc reportlab.lib.xmllib

.h2 <i>reportlab.lib.yaml</i> module
.getModuleDoc reportlab.lib.yaml


.pageBreak
.h1 Appendix A - CVS Revision History
.beginPre Code
$Log: reference.yml,v $
Revision 1.1  2001/10/05 12:33:33  rgbecker
Moved from original project docs, history lost

Revision 1.13  2001/08/30 10:32:38  dinu_gherman
Added missing flowables.

Revision 1.12  2001/07/11 09:21:27  rgbecker
Typo fix from Jerome Alet

Revision 1.11  2000/07/10 23:56:09  andy_robinson
Paragraphs chapter pretty much complete.  Fancy cover.

Revision 1.10  2000/07/03 15:39:51  rgbecker
Documentation fixes

Revision 1.9  2000/06/28 14:52:43  rgbecker
Documentation changes

Revision 1.8  2000/06/19 23:52:31  andy_robinson
rltemplate now simple, based on UserDocTemplate

Revision 1.7  2000/06/17 07:46:45  andy_robinson
Small text changes

Revision 1.6  2000/06/14 21:22:52  andy_robinson
Added docs for library

Revision 1.5  2000/06/12 11:26:34  andy_robinson
Numbered list added

Revision 1.4  2000/06/12 11:13:09  andy_robinson
Added sequencer tags to paragraph parser

Revision 1.3  2000/06/09 01:44:24  aaron_watters
added automatic generation for pathobject and textobject modules.

Revision 1.2  2000/06/07 13:39:22  andy_robinson
Added some text to the first page of reference, and a build batch file

Revision 1.1.1.1  2000/06/05 16:39:04  andy_robinson
initial import

.endPre