admin 管理员组

文章数量: 1086019

Sorry for my poor English.

I work in Python and I use reportlab package to create pdf (I have thousands pdf to generate, an image on left part, a text on right part of a A4 page). I want my text (a few Paragraphs) to fulfill vertically the given A5 Frame, and try tuning this with ParagraphStyle.leading parameter. But I don't want to use Paragraph.wrap() because results are (very) often false.

Consequently, the last Paragraph is missing.

Unfortunately, remaining=Frame.addFromList(my_paragraphs) remains empty, I didn't find any other signal to warn me.

The context is : I have thousands of letters from my ancestors, and I want to scan and show letters with original image on the left, and readable transcription on the right. As far as it is possible, transcriptions have to fulfill its A5 part because, in the past, the paper was expensive, and our ancestors filled their letters beyond what they could contain. It is not uncommon for the end of the letter to ride the start, making everything very difficult to read.

Aesthetically, I would like the text transcription (like hand-writings) fulfills all its space.

本文标签: pdfpython justify vertically a text in a Frame with reportlabStack Overflow