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 Paragraph
s) 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
版权声明:本文标题:pdf - python justify vertically a text in a Frame with reportlab - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744093411a2532456.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论