是否可以在 ReportLab 生成的 PDF 中包含 OpenOffice Writer 或 MS Word 数据?

发布于 2024-10-08 02:43:16 字数 178 浏览 0 评论 0原文

我们的愿望是让用户在 OpenOffice Writer 或 MS Word 文件中提供信息,并将其插入到 ReportLab 生成的 PDF 的一部分中。我对 ReportLab 很满意;但是,我没有任何以这种方式使用 Writer 或 Word 数据的经验。您将如何自动化提取 Writer/Word 数据的过程?是否可以保留表格和图表?

The desire is to have the user provide information in an OpenOffice Writer or MS Word file that is inserted into part of a ReportLab generated PDF. I am comfortable with ReportLab; but, I don't have any experience with using Writer or Word data in this way. How would you automate the process of pulling in the Writer/Word data? Is it possible to retain tables and graphs?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏花。依旧 2024-10-15 02:43:16

您无法在 PDF 中嵌入此类对象,adobe 规范不支持这一点。但是,您始终可以解析 Office 文档中的数据,并在输出 PDF 中使用 reportlab 将其再现为表格/图形/等。如果您不关心数据是否为实际文本,您始终可以将其作为图像保存在 PDF 中。

You can not embed such objects as is within a PDF, adobe specification does not support that. However you could always parse the data from the Office document and reproduce it as a table/graph/etc using reportlab in the output PDF. If you don't care about the data being an actual text you could always save it in the PDF as an image.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文