3 """Tests pleaseTurnOver, pageBreakBefore, frameBreakBefore, keepWithNext... |
3 """Tests pleaseTurnOver, pageBreakBefore, frameBreakBefore, keepWithNext... |
4 """ |
4 """ |
5 __version__='3.3.0' |
5 __version__='3.3.0' |
6 from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, outputfile, printLocation |
6 from reportlab.lib.testutils import setOutDir,makeSuiteForClasses, outputfile, printLocation |
7 setOutDir(__name__) |
7 setOutDir(__name__) |
8 import sys |
8 import sys, unittest |
9 import unittest |
|
10 from reportlab.platypus.flowables import Flowable, PTOContainer, KeepInFrame |
9 from reportlab.platypus.flowables import Flowable, PTOContainer, KeepInFrame |
11 from reportlab.platypus import FrameBG |
10 from reportlab.platypus import FrameBG |
12 from reportlab.lib.units import cm |
11 from reportlab.lib.units import cm |
13 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle |
12 from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle |
14 from reportlab.lib.colors import toColor, black |
13 from reportlab.lib.colors import toColor, black |
15 from reportlab.lib.enums import TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY |
14 from reportlab.lib.enums import TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY |
16 from reportlab.platypus.paragraph import Paragraph |
15 from reportlab.platypus.paragraph import Paragraph |
17 from reportlab.platypus.tables import Table |
16 from reportlab.platypus.tables import Table |
18 from reportlab.platypus.frames import Frame |
17 from reportlab.platypus.frames import Frame |
19 from reportlab.lib.randomtext import randomText |
|
20 from reportlab.platypus.doctemplate import PageTemplate, BaseDocTemplate, FrameBreak |
18 from reportlab.platypus.doctemplate import PageTemplate, BaseDocTemplate, FrameBreak |
21 |
19 |
22 def myMainPageFrame(canvas, doc): |
20 def myMainPageFrame(canvas, doc): |
23 "The page frame used for all PDF documents." |
21 "The page frame used for all PDF documents." |
24 |
22 |