【问题标题】:How to write table structure data in PDF file in python?如何在python的PDF文件中写入表结构数据?
【发布时间】:2017-02-22 08:23:59
【问题描述】:
+----+-----------------------------+
| id | name                        |
+====+=============================+
| 47 | Some textjogjwojgopwgpowmok |
+----+-----------------------------+
| 47 | Some textjogjwojgopwgpowmokg|
+----+-----------------------------+
| 47 | Some textjogjwojgopwgpowmokg|
+----+-----------------------------+
| 47 | Some textjogjwojgopwgpowmokg|
+----+-----------------------------+
| 47 | Some textjogjwojgopwgpowmokg|
+----+-----------------------------+

我想使用 python 库以上述格式将上述表格写入 PDF 文件。感谢您的即时响应。

【问题讨论】:

    标签: python-2.7 python-3.x reportlab pypdf2 pdfrw


    【解决方案1】:

    【讨论】:

    • 我将获取相同格式的数据,所以我不想创建表格格式等等。我只想写我发布的完全相同的数据
    • 如果我理解正确,您基本上想要的是将字符串写入 pdf。试试reportlab
    猜你喜欢
    • 2019-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-21
    • 1970-01-01
    • 2020-09-15
    • 1970-01-01
    相关资源
    最近更新 更多