reportlab 4.1.0__tar.gz → 4.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {reportlab-4.1.0 → reportlab-4.2.2}/CHANGES.md +21 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/PKG-INFO +1 -1
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/__init__.py +2 -2
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/test.py +3 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderPDF.py +7 -3
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderPM.py +33 -16
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/colors.py +5 -1
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/rl_safe_eval.py +43 -17
- reportlab-4.2.2/src/reportlab/license.txt +29 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/acroform.py +11 -8
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfdoc.py +33 -4
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/doctemplate.py +3 -2
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/flowables.py +10 -2
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/tableofcontents.py +7 -5
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/PKG-INFO +1 -1
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/SOURCES.txt +195 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample0c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample0c.py +57 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample1.py +47 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4a.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4b.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4c.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4c1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4c1.py +36 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4d.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4d.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5a.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5b.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5c.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5d.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5d.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6a.py +47 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6b.py +47 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6c.py +47 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6d.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6d.py +47 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7a.py +47 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7b.py +47 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7c.py +47 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7d.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7d.py +47 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample8a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample8a.py +104 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample8b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample8b.py +104 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9a.py +110 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9b.py +119 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9c.py +119 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample_hatching.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample_hatching.py +13 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_SampleH5c4.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_SampleH5c4.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0a.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0b.py +37 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0c.py +36 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH1.py +84 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2a.py +74 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2b.py +74 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2c.py +104 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH3.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH3.py +83 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4a.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4b.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4c.py +42 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4d.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4d.py +34 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5a.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5b.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c1.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c2.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c2.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c3.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c3.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c4.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c4.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleStacked1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleStacked1.py +216 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleSymbol1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleSymbol1.py +214 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0a.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0b.py +37 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0c.py +36 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV1.py +84 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2a.py +74 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2b.py +74 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2c.py +104 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV3.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV3.py +85 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4a.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4b.py +46 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4c.py +42 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4d.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4d.py +34 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5a.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5b.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c1.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c2.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c2.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c3.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c3.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c4.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c4.py +52 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_sampleDoughnutDDFLabels.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_sampleDoughnutDDFLabels.py +55 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_samplePieDDFLabels.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_samplePieDDFLabels.py +93 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_sampleSpiderDDFLabels.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_sampleSpiderDDFLabels.py +263 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample1.py +16 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample2.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample2.py +18 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample3.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample3.py +28 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample4.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample4.py +28 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_legends_sample3.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample3.py +7 -7
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_legends_sample3a.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample3a.py +7 -7
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_legends_sample4a.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample4a.py +7 -7
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample1.py +133 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample1a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample1a.py +139 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample2.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample2.py +182 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample3.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample3.py +174 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sampleCandleStick.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sampleCandleStick.py +68 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1a.py +213 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1b.py +113 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1c.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1c.py +101 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample2.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample2.py +83 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sampleFillPairedData.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sampleFillPairedData.py +57 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample0a.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample0a.py +14 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample0b.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample0b.py +14 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample1.py +24 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample2.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample2.py +30 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample3.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample3.py +15 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample4.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample4.py +18 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample5.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample5.py +36 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample6.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample6.py +37 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample7.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample7.py +180 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample8.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample8.py +76 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample9.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample9.py +76 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_special_sample1line.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_special_sample2line.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_special_sample4pie.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_spider_sample1.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_spider_sample1.py +42 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_spider_sample2.gif +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_charts_spider_sample2.py +75 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_images_alpha_test.png +0 -0
- reportlab-4.2.2/tests/charts-out/test_graphics_images_alpha_test8.png +0 -0
- reportlab-4.2.2/tests/render-out/410.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing14.py +2 -2
- reportlab-4.2.2/tests/test_graphics_images-libart.gif +0 -0
- reportlab-4.2.2/tests/test_graphics_images-libart.png +0 -0
- reportlab-4.2.2/tests/test_graphics_images.gif +0 -0
- reportlab-4.2.2/tests/test_graphics_images.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_images.py +74 -8
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_programming.py +4 -3
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/examples.py +10 -32
- reportlab-4.1.0/tests/charts-out/test_graphics_charts_legends_sample3.gif +0 -0
- reportlab-4.1.0/tests/charts-out/test_graphics_charts_legends_sample3a.gif +0 -0
- reportlab-4.1.0/tests/charts-out/test_graphics_charts_legends_sample4a.gif +0 -0
- reportlab-4.1.0/tests/charts-out/test_graphics_charts_special_sample1line.gif +0 -0
- reportlab-4.1.0/tests/charts-out/test_graphics_charts_special_sample2line.gif +0 -0
- reportlab-4.1.0/tests/charts-out/test_graphics_charts_special_sample4pie.gif +0 -0
- reportlab-4.1.0/tests/render-out/410.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/INSTALL.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/LICENSE +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/MANIFEST.in +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/README.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/VERSION.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/colors/colortest.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/gadflypaper/00readme.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/gadflypaper/gfe.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/00readme.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/dodyssey.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/fodyssey.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/odyssey.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/odyssey.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/rlzope/readme.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/rlzope/rlzope.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/stdfonts/00readme.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/stdfonts/stdfonts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/demos/tests/testdemos.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/00readme.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/Makefile +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/genAll.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/gen_epydoc +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/Edit_Prefs.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/Python_21.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/Python_21_HINT.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/fileExchange.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/jpn.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/jpnchars.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/lj8100.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/redsquare.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/replogo.a85 +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/replogo.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/testimg.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/make.bat +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/reference/build.bat +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/reference/genreference.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/reference/reference.yml +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/_static/basic.css +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/_static/default.css +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/_templates/layout.html +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/_templates/page.html +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/conf.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/graphics.rst +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/index.rst +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/lib.rst +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/pdfgen.rst +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/platypus.rst +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/app_demos.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch1_intro.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch2_graphics.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch2a_fonts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch3_pdffeatures.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch4_platypus_concepts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch5_paragraphs.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch6_tables.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch7_custom.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/genuserguide.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_charts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_concepts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_intro.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_shapes.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_widgets.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/testfile.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/pyproject.toml +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/setup.cfg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/setup.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/MANIFEST.in +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/00readme.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden-changelog.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden-copying-gpl.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden-copying.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden-readme.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden.sfd +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGardenMK.afm +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGardenMK.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/Vera.ttf +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/VeraBI.ttf +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/VeraBd.ttf +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/VeraIt.ttf +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_a______.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_ab_____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_abi____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_ai_____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_eb_____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_ebi____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_ei_____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_er_____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/bitstream-vera-license.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/callig15.afm +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/callig15.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/cob_____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/cobo____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/com_____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/coo_____.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/sy______.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/zd______.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/zx______.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/zy______.pfb +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/README +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/TODO +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/code128.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/code39.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/code93.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/common.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/dmtx.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/eanbc.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/ecc200datamatrix.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/fourstate.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/lto.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/qr.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/qrencoder.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/usps.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/usps4s.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/widgets.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/areas.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/axes.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/barcharts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/dotbox.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/doughnut.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/legends.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/linecharts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/lineplots.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/markers.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/piecharts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/slidebox.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/spider.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/textlabels.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/utils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/utils3d.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderPS.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderSVG.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderbase.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/bubble.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/clustered_bar.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/clustered_column.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/excelcolors.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/exploded_pie.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/filled_radar.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/line_chart.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/linechart_with_markers.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/radar.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/runall.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/scatter.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/scatter_lines.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/scatter_lines_markers.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/simple_pie.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/stacked_bar.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/stacked_column.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/shapes.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/svgpath.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/testdrawings.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/testshapes.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/transform.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/utils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgetbase.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/adjustableArrow.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/eventcal.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/flags.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/grids.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/markers.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/signsandsymbols.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/table.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/PyFontify.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/abag.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/arciv.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/attrmap.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/boxstuff.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/codecharts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/corp.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/enums.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/extformat.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/fontfinder.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/fonts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/formatters.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/geomutils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/logger.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/normalDate.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/pagesizes.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/pdfencrypt.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/pygments2xpre.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/randomtext.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/rl_accel.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/rltempfile.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/rparsexml.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/sequencer.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/styles.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/testutils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/textsplit.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/units.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/utils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/validators.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/yaml.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_can_cmap_data.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_cidfontdata.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_macexpert.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_macroman.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_pdfdoc.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_standard.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_symbol.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_winansi.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_zapfdingbats.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_courier.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_courierbold.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_courierboldoblique.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_courieroblique.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_helvetica.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_helveticabold.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_helveticaboldoblique.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_helveticaoblique.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_symbol.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_timesbold.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_timesbolditalic.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_timesitalic.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_timesroman.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_zapfdingbats.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_glyphlist.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/cidfonts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfform.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfmetrics.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfpattern.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfutils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/rl_codecs.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/ttfonts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/canvas.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/pathobject.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/pdfgeom.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/pdfimages.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/textobject.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/figures.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/frames.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/multicol.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/para.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/paragraph.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/paraparser.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/tables.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/xpreformatted.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/rl_config.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/rl_settings.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/dependency_links.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/requires.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/top_level.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/00readme.txt +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/_i_am_actually_a_gif.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/_i_am_actually_a_jpeg.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/alpha_test.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Codabar.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Code11.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Code128.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Code128Auto.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/EAN13.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/EAN5.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/EAN8.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/ECC200DataMatrix.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Extended39.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Extended93.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/FIM.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/I2of5.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/ISBN.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/MSI.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/POSTNET.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/QR.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/QR_with_comma.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Standard39.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Standard93.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/UPCA.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/USPS_4State.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/test_cbcim.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/test_cbcim.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/test_cbcim.tiff +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_axes_sample0a.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_axes_sample0a.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_axes_sample0b.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_axes_sample0b.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample1c.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample1c.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample2c.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample2c.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_bcleg.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_bcleg.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_hlcleg.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_hlcleg.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_lpleg.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_lpleg.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_pcleg.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_pcleg.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_plpleg.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_plpleg.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1bar.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1bar.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1barline.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1barline.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1line.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample2bar.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample2bar.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample2line.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample3.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample3.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample4pie.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_scleg.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_scleg.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/encryption.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/gray-alpha.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/pythonpowered-gs.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/pythonpowered.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/410.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing01.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing01.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing01.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing01.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing02.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing02.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing02.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing02.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing03.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing03.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing03.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing03.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing04.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing04.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing04.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing04.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing05.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing05.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing05.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing05.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing06.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing06.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing06.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing06.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing07.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing07.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing07.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing07.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing08.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing08.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing08.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing08.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing09.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing09.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing09.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing09.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing10.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing10.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing10.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing10.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing11.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing11.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing11.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing11.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing12.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing12.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing12.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing12.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing14.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing14.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing14.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-none.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-none.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-pdf.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-pdf.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-svg.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-svg.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/fillmode-even-odd.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/fillmode-even-odd.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/fillmode-non-zero.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/fillmode-non-zero.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/hatch.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/hatch.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/svglib-issue104.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/textmode.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/textmode.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/rltw-icon-tr.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/runAll.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/solid_red_alpha.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/tall_red.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test-cross.tiff +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test-indexed.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test-rgba.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_charts_textlabels.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_crypto_algorithms.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_docs_build.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_docstrings.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_extra.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_geomutils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_barcode.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_charts.py +0 -0
- /reportlab-4.1.0/tests/test_graphics_images.gif → /reportlab-4.2.2/tests/test_graphics_images-cairo.gif +0 -0
- /reportlab-4.1.0/tests/test_graphics_images.png → /reportlab-4.2.2/tests/test_graphics_images-cairo.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_layout.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_render.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_speed.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_hello.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_images.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_invariant.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_issues.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_colors.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_normaldate.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_pdfencrypt.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_rl_safe_eval.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_sequencer.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_utils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_validators.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_multibyte_chs.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_multibyte_cht.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_multibyte_jpn.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_multibyte_kor.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_paragraphs.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_encodings.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_fontembed.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_pdfdoc.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_pdfform.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_pdfmetrics.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_pdfutils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_postscript.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_ttfonts.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_callback.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_general.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_links.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_overprint.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_pagemodes.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_accum.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_breaking.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_cjk_wrap.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_general.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_images.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_indents.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_index.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_leftright.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_lists.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_paragraphs.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_paraparser.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_pleaseturnover.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_preformatted.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_tables.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_toc.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_wrapping.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_xref.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pyfiles.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_renderPS.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_renderSVG.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_rl_accel.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_source_chars.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_table_inrowsplit.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_table_layout.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_tools_pythonpoint.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_utils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_widgetbase_tpc.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_widgets_grids.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tests/unimportable.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/README +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/README +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/codegrab.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/docpy.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/graphdocpy.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/rl_doc_utils.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/rltemplate.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/stylesheet.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/t_parse.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/yaml.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/yaml2pdf.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pdfpath.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/README +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/customshapes.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/examples.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/figures.xml +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/htu.xml +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/leftlogo.a85 +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/leftlogo.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/lj8100.jpg +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/monterey.xml +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/outline.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/pplogo.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/python.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/pythonpoint.xml +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/slidebox.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/spectrum.png +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/vertpython.gif +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/pythonpoint.dtd +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/pythonpoint.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/stdparser.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/__init__.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/horrible.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/htu.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/modern.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/projection.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/standard.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/utils/add_bleed.py +0 -0
- {reportlab-4.1.0 → reportlab-4.2.2}/tools/utils/dumpttf.py +0 -0
|
@@ -11,6 +11,26 @@ E.g. to retrieve the changes made between release 3.4 and release 3.5, type::
|
|
|
11
11
|
The contributors lists are in no order and apologies to those accidentally not
|
|
12
12
|
mentioned. If we missed you, please let us know!
|
|
13
13
|
|
|
14
|
+
CHANGES 4.2.2 21/06/202
|
|
15
|
+
---------------------------
|
|
16
|
+
* allow changing TableOfContents & Index notification token using keyword argument notifyKind
|
|
17
|
+
|
|
18
|
+
CHANGES 4.2.1.1 31/05/202
|
|
19
|
+
---------------------------
|
|
20
|
+
* add support for allowing some magic names in rl_safe_eval.py
|
|
21
|
+
* fix display layout of multi-line in acroform textfield; bug reported by Kip Nalley lt kip at sophicalliance dot com gt
|
|
22
|
+
|
|
23
|
+
CHANGES 4.2.1 21/05/2024
|
|
24
|
+
-------------------------
|
|
25
|
+
* rl_safe_eval.py nano-fix for python 3.13.0b1 changes
|
|
26
|
+
* flowable security fixes discovered by hn13, FionaQX, and lz from Fudan University reported by Lennart Regebro regebro at gmail dot com
|
|
27
|
+
* added support for XMP packet
|
|
28
|
+
|
|
29
|
+
CHANGES 4.2.0 18/04/2024
|
|
30
|
+
-------------------------
|
|
31
|
+
* change LIItem split to avoid 1/2 line when justified else 1 line widow
|
|
32
|
+
* add longer text QR code example
|
|
33
|
+
* allow renderPM + rlPyCairo to produce both RGB & RGBA images
|
|
14
34
|
|
|
15
35
|
CHANGES 4.1.0 08/02/2024
|
|
16
36
|
-------------------------
|
|
@@ -1265,6 +1285,7 @@ Here is what's different now:
|
|
|
1265
1285
|
Splitting of tables across pages did not work correctly when the table had
|
|
1266
1286
|
row/column spans
|
|
1267
1287
|
* Fix runtime error affecting keepWithNext
|
|
1288
|
+
* security fixes discovered by hn13, FionaQX, and lz from Fudan University and reported by Lennart Regebro regebro at gmail dot com
|
|
1268
1289
|
|
|
1269
1290
|
|
|
1270
1291
|
Older releases
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#Copyright ReportLab Europe Ltd. 2000-2023
|
|
2
2
|
#see license.txt for license details
|
|
3
3
|
__doc__="""The Reportlab PDF generation library."""
|
|
4
|
-
Version = "4.
|
|
4
|
+
Version = "4.2.2"
|
|
5
5
|
__version__=Version
|
|
6
|
-
__date__='
|
|
6
|
+
__date__='20240621'
|
|
7
7
|
|
|
8
8
|
import sys, os
|
|
9
9
|
|
|
@@ -275,3 +275,6 @@ if __name__=='__main__':
|
|
|
275
275
|
createSample('test_cbcim.gif',createBarcodeImageInMemory('EAN8', value='1234567', format='gif'))
|
|
276
276
|
createSample('test_cbcim.pdf',createBarcodeImageInMemory('UPCA', value='03600029145',format='pdf', barHeight=40))
|
|
277
277
|
createSample('test_cbcim.tiff',createBarcodeImageInMemory('USPS_4State', value='01234567094987654321',routing='01234567891',format='tiff'))
|
|
278
|
+
createSample('test_cbcim-1.pdf',createBarcodeImageInMemory('QR',
|
|
279
|
+
value='This is the end my only friend the end at the end of the Universe.',format='pdf'))
|
|
280
|
+
|
|
@@ -283,7 +283,7 @@ class GraphicsFlowable(Flowable):
|
|
|
283
283
|
def draw(self):
|
|
284
284
|
draw(self.drawing, self.canv, 0, 0)
|
|
285
285
|
|
|
286
|
-
def drawToFile(d, fn, msg="", showBoundary=rl_config._unset_, autoSize=1, canvasKwds={}):
|
|
286
|
+
def drawToFile(d, fn, msg="", showBoundary=rl_config._unset_, autoSize=1, canvasKwds={}, **kwds):
|
|
287
287
|
"""Makes a one-page PDF with just the drawing.
|
|
288
288
|
|
|
289
289
|
If autoSize=1, the PDF will be the same size as
|
|
@@ -294,6 +294,7 @@ def drawToFile(d, fn, msg="", showBoundary=rl_config._unset_, autoSize=1, canvas
|
|
|
294
294
|
for x in ('Name','Size'):
|
|
295
295
|
a = 'initialFont'+x
|
|
296
296
|
canvasKwds[a] = getattr(d,a,canvasKwds.pop(a,STATE_DEFAULTS['font'+x]))
|
|
297
|
+
metadataPath = kwds.pop('metadataPath',None)
|
|
297
298
|
c = Canvas(fn,**canvasKwds)
|
|
298
299
|
if msg:
|
|
299
300
|
c.setFont(rl_config.defaultGraphicsFontName, 36)
|
|
@@ -311,6 +312,9 @@ def drawToFile(d, fn, msg="", showBoundary=rl_config._unset_, autoSize=1, canvas
|
|
|
311
312
|
y = y - d.height
|
|
312
313
|
draw(d, c, 80, y, showBoundary=showBoundary)
|
|
313
314
|
|
|
315
|
+
if metadataPath:
|
|
316
|
+
from reportlab.pdfbase.pdfdoc import XMP
|
|
317
|
+
c._doc.Catalog.Metadata = XMP(path=metadataPath)
|
|
314
318
|
c.showPage()
|
|
315
319
|
c.save()
|
|
316
320
|
if sys.platform=='mac' and not hasattr(fn, "write"):
|
|
@@ -321,10 +325,10 @@ def drawToFile(d, fn, msg="", showBoundary=rl_config._unset_, autoSize=1, canvas
|
|
|
321
325
|
except:
|
|
322
326
|
pass
|
|
323
327
|
|
|
324
|
-
def drawToString(d, msg="", showBoundary=rl_config._unset_,autoSize=1,canvasKwds={}):
|
|
328
|
+
def drawToString(d, msg="", showBoundary=rl_config._unset_,autoSize=1,canvasKwds={}, **kwds):
|
|
325
329
|
"Returns a PDF as a string in memory, without touching the disk"
|
|
326
330
|
s = BytesIO()
|
|
327
|
-
drawToFile(d, s, msg=msg, showBoundary=showBoundary,autoSize=autoSize, canvasKwds=canvasKwds)
|
|
331
|
+
drawToFile(d, s, msg=msg, showBoundary=showBoundary,autoSize=autoSize, canvasKwds=canvasKwds, **kwds)
|
|
328
332
|
return s.getvalue()
|
|
329
333
|
|
|
330
334
|
#########################################################
|
|
@@ -16,6 +16,7 @@ from reportlab.graphics.shapes import *
|
|
|
16
16
|
from reportlab.graphics.renderbase import getStateDelta, renderScaledDrawing
|
|
17
17
|
from reportlab.pdfbase.pdfmetrics import getFont, unicode2T1
|
|
18
18
|
from reportlab.lib.utils import isUnicode
|
|
19
|
+
from reportlab.lib.colors import toColor, white
|
|
19
20
|
from reportlab import rl_config
|
|
20
21
|
from .utils import setFont as _setFont, RenderPMError
|
|
21
22
|
|
|
@@ -69,6 +70,13 @@ def Color2Hex(c):
|
|
|
69
70
|
if c: return ((0xFF&int(255*c.red)) << 16) | ((0xFF&int(255*c.green)) << 8) | (0xFF&int(255*c.blue))
|
|
70
71
|
return c
|
|
71
72
|
|
|
73
|
+
def CairoColor(c):
|
|
74
|
+
'''
|
|
75
|
+
c should be None or something convertible to Color
|
|
76
|
+
rlPyCairo.GState can handle Color directly in either RGB24 or ARGB32
|
|
77
|
+
'''
|
|
78
|
+
return toColor(c) if c is not None else c
|
|
79
|
+
|
|
72
80
|
# the main entry point for users...
|
|
73
81
|
def draw(drawing, canvas, x, y, showBoundary=rl_config._unset_):
|
|
74
82
|
"""As it says"""
|
|
@@ -293,6 +301,7 @@ def _saveAsPICT(im,fn,fmt,transparent=None):
|
|
|
293
301
|
else:
|
|
294
302
|
fn.write(s)
|
|
295
303
|
|
|
304
|
+
_pycairoFmtsMap = dict(ARGB='ARGB32',RGBA='ARGB32',RGB='RGB24')
|
|
296
305
|
BEZIER_ARC_MAGIC = 0.5522847498 #constant for drawing circular arcs w/ Beziers
|
|
297
306
|
class PMCanvas:
|
|
298
307
|
def __init__(self,w,h,dpi=72,bg=0xffffff,configPIL=None,backend=None,
|
|
@@ -301,7 +310,7 @@ class PMCanvas:
|
|
|
301
310
|
scale = dpi/72.0
|
|
302
311
|
w = int(w*scale+0.5)
|
|
303
312
|
h = int(h*scale+0.5)
|
|
304
|
-
self.__dict__['_gs'] = self._getGState(w,h,bg,backend)
|
|
313
|
+
self.__dict__['_gs'] = self._getGState(w,h,bg,backend,fmt=backendFmt)
|
|
305
314
|
self.__dict__['_bg'] = bg
|
|
306
315
|
self.__dict__['_baseCTM'] = (scale,0,0,scale,0,0)
|
|
307
316
|
self.__dict__['_clipPaths'] = []
|
|
@@ -310,6 +319,7 @@ class PMCanvas:
|
|
|
310
319
|
#the _rl_renderPM.gstate object doesn't support hasattr so we use this as a proxy test for 'isbuiltin'
|
|
311
320
|
self.__dict__['_backend'] = '_renderPM' if type(self._gs._aapixbuf)==type(pow) else 'rlPyCairo'
|
|
312
321
|
self.__dict__['_backendfmt'] = backendFmt
|
|
322
|
+
self.__dict__['_colorConverter'] = CairoColor if self._backend=='rlPyCairo' else Color2Hex
|
|
313
323
|
self.ctm = self._baseCTM
|
|
314
324
|
|
|
315
325
|
@staticmethod
|
|
@@ -326,6 +336,8 @@ class PMCanvas:
|
|
|
326
336
|
except:
|
|
327
337
|
pass
|
|
328
338
|
elif 'cairo' in backend.lower():
|
|
339
|
+
fmt = fmt.upper()
|
|
340
|
+
fmt = _pycairoFmtsMap.get(fmt,fmt)
|
|
329
341
|
try:
|
|
330
342
|
return mod.GState(w,h,bg,fmt=fmt)
|
|
331
343
|
except AttributeError:
|
|
@@ -347,7 +359,7 @@ class PMCanvas:
|
|
|
347
359
|
gs.setFont(fN,fS)
|
|
348
360
|
|
|
349
361
|
def toPIL(self):
|
|
350
|
-
im = _getImage().new('RGB', size=(self._gs.width, self._gs.height))
|
|
362
|
+
im = _getImage().new('RGBA' if self._backend=='rlPyCairo' and getattr(self,'_fmt')=='ARGB32' else 'RGB', size=(self._gs.width, self._gs.height))
|
|
351
363
|
im.frombytes(self._gs.pixBuf)
|
|
352
364
|
return im
|
|
353
365
|
|
|
@@ -419,7 +431,13 @@ class PMCanvas:
|
|
|
419
431
|
'''
|
|
420
432
|
import struct
|
|
421
433
|
gs = self._gs
|
|
422
|
-
|
|
434
|
+
if self._backend=='rlPyCairo' and gs._fmt=='ARGB32': #pixBuf would have 4 bytes
|
|
435
|
+
gs._fmt = 'RGB24' #force 3 bytes out until our BMP allows Alpha
|
|
436
|
+
pix = gs.pixBuf
|
|
437
|
+
gs._fmt = 'ARGB32'
|
|
438
|
+
else:
|
|
439
|
+
pix = gs.pixBuf
|
|
440
|
+
width, height = gs.width, gs.height
|
|
423
441
|
f.write(struct.pack('=2sLLLLLLhh24x','BM',len(pix)+54,0,54,40,width,height,1,24))
|
|
424
442
|
rowb = width * 3
|
|
425
443
|
for o in range(len(pix),0,-rowb):
|
|
@@ -673,13 +691,13 @@ class PMCanvas:
|
|
|
673
691
|
pass
|
|
674
692
|
|
|
675
693
|
def setFillColor(self,aColor):
|
|
676
|
-
self.fillColor =
|
|
694
|
+
self.fillColor = self._colorConverter(aColor)
|
|
677
695
|
alpha = getattr(aColor,'alpha',None)
|
|
678
696
|
if alpha is not None:
|
|
679
697
|
self.fillOpacity = alpha
|
|
680
698
|
|
|
681
699
|
def setStrokeColor(self,aColor):
|
|
682
|
-
self.strokeColor =
|
|
700
|
+
self.strokeColor = self._colorConverter(aColor)
|
|
683
701
|
alpha = getattr(aColor,'alpha',None)
|
|
684
702
|
if alpha is not None:
|
|
685
703
|
self.strokeOpacity = alpha
|
|
@@ -696,29 +714,29 @@ class PMCanvas:
|
|
|
696
714
|
def setLineWidth(self,width):
|
|
697
715
|
self.strokeWidth = width
|
|
698
716
|
|
|
699
|
-
def drawToPMCanvas(d, dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend):
|
|
717
|
+
def drawToPMCanvas(d, dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend,backendFmt='RGB'):
|
|
700
718
|
d = renderScaledDrawing(d)
|
|
701
|
-
c = PMCanvas(d.width, d.height, dpi=dpi, bg=bg, configPIL=configPIL, backend=backend)
|
|
719
|
+
c = PMCanvas(d.width, d.height, dpi=dpi, bg=bg, configPIL=configPIL, backend=backend,backendFmt=backendFmt)
|
|
702
720
|
draw(d, c, 0, 0, showBoundary=showBoundary)
|
|
703
721
|
return c
|
|
704
722
|
|
|
705
|
-
def drawToPIL(d, dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend):
|
|
706
|
-
return drawToPMCanvas(d, dpi=dpi, bg=bg, configPIL=configPIL, showBoundary=showBoundary, backend=backend).toPIL()
|
|
723
|
+
def drawToPIL(d, dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend,backendFmt='RGB'):
|
|
724
|
+
return drawToPMCanvas(d, dpi=dpi, bg=bg, configPIL=configPIL, showBoundary=showBoundary, backend=backend,backendFmt=backendFmt).toPIL()
|
|
707
725
|
|
|
708
|
-
def drawToPILP(d, dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend):
|
|
726
|
+
def drawToPILP(d, dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend,backendFmt='RGB'):
|
|
709
727
|
Image = _getImage()
|
|
710
|
-
im = drawToPIL(d, dpi=dpi, bg=bg, configPIL=configPIL, showBoundary=showBoundary,backend=backend)
|
|
728
|
+
im = drawToPIL(d, dpi=dpi, bg=bg, configPIL=configPIL, showBoundary=showBoundary,backend=backend,backendFmt=backendFmt)
|
|
711
729
|
return im.convert("P", dither=Image.NONE, palette=Image.ADAPTIVE)
|
|
712
730
|
|
|
713
|
-
def drawToFile(d,fn,fmt='GIF', dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend):
|
|
731
|
+
def drawToFile(d,fn,fmt='GIF', dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend,backendFmt='RGB'):
|
|
714
732
|
'''create a pixmap and draw drawing, d to it then save as a file
|
|
715
733
|
configPIL dict is passed to image save method'''
|
|
716
|
-
c = drawToPMCanvas(d, dpi=dpi, bg=bg, configPIL=configPIL, showBoundary=showBoundary,backend=backend)
|
|
734
|
+
c = drawToPMCanvas(d, dpi=dpi, bg=bg, configPIL=configPIL, showBoundary=showBoundary,backend=backend,backendFmt=backendFmt)
|
|
717
735
|
c.saveToFile(fn,fmt)
|
|
718
736
|
|
|
719
|
-
def drawToString(d,fmt='GIF', dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend):
|
|
737
|
+
def drawToString(d,fmt='GIF', dpi=72, bg=0xffffff, configPIL=None, showBoundary=rl_config._unset_,backend=rl_config.renderPMBackend,backendFmt='RGB'):
|
|
720
738
|
s = BytesIO()
|
|
721
|
-
drawToFile(d,s,fmt=fmt, dpi=dpi, bg=bg, configPIL=configPIL,backend=backend)
|
|
739
|
+
drawToFile(d,s,fmt=fmt, dpi=dpi, bg=bg, configPIL=configPIL,backend=backend,backendFmt=backendFmt)
|
|
722
740
|
return s.getvalue()
|
|
723
741
|
|
|
724
742
|
save = drawToFile
|
|
@@ -784,7 +802,6 @@ def test(outDir='pmout', shout=False):
|
|
|
784
802
|
if os.path.isfile(fullpath):
|
|
785
803
|
os.remove(fullpath)
|
|
786
804
|
if k=='pct':
|
|
787
|
-
from reportlab.lib.colors import white
|
|
788
805
|
drawToFile(drawing,fullpath,fmt=k,configPIL={'transparent':white})
|
|
789
806
|
elif k in ['py','svg']:
|
|
790
807
|
drawing.save(formats=['py','svg'],outDir=outDir,fnRoot=fnRoot)
|
|
@@ -119,7 +119,11 @@ class Color:
|
|
|
119
119
|
|
|
120
120
|
def int_rgba(self):
|
|
121
121
|
v = self.bitmap_rgba()
|
|
122
|
-
return int(
|
|
122
|
+
return int(v[0]<<24|v[1]<<16|v[2]<<8|v[3])
|
|
123
|
+
|
|
124
|
+
def int_argb(self):
|
|
125
|
+
v = self.bitmap_rgba()
|
|
126
|
+
return int(v[3]<<24|v[0]<<16|v[1]<<8|v[2])
|
|
123
127
|
|
|
124
128
|
_cKwds='red green blue alpha'.split()
|
|
125
129
|
def cKwds(self):
|
|
@@ -7,6 +7,7 @@ import sys, os, ast, re, weakref, time, copy, math, types
|
|
|
7
7
|
eval_debug = int(os.environ.get('EVAL_DEBUG','0'))
|
|
8
8
|
strTypes = (bytes,str)
|
|
9
9
|
isPy39 = sys.version_info[:2]>=(3,9)
|
|
10
|
+
isPy313 = sys.version_info[:2]>=(3,13)
|
|
10
11
|
|
|
11
12
|
haveNameConstant = hasattr(ast,'NameConstant')
|
|
12
13
|
import textwrap
|
|
@@ -44,6 +45,16 @@ __allowed_magic_methods__ = frozenset([
|
|
|
44
45
|
'__ge__',
|
|
45
46
|
])
|
|
46
47
|
|
|
48
|
+
def __fix_set__(value, default=frozenset()):
|
|
49
|
+
if isinstance(value,(tuple,list,set,dict)):
|
|
50
|
+
return frozenset(value)
|
|
51
|
+
elif isinstance(value,frozenset):
|
|
52
|
+
return value
|
|
53
|
+
elif bool(value):
|
|
54
|
+
return default
|
|
55
|
+
else:
|
|
56
|
+
return frozenset()
|
|
57
|
+
|
|
47
58
|
__rl_unsafe__ = frozenset('''builtins breakpoint __annotations__ co_argcount co_cellvars co_code co_consts
|
|
48
59
|
__code__ co_filename co_firstlineno co_flags co_freevars co_kwonlyargcount
|
|
49
60
|
co_lnotab co_name co_names co_nlocals co_posonlyargcount co_stacksize
|
|
@@ -261,7 +272,7 @@ class UntrustedAstTransformer(ast.NodeTransformer):
|
|
|
261
272
|
return (tmp_target, cleanup)
|
|
262
273
|
|
|
263
274
|
def gen_none_node(self):
|
|
264
|
-
return ast.NameConstant(value=None) if
|
|
275
|
+
return ast.NameConstant(value=None) if haveNameConstant else ast.Name(id='None', ctx=ast.Load())
|
|
265
276
|
|
|
266
277
|
def gen_lambda(self, args, body):
|
|
267
278
|
return ast.Lambda(
|
|
@@ -450,7 +461,7 @@ class UntrustedAstTransformer(ast.NodeTransformer):
|
|
|
450
461
|
|
|
451
462
|
'a.b' becomes '__rl_getattr__(a, "b")'
|
|
452
463
|
"""
|
|
453
|
-
if node.attr.startswith('__') and node.attr != '__':
|
|
464
|
+
if node.attr.startswith('__') and node.attr != '__' and not self.nameIsAllowed(node.attr,False):
|
|
454
465
|
self.error(node, '"%s" is an invalid attribute'%node.attr)
|
|
455
466
|
|
|
456
467
|
if isinstance(node.ctx, ast.Load):
|
|
@@ -855,10 +866,10 @@ class __RL_SAFE_ENV__:
|
|
|
855
866
|
__time_time__ = time.time
|
|
856
867
|
__weakref_ref__ = weakref.ref
|
|
857
868
|
__slicetype__ = type(slice(0))
|
|
858
|
-
def __init__(self, timeout=None, allowed_magic_methods=None):
|
|
869
|
+
def __init__(self, timeout=None, allowed_magic_methods=None, allowed_magic_names=None):
|
|
859
870
|
self.timeout = timeout if timeout is not None else self.__rl_tmax__
|
|
860
|
-
self.allowed_magic_methods = (__allowed_magic_methods__
|
|
861
|
-
|
|
871
|
+
self.allowed_magic_methods = __fix_set__(allowed_magic_methods, __allowed_magic_methods__)
|
|
872
|
+
self.allowed_magic_names = __fix_set__(allowed_magic_names)
|
|
862
873
|
import builtins
|
|
863
874
|
self.__rl_gen_range__ = builtins.range
|
|
864
875
|
|
|
@@ -887,7 +898,7 @@ class __RL_SAFE_ENV__:
|
|
|
887
898
|
('iter',self.__rl_getiter__),
|
|
888
899
|
)
|
|
889
900
|
|
|
890
|
-
__rl_safe_builtins__.update({_:getattr(builtins,_) for _ in
|
|
901
|
+
__rl_safe_builtins__.update({_:getattr(builtins,_) for _ in
|
|
891
902
|
('''None False True abs bool callable chr complex divmod float hash hex id int
|
|
892
903
|
isinstance issubclass len oct ord range repr round slice str tuple setattr
|
|
893
904
|
classmethod staticmethod property divmod next object getattr dict iter pow list
|
|
@@ -1013,7 +1024,7 @@ class __RL_SAFE_ENV__:
|
|
|
1013
1024
|
def __rl_set__(self, it):
|
|
1014
1025
|
return set(self.__rl_args_iter__(it))
|
|
1015
1026
|
|
|
1016
|
-
def __rl_frozenset__(self, it):
|
|
1027
|
+
def __rl_frozenset__(self, it=()):
|
|
1017
1028
|
return frozenset(self.__rl_args_iter__(it))
|
|
1018
1029
|
|
|
1019
1030
|
def __rl_iter_unpack_sequence__(self, it, spec, _getiter_):
|
|
@@ -1038,7 +1049,7 @@ class __RL_SAFE_ENV__:
|
|
|
1038
1049
|
explanation.
|
|
1039
1050
|
"""
|
|
1040
1051
|
# Do the guarded unpacking of the sequence.
|
|
1041
|
-
ret = list(self.
|
|
1052
|
+
ret = list(self.__rl_getiter__(it))
|
|
1042
1053
|
|
|
1043
1054
|
# If the sequence is shorter then expected the interpreter will raise
|
|
1044
1055
|
# 'ValueError: need more than X value to unpack' anyway
|
|
@@ -1051,16 +1062,19 @@ class __RL_SAFE_ENV__:
|
|
|
1051
1062
|
ret[idx] = self.__rl_unpack_sequence__(ret[idx], child_spec, _getiter_)
|
|
1052
1063
|
return ret
|
|
1053
1064
|
|
|
1054
|
-
def __rl_is_allowed_name__(self, name):
|
|
1065
|
+
def __rl_is_allowed_name__(self, name, crash=True):
|
|
1055
1066
|
"""Check names if they are allowed.
|
|
1056
1067
|
If ``allow_magic_methods is True`` names in `__allowed_magic_methods__`
|
|
1057
1068
|
are additionally allowed although their names start with `_`.
|
|
1058
1069
|
"""
|
|
1059
1070
|
if isinstance(name,strTypes):
|
|
1060
|
-
if name in
|
|
1061
|
-
|
|
1062
|
-
|
|
1071
|
+
if (name not in self.allowed_magic_names
|
|
1072
|
+
and (name in __rl_unsafe__ or (name.startswith('__')
|
|
1073
|
+
and name!='__'
|
|
1074
|
+
and name not in self.allowed_magic_methods))):
|
|
1075
|
+
if not crash: return False
|
|
1063
1076
|
raise BadCode('unsafe access of %s' % name)
|
|
1077
|
+
return True
|
|
1064
1078
|
|
|
1065
1079
|
def __rl_getattr__(self, obj, a, *args):
|
|
1066
1080
|
if isinstance(obj, strTypes) and a=='format':
|
|
@@ -1160,12 +1174,18 @@ class __RL_SAFE_ENV__:
|
|
|
1160
1174
|
bcode = compile(astc, fname, mode=mode)
|
|
1161
1175
|
return bcode, names_seen
|
|
1162
1176
|
|
|
1163
|
-
def __rl_safe_eval__(self, expr, g, l, mode, timeout=None, allowed_magic_methods=None, __frame_depth__=3
|
|
1177
|
+
def __rl_safe_eval__(self, expr, g, l, mode, timeout=None, allowed_magic_methods=None, __frame_depth__=3,
|
|
1178
|
+
allowed_magic_names=None):
|
|
1179
|
+
if allowed_magic_methods is not None:
|
|
1180
|
+
self.allowed_magic_methods = __fix_set__(allowed_magic_methods, __allowed_magic_methods__)
|
|
1181
|
+
if allowed_magic_names is not None:
|
|
1182
|
+
self.allowed_magic_names = __fix_set__(allowed_magic_names)
|
|
1183
|
+
|
|
1164
1184
|
bcode, ns = self.__rl_compile__(expr, fname='<string>', mode=mode, flags=0, inherit=True,
|
|
1165
1185
|
visit=UntrustedAstTransformer(nameIsAllowed=self.__rl_is_allowed_name__).visit)
|
|
1166
1186
|
if None in (l,g):
|
|
1167
1187
|
G = sys._getframe(__frame_depth__)
|
|
1168
|
-
L = G.f_locals.
|
|
1188
|
+
L = {n:r for n,r in G.f_locals.items()} if l is None else l
|
|
1169
1189
|
G = G.f_globals.copy() if g is None else g
|
|
1170
1190
|
else:
|
|
1171
1191
|
G = g
|
|
@@ -1197,11 +1217,11 @@ class __rl_safe_eval__:
|
|
|
1197
1217
|
def __init__(self):
|
|
1198
1218
|
self.env = None
|
|
1199
1219
|
|
|
1200
|
-
def __call__(self, expr, g=None, l=None, timeout=None, allowed_magic_methods=None):
|
|
1201
|
-
if not self.env: self.env = __RL_SAFE_ENV__(
|
|
1220
|
+
def __call__(self, expr, g=None, l=None, timeout=None, allowed_magic_methods=None, allowed_magic_names=None):
|
|
1221
|
+
if not self.env: self.env = __RL_SAFE_ENV__()
|
|
1202
1222
|
return self.env.__rl_safe_eval__(expr, g, l, self.mode, timeout=timeout,
|
|
1203
1223
|
allowed_magic_methods=allowed_magic_methods,
|
|
1204
|
-
__frame_depth__=2)
|
|
1224
|
+
__frame_depth__=2, allowed_magic_names=allowed_magic_names)
|
|
1205
1225
|
|
|
1206
1226
|
class __rl_safe_exec__(__rl_safe_eval__):
|
|
1207
1227
|
mode = 'exec'
|
|
@@ -1273,3 +1293,9 @@ def rl_extended_literal_eval(expr, safe_callables=None, safe_names=None):
|
|
|
1273
1293
|
|
|
1274
1294
|
rl_safe_exec = __rl_safe_exec__()
|
|
1275
1295
|
rl_safe_eval = __rl_safe_eval__()
|
|
1296
|
+
|
|
1297
|
+
def rl_less_safe_eval(expr,NS):
|
|
1298
|
+
'''eval with our so called safe globals'''
|
|
1299
|
+
if not __rl_safe_builtins__:
|
|
1300
|
+
rl_safe_eval('""')
|
|
1301
|
+
return eval(expr,__rl_safe_builtins__,NS)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#####################################################################################
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2000-2018, ReportLab Inc.
|
|
4
|
+
# All rights reserved.
|
|
5
|
+
#
|
|
6
|
+
# Redistribution and use in source and binary forms, with or without modification,
|
|
7
|
+
# are permitted provided that the following conditions are met:
|
|
8
|
+
#
|
|
9
|
+
# * Redistributions of source code must retain the above copyright notice,
|
|
10
|
+
# this list of conditions and the following disclaimer.
|
|
11
|
+
# * Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
# this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
# and/or other materials provided with the distribution.
|
|
14
|
+
# * Neither the name of the company nor the names of its contributors may be
|
|
15
|
+
# used to endorse or promote products derived from this software without
|
|
16
|
+
# specific prior written permission.
|
|
17
|
+
#
|
|
18
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
19
|
+
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20
|
+
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
21
|
+
# IN NO EVENT SHALL THE OFFICERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
22
|
+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
|
23
|
+
# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
24
|
+
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
|
25
|
+
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|
26
|
+
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
27
|
+
# SUCH DAMAGE.
|
|
28
|
+
#
|
|
29
|
+
#####################################################################################
|
|
@@ -613,7 +613,8 @@ class AcroForm(PDFObject):
|
|
|
613
613
|
sel_bg='0.600006 0.756866 0.854904 rg',
|
|
614
614
|
sel_fg='0 g',
|
|
615
615
|
):
|
|
616
|
-
|
|
616
|
+
_stream = []
|
|
617
|
+
stream = _stream.append
|
|
617
618
|
if opaqueColor(fillColor):
|
|
618
619
|
streamFill = self.streamFillColor(fillColor)
|
|
619
620
|
stream('%(streamFill)s\n0 0 %(width)s %(height)s re\nf')
|
|
@@ -705,15 +706,17 @@ class AcroForm(PDFObject):
|
|
|
705
706
|
stream('ET')
|
|
706
707
|
else:
|
|
707
708
|
stream('0 g\n0 G\n%(undash)s')
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
709
|
+
if value:
|
|
710
|
+
stream('BT\n/%(iFontName)s %(fontSize)s Tf\n%(textFill)s')
|
|
711
|
+
stream('1 0 0 1 %%(_4bw)s %s Tm' % fp_str(height - fontSize - _2bw))
|
|
712
|
+
for line in value.split('\n'):
|
|
713
|
+
stream('(%s) Tj\n0 %s Td' % (escPDF(line),fp_str(-leading)))
|
|
714
|
+
#the last change is not needed
|
|
715
|
+
_stream[-1] = _stream[-1][:_stream[-1].rfind('\n')]
|
|
716
|
+
stream('ET')
|
|
714
717
|
leading = fp_str(leading)
|
|
715
718
|
stream('Q\nEMC\n')
|
|
716
|
-
stream = ('\n'.join(
|
|
719
|
+
stream = ('\n'.join(_stream) % vars()).replace(' ',' ').replace('\n\n','\n')
|
|
717
720
|
return self.makeStream(
|
|
718
721
|
width, height, stream,
|
|
719
722
|
Resources = PDFFromString('<< /ProcSet [/PDF /Text] /Font %(rFontName)s >>' % vars()),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#Copyright ReportLab Europe Ltd. 2000-2023
|
|
2
2
|
#see license.txt for license details
|
|
3
3
|
#history https://hg.reportlab.com/hg-public/reportlab/log/tip/src/reportlab/pdfbase/pdfdoc.py
|
|
4
|
-
__version__='
|
|
4
|
+
__version__='4.2.0'
|
|
5
5
|
__doc__="""
|
|
6
6
|
The module pdfdoc.py handles the 'outer structure' of PDF documents, ensuring that
|
|
7
7
|
all objects are properly cross-referenced and indexed to the nearest byte. The
|
|
@@ -199,7 +199,7 @@ class PDFDocument(PDFObject):
|
|
|
199
199
|
filename = getattr(f,'name',None)
|
|
200
200
|
if isinstance(filename,int):
|
|
201
201
|
filename = '<os fd:%d>'% filename
|
|
202
|
-
elif not isStr(filename): #try to fix bug reported by Robert Schroll <rschroll at gmail.com>
|
|
202
|
+
elif not isStr(filename): #try to fix bug reported by Robert Schroll <rschroll at gmail.com>
|
|
203
203
|
filename = '<%s@0X%8.8X>' % (f.__class__.__name__,id(f))
|
|
204
204
|
filename = makeFileName(filename)
|
|
205
205
|
elif isStr(filename):
|
|
@@ -207,7 +207,7 @@ class PDFDocument(PDFObject):
|
|
|
207
207
|
filename = makeFileName(filename)
|
|
208
208
|
f = open(filename, "wb")
|
|
209
209
|
else:
|
|
210
|
-
raise TypeError('Cannot use %s as a filename or file' % repr(filename))
|
|
210
|
+
raise TypeError('Cannot use %s as a filename or file' % repr(filename))
|
|
211
211
|
|
|
212
212
|
data = self.GetPDFData(canvas)
|
|
213
213
|
if isUnicode(data):
|
|
@@ -988,6 +988,35 @@ class PDFTrailer(PDFObject):
|
|
|
988
988
|
|
|
989
989
|
#### chapter 6, doc structure
|
|
990
990
|
|
|
991
|
+
class XMP(PDFStream):
|
|
992
|
+
def __init__(self,path=None,creator=None):
|
|
993
|
+
if path and creator:
|
|
994
|
+
raise ValueError('XMP is ambiguous with both path and creator arguments')
|
|
995
|
+
elif not (path or creator):
|
|
996
|
+
raise ValueError('XMP needs at least a path or creator argument')
|
|
997
|
+
super().__init__(
|
|
998
|
+
dictionary=PDFDictionary(dict(
|
|
999
|
+
Type=PDFName('Metadata'),
|
|
1000
|
+
Subtype=PDFName('XML'),
|
|
1001
|
+
)))
|
|
1002
|
+
self.__path = path
|
|
1003
|
+
self.__pathContent = None
|
|
1004
|
+
self.__creator = creator
|
|
1005
|
+
|
|
1006
|
+
def format(self,doc):
|
|
1007
|
+
self.content = self.makeContent(doc)
|
|
1008
|
+
return super(XMP,self).format(doc)
|
|
1009
|
+
|
|
1010
|
+
def makeContent(self,doc):
|
|
1011
|
+
if self.__path:
|
|
1012
|
+
if self.__pathContent is None:
|
|
1013
|
+
from reportlab.lib.rparsexml import smartDecode
|
|
1014
|
+
with open(self.__path,'rb') as _:
|
|
1015
|
+
self.__pathContent = smartDecode(_.read())
|
|
1016
|
+
return self.__pathContent
|
|
1017
|
+
else:
|
|
1018
|
+
return self.__creator(doc)
|
|
1019
|
+
|
|
991
1020
|
class PDFCatalog(PDFObject):
|
|
992
1021
|
__Comment__ = "Document Root"
|
|
993
1022
|
__RefOnly__ = 1
|
|
@@ -1696,7 +1725,7 @@ class TextAnnotation(HighlightAnnotation):
|
|
|
1696
1725
|
Rect,
|
|
1697
1726
|
Contents,
|
|
1698
1727
|
QuadPoints=kw.pop("QuadPoints",None) or rect_to_quad(Rect),
|
|
1699
|
-
Color=kw.pop("Color",(0,0,0)),
|
|
1728
|
+
Color=kw.pop("Color",(0,0,0)),
|
|
1700
1729
|
**kw)
|
|
1701
1730
|
def Dict(self):
|
|
1702
1731
|
d = HighlightAnnotation.Dict(self)
|
|
@@ -49,6 +49,7 @@ for the current frame).
|
|
|
49
49
|
from reportlab.platypus.flowables import *
|
|
50
50
|
from reportlab.platypus.flowables import _ContainerSpace
|
|
51
51
|
from reportlab.lib.units import inch
|
|
52
|
+
from reportlab.lib import rl_safe_eval
|
|
52
53
|
from reportlab.platypus.paragraph import Paragraph
|
|
53
54
|
from reportlab.platypus.frames import Frame
|
|
54
55
|
from reportlab.rl_config import defaultPageSize, verbose
|
|
@@ -1241,7 +1242,7 @@ class BaseDocTemplate:
|
|
|
1241
1242
|
try:
|
|
1242
1243
|
if lifetime not in self._allowedLifetimes:
|
|
1243
1244
|
raise ValueError('bad lifetime %r not in %r'%(lifetime,self._allowedLifetimes))
|
|
1244
|
-
|
|
1245
|
+
rl_safe_eval.rl_safe_exec(stmt.strip(),{},NS)
|
|
1245
1246
|
except:
|
|
1246
1247
|
K1 = [k for k in NS if k not in K0] #the added keys we need to delete
|
|
1247
1248
|
for k in K1:
|
|
@@ -1272,7 +1273,7 @@ class BaseDocTemplate:
|
|
|
1272
1273
|
|
|
1273
1274
|
def docEval(self,expr):
|
|
1274
1275
|
try:
|
|
1275
|
-
return
|
|
1276
|
+
return rl_safe_eval.rl_safe_eval(expr.strip(),{},self._nameSpace)
|
|
1276
1277
|
except:
|
|
1277
1278
|
annotateException('\ndocEval %s failed!\n' % expr)
|
|
1278
1279
|
|
|
@@ -2095,14 +2095,22 @@ class LIIndenter(DDIndenter):
|
|
|
2095
2095
|
self.spaceAfter = spaceAfter
|
|
2096
2096
|
|
|
2097
2097
|
def split(self, aW, aH):
|
|
2098
|
-
|
|
2098
|
+
f = self._flowable
|
|
2099
|
+
S = f.split(aW-self._leftIndent-self._rightIndent, aH)
|
|
2100
|
+
if len(S)>1 and hasattr(f,'blPara'):
|
|
2101
|
+
cnl = len(f.blPara.lines)
|
|
2102
|
+
nnl = len(S[0].blPara.lines)
|
|
2103
|
+
#avoid 1/2 line widow when justified else avoid 1 line widow
|
|
2104
|
+
if ((getattr(getattr(f,'style',None),'alignment',None)==4 and nnl>=(cnl-2))
|
|
2105
|
+
or nnl==(cnl-1)):
|
|
2106
|
+
S = []
|
|
2099
2107
|
return [
|
|
2100
2108
|
LIIndenter(s,
|
|
2101
2109
|
leftIndent=self._leftIndent,
|
|
2102
2110
|
rightIndent=self._rightIndent,
|
|
2103
2111
|
bullet = (s is S[0] and self._bullet or None),
|
|
2104
2112
|
) for s in S
|
|
2105
|
-
]
|
|
2113
|
+
] if S else []
|
|
2106
2114
|
|
|
2107
2115
|
def drawOn(self, canv, x, y, _sW=0):
|
|
2108
2116
|
if self._bullet:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#see license.txt for license details
|
|
3
3
|
#history https://hg.reportlab.com/hg-public/reportlab/log/tip/src/reportlab/platypus/tableofcontents.py
|
|
4
4
|
|
|
5
|
-
__version__='
|
|
5
|
+
__version__='4.2.1.1'
|
|
6
6
|
__doc__="""Experimental class to generate Tables of Contents easily
|
|
7
7
|
|
|
8
8
|
This module defines a single TableOfContents() class that can be used to
|
|
@@ -165,6 +165,7 @@ class TableOfContents(IndexingFlowable):
|
|
|
165
165
|
self.tableStyle = kwds.pop('tableStyle',defaultTableStyle)
|
|
166
166
|
self.dotsMinLevel = kwds.pop('dotsMinLevel',1)
|
|
167
167
|
self.formatter = kwds.pop('formatter',None)
|
|
168
|
+
self._notifyKind = kwds.pop('notifyKind','TOCEntry')
|
|
168
169
|
if kwds: raise ValueError('unexpected keyword arguments %s' % ', '.join(kwds.keys()))
|
|
169
170
|
self._table = None
|
|
170
171
|
self._entries = []
|
|
@@ -184,9 +185,9 @@ class TableOfContents(IndexingFlowable):
|
|
|
184
185
|
def notify(self, kind, stuff):
|
|
185
186
|
"""The notification hook called to register all kinds of events.
|
|
186
187
|
|
|
187
|
-
Here we are interested in
|
|
188
|
+
Here we are interested in self._notifyKind (default TOCEntry) events only.
|
|
188
189
|
"""
|
|
189
|
-
if kind ==
|
|
190
|
+
if kind == self._notifyKind:
|
|
190
191
|
self.addEntry(*stuff)
|
|
191
192
|
|
|
192
193
|
def clearEntries(self):
|
|
@@ -304,6 +305,7 @@ class SimpleIndex(IndexingFlowable):
|
|
|
304
305
|
self._entries = {}
|
|
305
306
|
self._lastEntries = {}
|
|
306
307
|
self._flowable = None
|
|
308
|
+
self._notifyKind = kwargs.pop('notifyKind','IndexEntry')
|
|
307
309
|
self.setup(**kwargs)
|
|
308
310
|
|
|
309
311
|
def getFormatFunc(self,formatName):
|
|
@@ -397,9 +399,9 @@ class SimpleIndex(IndexingFlowable):
|
|
|
397
399
|
def notify(self, kind, stuff):
|
|
398
400
|
"""The notification hook called to register all kinds of events.
|
|
399
401
|
|
|
400
|
-
Here we are interested in
|
|
402
|
+
Here we are interested in self._notifyKind (default IndexEntry) events only.
|
|
401
403
|
"""
|
|
402
|
-
if kind ==
|
|
404
|
+
if kind == self._notifyKind:
|
|
403
405
|
text, pageNum = stuff
|
|
404
406
|
self.addEntry(text, (self._canv.getPageNumber(),pageNum))
|
|
405
407
|
|