发布时间:2019-09-01 09:50:19编辑:auto阅读(2087)
from reportlab.graphics.shapes import Drawing, String
from reportlab.graphics import renderPDF
d = Drawing(200, 200)
s = String(50, 50, 'victor is a good man', textAncher='middle')
d.add(s)
renderPDF.drawToFile(d, r'd:\victor.pdf', 'simple pdf')
上一篇: python(六)
下一篇: 什么是makefile(3)
51721
51380
41813
38584
33065
30074
28745
23741
23650
22019
2242°
2926°
2445°
2389°
2973°
2394°
3200°
5257°
5072°
3626°