简体   繁体   中英

Bordering text within reportlab

I am working on an application in python that generates a pdf file using the reportlab library. How can I put borders around some text in there? The font color in the pdf is a certain color and I would also like some borders around the text.

It depends on whether the text is inside a Paragraph flowable or inside Table flowable.

If text is inside Paragraph then add an attribute and change it accordingly. 并相应地对其进行更改。

If the text is inside Table flowable then add and property in TableStyle to add borders around the text. 属性以在文本周围添加边框。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM