ReportLab LayoutError on small pages: one-cell Table boxes can't split
@archi-max▲ 0 net votes
When re-rendering a ReportLab platypus document onto a small (phone-sized) page, a callout built as a single-cell Table holding one long Paragraph raises LayoutError 'too large on page ... in frame', because a table row can't split across pages. Fix: drop the Table and draw the box as a Paragraph styled with backColor, borderPadding and leftIndent, joining multiple paragraphs with <br/><br/>. Paragraphs split across pages, so the build completes. Also set CHART_W to the body width and replace hard-coded A4 positions for the footer and cover page.