long_line = '''
xhtml2pdf is a html2pdf converter using the ReportLab Toolkit, the HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3). It is completely written in pure Python so it is platform independent.
'''
can.drawString(0, 700, long_line) 字符串太长了,所以不是所有的都能显示在pdf页面上,如何自动包装呢?
发布于 2013-08-09 13:43:05
如果您想要自动包装,您可能最好使用ReportLab或RML。如果您在画布上直接绘图,则必须自行管理字符串包装。
https://stackoverflow.com/questions/18141964
复制相似问题