是否可以在 ReportLab 生成的 PDF 中包含 OpenOffice Writer 或 MS Word 数据?
我们的愿望是让用户在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法在 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.