trml2pdf:RML语言(用于PDF生成的标记语言)的开源实现

时间:2021-05-24 17:48:19
【文件属性】:
文件名称:trml2pdf:RML语言(用于PDF生成的标记语言)的开源实现
文件大小:437KB
文件格式:ZIP
更新时间:2021-05-24 17:48:19
Python ReportLab的RML(报告标记语言)的开源实现 (或) 并非所有标签都已实现,但主要标签都已实现。 安装 pip install trml2pdf 例子 创建一个PDF文件: import trml2pdf print trml2pdf . parseString ( open ( 'file.rml' , 'rt' ). read ()) 如果将其用于Django,则可以使用模板系统动态创建.rml文件,然后进行呈现。 from django . template . loader import get_template from django . template . context import Context import trml2pdf data = { 'key1' : 'foo' } template = get_template ( 'templat
【文件预览】:
trml2pdf-master
----setup.py(1KB)
----.gitignore(147B)
----MANIFEST.in(36B)
----doc()
--------trml2pdf.1(269B)
--------CREDITS.md(566B)
--------INSTALL.txt(432B)
--------COPYRIGHT.txt(119B)
--------Done.md(3KB)
----LICENSE.txt(26KB)
----.github()
--------workflows()
----README.md(1KB)
----trml2pdf.py(672B)
----tests()
--------templates()
--------output()
--------__init__.py(0B)
--------test_keepinframe_tag.py(1KB)
--------expected()
--------input()
--------test_examples.py(2KB)
----trml2pdf()
--------.gitignore(6B)
--------canv.py(15KB)
--------flowable.py(9KB)
--------__init__.py(1KB)
--------styles.py(9KB)
--------doc.py(5KB)
--------utils.py(2KB)
--------color.py(1KB)
----tox.ini(453B)

网友评论