簡體   English   中英

ReportLab兩欄目錄?

[英]ReportLab Two-Column TOC?

我有一個使用ReportLab生成的PDF。 我正在使用標准的TableOfContents可變對象,但試圖將其分為兩列,因此它們都適合在第一頁上。 內容將永遠只在一個層次上,因此我不擔心外觀奇特的縮進。

現在,我有了使用2個框架的PageTemplate,可以在第一頁上創建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*)

有任何想法嗎?

好吧,讓我感到尷尬。

對於任何其他有此問題的人,請檢查您的DocTemplate中的allowSplitting 默認值為1 ,但是我將我的更改為0 ,這就是原因。

*臉部*

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM