[reportlab-users] Patch to support tables with oversize cells

Robin Becker robin at reportlab.com
Thu May 26 08:28:15 EDT 2022


Hi again Lennart,

I made some progress cleaning up the ImageReader class and now I can generate the userguide. However, that allows 
another case to fail which is in

> python test_platypus_accum.py
> .E
> ======================================================================
> ERROR: test2 (__main__.TablesTestCase
 > ......
>   File "/home/robin/devel/reportlab/reportlab/platypus/tables.py", line 2032, in split
>     result = self._splitRows(availHeight, doInRowSplit=not self.splitByRow)
>   File "/home/robin/devel/reportlab/reportlab/platypus/tables.py", line 1589, in _splitRows
>     data = deepcopy(self._cellvalues)
 > ......
>   File "/home/robin/devel/reportlab/.py310/lib/python3.10/copyreg.py", line 101, in __newobj__
>     return cls.__new__(cls, *args)
> TypeError: onDrawStr.__new__() missing 2 required positional arguments: 'onDraw' and 'label'

not sure I understand this error; something to do with PageAccumulator goes wrong.

On 26/05/2022 13:11, Lennart Regebro wrote:
> Uh, yeah, I suddenly realized that the problem I solved with copying the
> table must be solved later down in the standard split code, so that must be
> entirely unnecessary.
> 
> I'll fix that.
> 
.........--
Robin Becker


More information about the reportlab-users mailing list