我有一个使用ReportLab生成的PDF。我使用标准的TableOfContents可流动,但我试图将它分成两列,所以它将全部适合第一页。内容只会在一个层面上,所以我并不担心看起来很奇怪的缩进。
现在我使用PageTemplate使用2帧在第一页上创建2列。我得到了
LayoutError: Flowable <TableOfContents at 0x.... frame=RightCol>...(200.5 x 720) too large on page 1 in frame 'RightCol'(200.5 x 708.0*)
有什么想法吗?
答案 0 :(得分:1)
对于遇到此问题的其他人,请检查DocTemplate
allowSplitting
。默认值为1
,但我已将我的更改为0
,这就是原因。
*捂脸*