Download ReportLab PDF Generation User Guide

Transcript
User Guide
Chapter 6 Paragraphs
You are hereby charged that on the
28th day of May, 1970, you did willfully,
unlawfully, and with malice of
forethought, publish an alleged
English-Hungarian phrase book with
intent to cause a breach of the peace.
How do you plead?
spaceBefore = 0
fontName = Helvetica
bulletFontName = Helvetica
borderRadius = None
firstLineIndent = 0
leftIndent = 0
underlineProportion = 0.0
rightIndent = 0
wordWrap = None
allowWidows = 1
backColor = #FFFF00
textTransform = None
alignment = 0
borderColor = #000000
splitLongWords = 1
leading = 12
bulletIndent = 0
allowOrphans = 0
bulletFontSize = 10
fontSize = 10
borderWidth = 1
bulletAnchor = start
borderPadding = (7, 2, 20)
endDots = None
textColor = Color(0,0,0,1)
spaceAfter = 0
Figure 6-3: Variable padding
The leftIndent and rightIndent attributes do exactly what you would expect;
firstLineIndent is added to the leftIndent of the first line. If you want a straight left edge,
remember to set firstLineIndent equal to 0.
You are hereby
charged that on the 28th day
of May, 1970, you did
willfully, unlawfully, and with
malice of forethought,
publish an alleged
English-Hungarian phrase
book with intent to cause a
breach of the peace. How
do you plead?
spaceBefore = 0
fontName = Helvetica
bulletFontName = Helvetica
borderRadius = None
firstLineIndent = 24
leftIndent = 24
underlineProportion = 0.0
rightIndent = 24
wordWrap = None
allowWidows = 1
backColor = None
textTransform = None
alignment = 0
borderColor = None
splitLongWords = 1
leading = 12
bulletIndent = 0
allowOrphans = 0
bulletFontSize = 10
fontSize = 10
borderWidth = 0
bulletAnchor = start
borderPadding = 0
endDots = None
textColor = Color(0,0,0,1)
spaceAfter = 0
Figure 6-4: one third inch indents at left and right, two thirds on first line
Page 69