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.
Files changed (733) hide show
  1. {reportlab-4.1.0 → reportlab-4.2.2}/CHANGES.md +21 -0
  2. {reportlab-4.1.0 → reportlab-4.2.2}/PKG-INFO +1 -1
  3. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/__init__.py +2 -2
  4. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/test.py +3 -0
  5. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderPDF.py +7 -3
  6. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderPM.py +33 -16
  7. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/colors.py +5 -1
  8. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/rl_safe_eval.py +43 -17
  9. reportlab-4.2.2/src/reportlab/license.txt +29 -0
  10. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/acroform.py +11 -8
  11. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfdoc.py +33 -4
  12. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/doctemplate.py +3 -2
  13. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/flowables.py +10 -2
  14. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/tableofcontents.py +7 -5
  15. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/PKG-INFO +1 -1
  16. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/SOURCES.txt +195 -0
  17. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample0c.gif +0 -0
  18. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample0c.py +57 -0
  19. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample1.gif +0 -0
  20. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample1.py +47 -0
  21. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4a.gif +0 -0
  22. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4a.py +46 -0
  23. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4b.gif +0 -0
  24. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4b.py +46 -0
  25. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4c.gif +0 -0
  26. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4c.py +46 -0
  27. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4c1.gif +0 -0
  28. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4c1.py +36 -0
  29. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4d.gif +0 -0
  30. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample4d.py +46 -0
  31. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5a.gif +0 -0
  32. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5a.py +46 -0
  33. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5b.gif +0 -0
  34. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5b.py +46 -0
  35. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5c.gif +0 -0
  36. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5c.py +46 -0
  37. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5d.gif +0 -0
  38. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample5d.py +46 -0
  39. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6a.gif +0 -0
  40. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6a.py +47 -0
  41. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6b.gif +0 -0
  42. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6b.py +47 -0
  43. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6c.gif +0 -0
  44. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6c.py +47 -0
  45. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6d.gif +0 -0
  46. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample6d.py +47 -0
  47. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7a.gif +0 -0
  48. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7a.py +47 -0
  49. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7b.gif +0 -0
  50. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7b.py +47 -0
  51. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7c.gif +0 -0
  52. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7c.py +47 -0
  53. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7d.gif +0 -0
  54. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample7d.py +47 -0
  55. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample8a.gif +0 -0
  56. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample8a.py +104 -0
  57. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample8b.gif +0 -0
  58. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample8b.py +104 -0
  59. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9a.gif +0 -0
  60. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9a.py +110 -0
  61. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9b.gif +0 -0
  62. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9b.py +119 -0
  63. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9c.gif +0 -0
  64. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample9c.py +119 -0
  65. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample_hatching.gif +0 -0
  66. reportlab-4.2.2/tests/charts-out/test_graphics_charts_axes_sample_hatching.py +13 -0
  67. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_SampleH5c4.gif +0 -0
  68. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_SampleH5c4.py +52 -0
  69. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0a.gif +0 -0
  70. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0a.py +46 -0
  71. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0b.gif +0 -0
  72. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0b.py +37 -0
  73. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0c.gif +0 -0
  74. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH0c.py +36 -0
  75. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH1.gif +0 -0
  76. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH1.py +84 -0
  77. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2a.gif +0 -0
  78. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2a.py +74 -0
  79. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2b.gif +0 -0
  80. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2b.py +74 -0
  81. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2c.gif +0 -0
  82. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH2c.py +104 -0
  83. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH3.gif +0 -0
  84. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH3.py +83 -0
  85. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4a.gif +0 -0
  86. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4a.py +46 -0
  87. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4b.gif +0 -0
  88. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4b.py +46 -0
  89. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4c.gif +0 -0
  90. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4c.py +42 -0
  91. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4d.gif +0 -0
  92. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH4d.py +34 -0
  93. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5a.gif +0 -0
  94. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5a.py +52 -0
  95. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5b.gif +0 -0
  96. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5b.py +52 -0
  97. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c1.gif +0 -0
  98. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c1.py +52 -0
  99. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c2.gif +0 -0
  100. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c2.py +52 -0
  101. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c3.gif +0 -0
  102. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c3.py +52 -0
  103. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c4.gif +0 -0
  104. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleH5c4.py +52 -0
  105. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleStacked1.gif +0 -0
  106. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleStacked1.py +216 -0
  107. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleSymbol1.gif +0 -0
  108. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleSymbol1.py +214 -0
  109. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0a.gif +0 -0
  110. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0a.py +46 -0
  111. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0b.gif +0 -0
  112. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0b.py +37 -0
  113. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0c.gif +0 -0
  114. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV0c.py +36 -0
  115. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV1.gif +0 -0
  116. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV1.py +84 -0
  117. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2a.gif +0 -0
  118. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2a.py +74 -0
  119. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2b.gif +0 -0
  120. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2b.py +74 -0
  121. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2c.gif +0 -0
  122. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV2c.py +104 -0
  123. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV3.gif +0 -0
  124. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV3.py +85 -0
  125. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4a.gif +0 -0
  126. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4a.py +46 -0
  127. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4b.gif +0 -0
  128. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4b.py +46 -0
  129. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4c.gif +0 -0
  130. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4c.py +42 -0
  131. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4d.gif +0 -0
  132. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV4d.py +34 -0
  133. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5a.gif +0 -0
  134. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5a.py +52 -0
  135. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5b.gif +0 -0
  136. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5b.py +52 -0
  137. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c1.gif +0 -0
  138. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c1.py +52 -0
  139. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c2.gif +0 -0
  140. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c2.py +52 -0
  141. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c3.gif +0 -0
  142. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c3.py +52 -0
  143. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c4.gif +0 -0
  144. reportlab-4.2.2/tests/charts-out/test_graphics_charts_barcharts_sampleV5c4.py +52 -0
  145. reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_sampleDoughnutDDFLabels.gif +0 -0
  146. reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_sampleDoughnutDDFLabels.py +55 -0
  147. reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_samplePieDDFLabels.gif +0 -0
  148. reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_samplePieDDFLabels.py +93 -0
  149. reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_sampleSpiderDDFLabels.gif +0 -0
  150. reportlab-4.2.2/tests/charts-out/test_graphics_charts_ddf_sampleSpiderDDFLabels.py +263 -0
  151. reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample1.gif +0 -0
  152. reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample1.py +16 -0
  153. reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample2.gif +0 -0
  154. reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample2.py +18 -0
  155. reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample3.gif +0 -0
  156. reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample3.py +28 -0
  157. reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample4.gif +0 -0
  158. reportlab-4.2.2/tests/charts-out/test_graphics_charts_doughnut_sample4.py +28 -0
  159. reportlab-4.2.2/tests/charts-out/test_graphics_charts_legends_sample3.gif +0 -0
  160. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample3.py +7 -7
  161. reportlab-4.2.2/tests/charts-out/test_graphics_charts_legends_sample3a.gif +0 -0
  162. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample3a.py +7 -7
  163. reportlab-4.2.2/tests/charts-out/test_graphics_charts_legends_sample4a.gif +0 -0
  164. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample4a.py +7 -7
  165. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample1.gif +0 -0
  166. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample1.py +133 -0
  167. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample1a.gif +0 -0
  168. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample1a.py +139 -0
  169. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample2.gif +0 -0
  170. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample2.py +182 -0
  171. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample3.gif +0 -0
  172. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sample3.py +174 -0
  173. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sampleCandleStick.gif +0 -0
  174. reportlab-4.2.2/tests/charts-out/test_graphics_charts_linecharts_sampleCandleStick.py +68 -0
  175. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1a.gif +0 -0
  176. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1a.py +213 -0
  177. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1b.gif +0 -0
  178. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1b.py +113 -0
  179. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1c.gif +0 -0
  180. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample1c.py +101 -0
  181. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample2.gif +0 -0
  182. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sample2.py +83 -0
  183. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sampleFillPairedData.gif +0 -0
  184. reportlab-4.2.2/tests/charts-out/test_graphics_charts_lineplots_sampleFillPairedData.py +57 -0
  185. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample0a.gif +0 -0
  186. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample0a.py +14 -0
  187. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample0b.gif +0 -0
  188. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample0b.py +14 -0
  189. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample1.gif +0 -0
  190. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample1.py +24 -0
  191. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample2.gif +0 -0
  192. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample2.py +30 -0
  193. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample3.gif +0 -0
  194. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample3.py +15 -0
  195. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample4.gif +0 -0
  196. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample4.py +18 -0
  197. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample5.gif +0 -0
  198. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample5.py +36 -0
  199. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample6.gif +0 -0
  200. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample6.py +37 -0
  201. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample7.gif +0 -0
  202. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample7.py +180 -0
  203. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample8.gif +0 -0
  204. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample8.py +76 -0
  205. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample9.gif +0 -0
  206. reportlab-4.2.2/tests/charts-out/test_graphics_charts_piecharts_sample9.py +76 -0
  207. reportlab-4.2.2/tests/charts-out/test_graphics_charts_special_sample1line.gif +0 -0
  208. reportlab-4.2.2/tests/charts-out/test_graphics_charts_special_sample2line.gif +0 -0
  209. reportlab-4.2.2/tests/charts-out/test_graphics_charts_special_sample4pie.gif +0 -0
  210. reportlab-4.2.2/tests/charts-out/test_graphics_charts_spider_sample1.gif +0 -0
  211. reportlab-4.2.2/tests/charts-out/test_graphics_charts_spider_sample1.py +42 -0
  212. reportlab-4.2.2/tests/charts-out/test_graphics_charts_spider_sample2.gif +0 -0
  213. reportlab-4.2.2/tests/charts-out/test_graphics_charts_spider_sample2.py +75 -0
  214. reportlab-4.2.2/tests/charts-out/test_graphics_images_alpha_test.png +0 -0
  215. reportlab-4.2.2/tests/charts-out/test_graphics_images_alpha_test8.png +0 -0
  216. reportlab-4.2.2/tests/render-out/410.png +0 -0
  217. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing14.py +2 -2
  218. reportlab-4.2.2/tests/test_graphics_images-libart.gif +0 -0
  219. reportlab-4.2.2/tests/test_graphics_images-libart.png +0 -0
  220. reportlab-4.2.2/tests/test_graphics_images.gif +0 -0
  221. reportlab-4.2.2/tests/test_graphics_images.png +0 -0
  222. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_images.py +74 -8
  223. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_programming.py +4 -3
  224. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/examples.py +10 -32
  225. reportlab-4.1.0/tests/charts-out/test_graphics_charts_legends_sample3.gif +0 -0
  226. reportlab-4.1.0/tests/charts-out/test_graphics_charts_legends_sample3a.gif +0 -0
  227. reportlab-4.1.0/tests/charts-out/test_graphics_charts_legends_sample4a.gif +0 -0
  228. reportlab-4.1.0/tests/charts-out/test_graphics_charts_special_sample1line.gif +0 -0
  229. reportlab-4.1.0/tests/charts-out/test_graphics_charts_special_sample2line.gif +0 -0
  230. reportlab-4.1.0/tests/charts-out/test_graphics_charts_special_sample4pie.gif +0 -0
  231. reportlab-4.1.0/tests/render-out/410.png +0 -0
  232. {reportlab-4.1.0 → reportlab-4.2.2}/INSTALL.txt +0 -0
  233. {reportlab-4.1.0 → reportlab-4.2.2}/LICENSE +0 -0
  234. {reportlab-4.1.0 → reportlab-4.2.2}/MANIFEST.in +0 -0
  235. {reportlab-4.1.0 → reportlab-4.2.2}/README.txt +0 -0
  236. {reportlab-4.1.0 → reportlab-4.2.2}/VERSION.txt +0 -0
  237. {reportlab-4.1.0 → reportlab-4.2.2}/demos/colors/colortest.py +0 -0
  238. {reportlab-4.1.0 → reportlab-4.2.2}/demos/gadflypaper/00readme.txt +0 -0
  239. {reportlab-4.1.0 → reportlab-4.2.2}/demos/gadflypaper/gfe.py +0 -0
  240. {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/00readme.txt +0 -0
  241. {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/dodyssey.py +0 -0
  242. {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/fodyssey.py +0 -0
  243. {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/odyssey.py +0 -0
  244. {reportlab-4.1.0 → reportlab-4.2.2}/demos/odyssey/odyssey.txt +0 -0
  245. {reportlab-4.1.0 → reportlab-4.2.2}/demos/rlzope/readme.txt +0 -0
  246. {reportlab-4.1.0 → reportlab-4.2.2}/demos/rlzope/rlzope.py +0 -0
  247. {reportlab-4.1.0 → reportlab-4.2.2}/demos/stdfonts/00readme.txt +0 -0
  248. {reportlab-4.1.0 → reportlab-4.2.2}/demos/stdfonts/stdfonts.py +0 -0
  249. {reportlab-4.1.0 → reportlab-4.2.2}/demos/tests/testdemos.py +0 -0
  250. {reportlab-4.1.0 → reportlab-4.2.2}/docs/00readme.txt +0 -0
  251. {reportlab-4.1.0 → reportlab-4.2.2}/docs/Makefile +0 -0
  252. {reportlab-4.1.0 → reportlab-4.2.2}/docs/genAll.py +0 -0
  253. {reportlab-4.1.0 → reportlab-4.2.2}/docs/gen_epydoc +0 -0
  254. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/Edit_Prefs.gif +0 -0
  255. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/Python_21.gif +0 -0
  256. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/Python_21_HINT.gif +0 -0
  257. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/fileExchange.gif +0 -0
  258. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/jpn.gif +0 -0
  259. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/jpnchars.jpg +0 -0
  260. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/lj8100.jpg +0 -0
  261. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/redsquare.png +0 -0
  262. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/replogo.a85 +0 -0
  263. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/replogo.gif +0 -0
  264. {reportlab-4.1.0 → reportlab-4.2.2}/docs/images/testimg.gif +0 -0
  265. {reportlab-4.1.0 → reportlab-4.2.2}/docs/make.bat +0 -0
  266. {reportlab-4.1.0 → reportlab-4.2.2}/docs/reference/build.bat +0 -0
  267. {reportlab-4.1.0 → reportlab-4.2.2}/docs/reference/genreference.py +0 -0
  268. {reportlab-4.1.0 → reportlab-4.2.2}/docs/reference/reference.yml +0 -0
  269. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/_static/basic.css +0 -0
  270. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/_static/default.css +0 -0
  271. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/_templates/layout.html +0 -0
  272. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/_templates/page.html +0 -0
  273. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/conf.py +0 -0
  274. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/graphics.rst +0 -0
  275. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/index.rst +0 -0
  276. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/lib.rst +0 -0
  277. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/pdfgen.rst +0 -0
  278. {reportlab-4.1.0 → reportlab-4.2.2}/docs/source/platypus.rst +0 -0
  279. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/app_demos.py +0 -0
  280. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch1_intro.py +0 -0
  281. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch2_graphics.py +0 -0
  282. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch2a_fonts.py +0 -0
  283. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch3_pdffeatures.py +0 -0
  284. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch4_platypus_concepts.py +0 -0
  285. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch5_paragraphs.py +0 -0
  286. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch6_tables.py +0 -0
  287. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/ch7_custom.py +0 -0
  288. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/genuserguide.py +0 -0
  289. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_charts.py +0 -0
  290. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_concepts.py +0 -0
  291. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_intro.py +0 -0
  292. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_shapes.py +0 -0
  293. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/graph_widgets.py +0 -0
  294. {reportlab-4.1.0 → reportlab-4.2.2}/docs/userguide/testfile.txt +0 -0
  295. {reportlab-4.1.0 → reportlab-4.2.2}/pyproject.toml +0 -0
  296. {reportlab-4.1.0 → reportlab-4.2.2}/setup.cfg +0 -0
  297. {reportlab-4.1.0 → reportlab-4.2.2}/setup.py +0 -0
  298. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/MANIFEST.in +0 -0
  299. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/00readme.txt +0 -0
  300. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden-changelog.txt +0 -0
  301. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden-copying-gpl.txt +0 -0
  302. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden-copying.txt +0 -0
  303. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden-readme.txt +0 -0
  304. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGarden.sfd +0 -0
  305. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGardenMK.afm +0 -0
  306. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/DarkGardenMK.pfb +0 -0
  307. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/Vera.ttf +0 -0
  308. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/VeraBI.ttf +0 -0
  309. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/VeraBd.ttf +0 -0
  310. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/VeraIt.ttf +0 -0
  311. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_a______.pfb +0 -0
  312. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_ab_____.pfb +0 -0
  313. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_abi____.pfb +0 -0
  314. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_ai_____.pfb +0 -0
  315. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_eb_____.pfb +0 -0
  316. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_ebi____.pfb +0 -0
  317. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_ei_____.pfb +0 -0
  318. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/_er_____.pfb +0 -0
  319. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/bitstream-vera-license.txt +0 -0
  320. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/callig15.afm +0 -0
  321. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/callig15.pfb +0 -0
  322. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/cob_____.pfb +0 -0
  323. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/cobo____.pfb +0 -0
  324. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/com_____.pfb +0 -0
  325. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/coo_____.pfb +0 -0
  326. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/sy______.pfb +0 -0
  327. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/zd______.pfb +0 -0
  328. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/zx______.pfb +0 -0
  329. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/fonts/zy______.pfb +0 -0
  330. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/__init__.py +0 -0
  331. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/README +0 -0
  332. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/TODO +0 -0
  333. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/__init__.py +0 -0
  334. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/code128.py +0 -0
  335. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/code39.py +0 -0
  336. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/code93.py +0 -0
  337. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/common.py +0 -0
  338. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/dmtx.py +0 -0
  339. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/eanbc.py +0 -0
  340. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/ecc200datamatrix.py +0 -0
  341. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/fourstate.py +0 -0
  342. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/lto.py +0 -0
  343. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/qr.py +0 -0
  344. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/qrencoder.py +0 -0
  345. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/usps.py +0 -0
  346. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/usps4s.py +0 -0
  347. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/barcode/widgets.py +0 -0
  348. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/__init__.py +0 -0
  349. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/areas.py +0 -0
  350. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/axes.py +0 -0
  351. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/barcharts.py +0 -0
  352. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/dotbox.py +0 -0
  353. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/doughnut.py +0 -0
  354. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/legends.py +0 -0
  355. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/linecharts.py +0 -0
  356. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/lineplots.py +0 -0
  357. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/markers.py +0 -0
  358. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/piecharts.py +0 -0
  359. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/slidebox.py +0 -0
  360. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/spider.py +0 -0
  361. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/textlabels.py +0 -0
  362. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/utils.py +0 -0
  363. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/charts/utils3d.py +0 -0
  364. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderPS.py +0 -0
  365. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderSVG.py +0 -0
  366. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/renderbase.py +0 -0
  367. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/__init__.py +0 -0
  368. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/bubble.py +0 -0
  369. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/clustered_bar.py +0 -0
  370. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/clustered_column.py +0 -0
  371. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/excelcolors.py +0 -0
  372. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/exploded_pie.py +0 -0
  373. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/filled_radar.py +0 -0
  374. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/line_chart.py +0 -0
  375. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/linechart_with_markers.py +0 -0
  376. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/radar.py +0 -0
  377. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/runall.py +0 -0
  378. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/scatter.py +0 -0
  379. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/scatter_lines.py +0 -0
  380. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/scatter_lines_markers.py +0 -0
  381. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/simple_pie.py +0 -0
  382. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/stacked_bar.py +0 -0
  383. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/samples/stacked_column.py +0 -0
  384. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/shapes.py +0 -0
  385. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/svgpath.py +0 -0
  386. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/testdrawings.py +0 -0
  387. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/testshapes.py +0 -0
  388. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/transform.py +0 -0
  389. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/utils.py +0 -0
  390. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgetbase.py +0 -0
  391. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/__init__.py +0 -0
  392. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/adjustableArrow.py +0 -0
  393. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/eventcal.py +0 -0
  394. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/flags.py +0 -0
  395. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/grids.py +0 -0
  396. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/markers.py +0 -0
  397. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/signsandsymbols.py +0 -0
  398. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/graphics/widgets/table.py +0 -0
  399. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/PyFontify.py +0 -0
  400. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/__init__.py +0 -0
  401. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/abag.py +0 -0
  402. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/arciv.py +0 -0
  403. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/attrmap.py +0 -0
  404. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/boxstuff.py +0 -0
  405. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/codecharts.py +0 -0
  406. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/corp.py +0 -0
  407. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/enums.py +0 -0
  408. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/extformat.py +0 -0
  409. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/fontfinder.py +0 -0
  410. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/fonts.py +0 -0
  411. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/formatters.py +0 -0
  412. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/geomutils.py +0 -0
  413. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/logger.py +0 -0
  414. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/normalDate.py +0 -0
  415. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/pagesizes.py +0 -0
  416. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/pdfencrypt.py +0 -0
  417. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/pygments2xpre.py +0 -0
  418. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/randomtext.py +0 -0
  419. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/rl_accel.py +0 -0
  420. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/rltempfile.py +0 -0
  421. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/rparsexml.py +0 -0
  422. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/sequencer.py +0 -0
  423. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/styles.py +0 -0
  424. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/testutils.py +0 -0
  425. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/textsplit.py +0 -0
  426. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/units.py +0 -0
  427. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/utils.py +0 -0
  428. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/validators.py +0 -0
  429. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/lib/yaml.py +0 -0
  430. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/__init__.py +0 -0
  431. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_can_cmap_data.py +0 -0
  432. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_cidfontdata.py +0 -0
  433. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata.py +0 -0
  434. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_macexpert.py +0 -0
  435. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_macroman.py +0 -0
  436. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_pdfdoc.py +0 -0
  437. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_standard.py +0 -0
  438. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_symbol.py +0 -0
  439. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_winansi.py +0 -0
  440. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_enc_zapfdingbats.py +0 -0
  441. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_courier.py +0 -0
  442. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_courierbold.py +0 -0
  443. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_courierboldoblique.py +0 -0
  444. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_courieroblique.py +0 -0
  445. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_helvetica.py +0 -0
  446. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_helveticabold.py +0 -0
  447. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_helveticaboldoblique.py +0 -0
  448. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_helveticaoblique.py +0 -0
  449. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_symbol.py +0 -0
  450. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_timesbold.py +0 -0
  451. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_timesbolditalic.py +0 -0
  452. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_timesitalic.py +0 -0
  453. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_timesroman.py +0 -0
  454. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_fontdata_widths_zapfdingbats.py +0 -0
  455. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/_glyphlist.py +0 -0
  456. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/cidfonts.py +0 -0
  457. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfform.py +0 -0
  458. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfmetrics.py +0 -0
  459. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfpattern.py +0 -0
  460. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/pdfutils.py +0 -0
  461. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/rl_codecs.py +0 -0
  462. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfbase/ttfonts.py +0 -0
  463. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/__init__.py +0 -0
  464. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/canvas.py +0 -0
  465. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/pathobject.py +0 -0
  466. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/pdfgeom.py +0 -0
  467. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/pdfimages.py +0 -0
  468. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/pdfgen/textobject.py +0 -0
  469. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/__init__.py +0 -0
  470. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/figures.py +0 -0
  471. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/frames.py +0 -0
  472. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/multicol.py +0 -0
  473. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/para.py +0 -0
  474. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/paragraph.py +0 -0
  475. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/paraparser.py +0 -0
  476. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/tables.py +0 -0
  477. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/platypus/xpreformatted.py +0 -0
  478. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/rl_config.py +0 -0
  479. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab/rl_settings.py +0 -0
  480. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/dependency_links.txt +0 -0
  481. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/requires.txt +0 -0
  482. {reportlab-4.1.0 → reportlab-4.2.2}/src/reportlab.egg-info/top_level.txt +0 -0
  483. {reportlab-4.1.0 → reportlab-4.2.2}/tests/00readme.txt +0 -0
  484. {reportlab-4.1.0 → reportlab-4.2.2}/tests/__init__.py +0 -0
  485. {reportlab-4.1.0 → reportlab-4.2.2}/tests/_i_am_actually_a_gif.jpg +0 -0
  486. {reportlab-4.1.0 → reportlab-4.2.2}/tests/_i_am_actually_a_jpeg.gif +0 -0
  487. {reportlab-4.1.0 → reportlab-4.2.2}/tests/alpha_test.png +0 -0
  488. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Codabar.gif +0 -0
  489. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Code11.gif +0 -0
  490. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Code128.gif +0 -0
  491. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Code128Auto.gif +0 -0
  492. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/EAN13.gif +0 -0
  493. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/EAN5.gif +0 -0
  494. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/EAN8.gif +0 -0
  495. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/ECC200DataMatrix.gif +0 -0
  496. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Extended39.gif +0 -0
  497. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Extended93.gif +0 -0
  498. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/FIM.gif +0 -0
  499. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/I2of5.gif +0 -0
  500. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/ISBN.gif +0 -0
  501. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/MSI.gif +0 -0
  502. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/POSTNET.gif +0 -0
  503. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/QR.gif +0 -0
  504. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/QR_with_comma.gif +0 -0
  505. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Standard39.gif +0 -0
  506. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/Standard93.gif +0 -0
  507. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/UPCA.gif +0 -0
  508. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/USPS_4State.gif +0 -0
  509. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/test_cbcim.gif +0 -0
  510. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/test_cbcim.png +0 -0
  511. {reportlab-4.1.0 → reportlab-4.2.2}/tests/barcode-out/test_cbcim.tiff +0 -0
  512. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_axes_sample0a.gif +0 -0
  513. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_axes_sample0a.py +0 -0
  514. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_axes_sample0b.gif +0 -0
  515. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_axes_sample0b.py +0 -0
  516. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample1c.gif +0 -0
  517. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample1c.py +0 -0
  518. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample2c.gif +0 -0
  519. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_legends_sample2c.py +0 -0
  520. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_bcleg.gif +0 -0
  521. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_bcleg.py +0 -0
  522. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_hlcleg.gif +0 -0
  523. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_hlcleg.py +0 -0
  524. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_lpleg.gif +0 -0
  525. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_lpleg.py +0 -0
  526. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_pcleg.gif +0 -0
  527. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_pcleg.py +0 -0
  528. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_plpleg.gif +0 -0
  529. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_plpleg.py +0 -0
  530. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1bar.gif +0 -0
  531. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1bar.py +0 -0
  532. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1barline.gif +0 -0
  533. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1barline.py +0 -0
  534. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample1line.py +0 -0
  535. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample2bar.gif +0 -0
  536. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample2bar.py +0 -0
  537. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample2line.py +0 -0
  538. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample3.gif +0 -0
  539. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample3.py +0 -0
  540. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_sample4pie.py +0 -0
  541. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_scleg.gif +0 -0
  542. {reportlab-4.1.0 → reportlab-4.2.2}/tests/charts-out/test_graphics_charts_special_scleg.py +0 -0
  543. {reportlab-4.1.0 → reportlab-4.2.2}/tests/encryption.gif +0 -0
  544. {reportlab-4.1.0 → reportlab-4.2.2}/tests/gray-alpha.png +0 -0
  545. {reportlab-4.1.0 → reportlab-4.2.2}/tests/pythonpowered-gs.gif +0 -0
  546. {reportlab-4.1.0 → reportlab-4.2.2}/tests/pythonpowered.gif +0 -0
  547. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/410.py +0 -0
  548. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing01.gif +0 -0
  549. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing01.jpg +0 -0
  550. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing01.png +0 -0
  551. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing01.py +0 -0
  552. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing02.gif +0 -0
  553. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing02.jpg +0 -0
  554. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing02.png +0 -0
  555. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing02.py +0 -0
  556. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing03.gif +0 -0
  557. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing03.jpg +0 -0
  558. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing03.png +0 -0
  559. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing03.py +0 -0
  560. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing04.gif +0 -0
  561. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing04.jpg +0 -0
  562. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing04.png +0 -0
  563. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing04.py +0 -0
  564. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing05.gif +0 -0
  565. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing05.jpg +0 -0
  566. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing05.png +0 -0
  567. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing05.py +0 -0
  568. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing06.gif +0 -0
  569. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing06.jpg +0 -0
  570. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing06.png +0 -0
  571. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing06.py +0 -0
  572. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing07.gif +0 -0
  573. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing07.jpg +0 -0
  574. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing07.png +0 -0
  575. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing07.py +0 -0
  576. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing08.gif +0 -0
  577. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing08.jpg +0 -0
  578. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing08.png +0 -0
  579. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing08.py +0 -0
  580. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing09.gif +0 -0
  581. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing09.jpg +0 -0
  582. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing09.png +0 -0
  583. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing09.py +0 -0
  584. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing10.gif +0 -0
  585. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing10.jpg +0 -0
  586. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing10.png +0 -0
  587. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing10.py +0 -0
  588. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing11.gif +0 -0
  589. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing11.jpg +0 -0
  590. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing11.png +0 -0
  591. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing11.py +0 -0
  592. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing12.gif +0 -0
  593. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing12.jpg +0 -0
  594. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing12.png +0 -0
  595. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing12.py +0 -0
  596. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing14.gif +0 -0
  597. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing14.jpg +0 -0
  598. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/Drawing14.png +0 -0
  599. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-none.png +0 -0
  600. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-none.py +0 -0
  601. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-pdf.png +0 -0
  602. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-pdf.py +0 -0
  603. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-svg.png +0 -0
  604. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/autoclose-svg.py +0 -0
  605. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/fillmode-even-odd.png +0 -0
  606. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/fillmode-even-odd.py +0 -0
  607. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/fillmode-non-zero.png +0 -0
  608. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/fillmode-non-zero.py +0 -0
  609. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/hatch.png +0 -0
  610. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/hatch.py +0 -0
  611. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/svglib-issue104.png +0 -0
  612. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/textmode.png +0 -0
  613. {reportlab-4.1.0 → reportlab-4.2.2}/tests/render-out/textmode.py +0 -0
  614. {reportlab-4.1.0 → reportlab-4.2.2}/tests/rltw-icon-tr.png +0 -0
  615. {reportlab-4.1.0 → reportlab-4.2.2}/tests/runAll.py +0 -0
  616. {reportlab-4.1.0 → reportlab-4.2.2}/tests/solid_red_alpha.png +0 -0
  617. {reportlab-4.1.0 → reportlab-4.2.2}/tests/tall_red.png +0 -0
  618. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test-cross.tiff +0 -0
  619. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test-indexed.png +0 -0
  620. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test-rgba.png +0 -0
  621. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_charts_textlabels.py +0 -0
  622. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_crypto_algorithms.py +0 -0
  623. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_docs_build.py +0 -0
  624. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_docstrings.py +0 -0
  625. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_extra.py +0 -0
  626. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_geomutils.py +0 -0
  627. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_barcode.py +0 -0
  628. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_charts.py +0 -0
  629. /reportlab-4.1.0/tests/test_graphics_images.gif → /reportlab-4.2.2/tests/test_graphics_images-cairo.gif +0 -0
  630. /reportlab-4.1.0/tests/test_graphics_images.png → /reportlab-4.2.2/tests/test_graphics_images-cairo.png +0 -0
  631. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_layout.py +0 -0
  632. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_render.py +0 -0
  633. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_graphics_speed.py +0 -0
  634. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_hello.py +0 -0
  635. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_images.py +0 -0
  636. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_invariant.py +0 -0
  637. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_issues.py +0 -0
  638. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_colors.py +0 -0
  639. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_normaldate.py +0 -0
  640. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_pdfencrypt.py +0 -0
  641. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_rl_safe_eval.py +0 -0
  642. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_sequencer.py +0 -0
  643. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_utils.py +0 -0
  644. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_lib_validators.py +0 -0
  645. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_multibyte_chs.py +0 -0
  646. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_multibyte_cht.py +0 -0
  647. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_multibyte_jpn.py +0 -0
  648. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_multibyte_kor.py +0 -0
  649. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_paragraphs.py +0 -0
  650. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_encodings.py +0 -0
  651. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_fontembed.py +0 -0
  652. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_pdfdoc.py +0 -0
  653. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_pdfform.py +0 -0
  654. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_pdfmetrics.py +0 -0
  655. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_pdfutils.py +0 -0
  656. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_postscript.py +0 -0
  657. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfbase_ttfonts.py +0 -0
  658. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_callback.py +0 -0
  659. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_general.py +0 -0
  660. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_links.py +0 -0
  661. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_overprint.py +0 -0
  662. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pdfgen_pagemodes.py +0 -0
  663. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_accum.py +0 -0
  664. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_breaking.py +0 -0
  665. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_cjk_wrap.py +0 -0
  666. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_general.py +0 -0
  667. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_images.py +0 -0
  668. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_indents.py +0 -0
  669. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_index.py +0 -0
  670. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_leftright.py +0 -0
  671. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_lists.py +0 -0
  672. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_paragraphs.py +0 -0
  673. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_paraparser.py +0 -0
  674. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_pleaseturnover.py +0 -0
  675. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_preformatted.py +0 -0
  676. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_tables.py +0 -0
  677. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_toc.py +0 -0
  678. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_wrapping.py +0 -0
  679. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_platypus_xref.py +0 -0
  680. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_pyfiles.py +0 -0
  681. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_renderPS.py +0 -0
  682. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_renderSVG.py +0 -0
  683. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_rl_accel.py +0 -0
  684. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_source_chars.py +0 -0
  685. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_table_inrowsplit.py +0 -0
  686. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_table_layout.py +0 -0
  687. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_tools_pythonpoint.py +0 -0
  688. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_utils.py +0 -0
  689. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_widgetbase_tpc.py +0 -0
  690. {reportlab-4.1.0 → reportlab-4.2.2}/tests/test_widgets_grids.py +0 -0
  691. {reportlab-4.1.0 → reportlab-4.2.2}/tests/unimportable.py +0 -0
  692. {reportlab-4.1.0 → reportlab-4.2.2}/tools/README +0 -0
  693. {reportlab-4.1.0 → reportlab-4.2.2}/tools/__init__.py +0 -0
  694. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/README +0 -0
  695. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/__init__.py +0 -0
  696. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/codegrab.py +0 -0
  697. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/docpy.py +0 -0
  698. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/graphdocpy.py +0 -0
  699. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/rl_doc_utils.py +0 -0
  700. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/rltemplate.py +0 -0
  701. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/stylesheet.py +0 -0
  702. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/t_parse.py +0 -0
  703. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/yaml.py +0 -0
  704. {reportlab-4.1.0 → reportlab-4.2.2}/tools/docco/yaml2pdf.py +0 -0
  705. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pdfpath.py +0 -0
  706. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/README +0 -0
  707. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/__init__.py +0 -0
  708. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/customshapes.py +0 -0
  709. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/examples.py +0 -0
  710. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/figures.xml +0 -0
  711. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/htu.xml +0 -0
  712. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/leftlogo.a85 +0 -0
  713. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/leftlogo.gif +0 -0
  714. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/lj8100.jpg +0 -0
  715. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/monterey.xml +0 -0
  716. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/outline.gif +0 -0
  717. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/pplogo.gif +0 -0
  718. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/python.gif +0 -0
  719. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/pythonpoint.xml +0 -0
  720. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/slidebox.py +0 -0
  721. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/spectrum.png +0 -0
  722. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/demos/vertpython.gif +0 -0
  723. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/pythonpoint.dtd +0 -0
  724. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/pythonpoint.py +0 -0
  725. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/stdparser.py +0 -0
  726. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/__init__.py +0 -0
  727. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/horrible.py +0 -0
  728. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/htu.py +0 -0
  729. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/modern.py +0 -0
  730. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/projection.py +0 -0
  731. {reportlab-4.1.0 → reportlab-4.2.2}/tools/pythonpoint/styles/standard.py +0 -0
  732. {reportlab-4.1.0 → reportlab-4.2.2}/tools/utils/add_bleed.py +0 -0
  733. {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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reportlab
3
- Version: 4.1.0
3
+ Version: 4.2.2
4
4
  Summary: The Reportlab Toolkit
5
5
  Home-page: https://www.reportlab.com/
6
6
  Author: Andy Robinson, Robin Becker, the ReportLab team and the community
@@ -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.1.0"
4
+ Version = "4.2.2"
5
5
  __version__=Version
6
- __date__='20240208'
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
- pix, width, height = gs.pixBuf, gs.width, gs.height
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 = Color2Hex(aColor)
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 = Color2Hex(aColor)
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((v[0]<<24|v[1]<<16|v[2]<<8|v[3])&0xffffff)
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 hasNameConstant else ast.Name(id='None', ctx=ast.Load())
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__ if allowed_magic_methods==True
861
- else allowed_magic_methods) if allowed_magic_methods else []
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.__rl__getiter__(it))
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 __rl_unsafe__ or (name.startswith('__')
1061
- and name!='__'
1062
- and name not in self.allowed_magic_methods):
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.copy() if l is None else l
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__(timeout=timeout, allowed_magic_methods=allowed_magic_methods)
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
- stream = [].append
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
- y = height - fontSize - _2bw
709
- stream('BT\n/%(iFontName)s %(fontSize)s Tf\n%(textFill)s')
710
- for line in value.split('\n'):
711
- stream('%%(_4bw)s %s Td\n(%s) Tj' % (y,escPDF(line)))
712
- y -= leading
713
- stream('ET')
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(stream.__self__) % vars()).replace(' ',' ').replace('\n\n','\n')
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__='3.6.0'
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
- exec(stmt, NS)
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 eval(expr.strip(),{},self._nameSpace)
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
- S = self._flowable.split(aW-self._leftIndent-self._rightIndent, aH)
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__='3.5.32'
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 'TOCEntry' events only.
188
+ Here we are interested in self._notifyKind (default TOCEntry) events only.
188
189
  """
189
- if kind == 'TOCEntry':
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 'IndexEntry' events only.
402
+ Here we are interested in self._notifyKind (default IndexEntry) events only.
401
403
  """
402
- if kind == 'IndexEntry':
404
+ if kind == self._notifyKind:
403
405
  text, pageNum = stuff
404
406
  self.addEntry(text, (self._canv.getPageNumber(),pageNum))
405
407
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: reportlab
3
- Version: 4.1.0
3
+ Version: 4.2.2
4
4
  Summary: The Reportlab Toolkit
5
5
  Home-page: https://www.reportlab.com/
6
6
  Author: Andy Robinson, Robin Becker, the ReportLab team and the community