含有章节索引的中文 文章模板
::-- hoxide [DateTime(2005-04-09T06:08:44Z)] TableOfContents
文本处理
ReportLab
- 用于生成PDF文档
官方站点: [http://www.reportlab.org/]
- 例子:
1 from reportlab.pdfgen import canvas
2 from reportlab.lib.units import inch
3
4 font = "Helvetica"
5 font_size = 26
6 text = "Hello, world"
7 x = 5.0 * inch
8 y = 8.0 * inch
9 destination_file = "/tmp/first.pdf"
10
11 my_canvas = canvas.Canvas(destination_file)
12 my_canvas.setFont(font, font_size)
13 my_canvas.drawRightString(x, y, text)
14 my_canvas.save()
编译工具
请大家不断补充