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

Robin Becker robin at reportlab.com
Tue Apr 19 05:45:25 EDT 2022


Hi Lennart,

I put your data for the spanning case into my test program which is attached; I can use the following commands to see 
the behavior


python lennart-example.py --splitByRow=0 --splitInRow=1 --split=55 --pdfn=ttt.pdf --useData=1

this works and splits the column spanned row 3 (row=2 in python). The cell is split OK, but it gets styles from the 
splitfirst, splitlast styles. I'm not sure that's right for a split in the row when the split row is neither a first row 
or last. I don't really know what the correct styling should be, but I think the style that would have applied in the 
non-splitting case should be used.

If I use

python lennart-example.py --splitByRow=0 --splitInRow=1 --split=22 --pdfn=ttt.pdf --useData=1

then the split fails because it crosses the spanned row cell

On 12/04/2022 11:12, Lennart Regebro wrote:
> Hi! Have you been able to look more at this?
> 
> I'm feeling pretty good about the patch now, with added tests and better
> command handling.
> 
> 
.......


-- 
Robin Becker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lennart-example.py
Type: text/x-python
Size: 5590 bytes
Desc: not available
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20220419/3f6350e6/attachment.py>


More information about the reportlab-users mailing list