从 LISP 生成 PDF 文档
我想从 lisp(在我的例子中是 AllegroCL)生成一份技术报告,我研究了各种包/项目来帮助我做到这一点。
要求:
- 需要生成 PDF
- 可以创建中间格式,如 RTF、重组文本、HTML、Word DOC 或 Latex
- 需要灵活,能够在整个应用程序中添加内容
- 需要处理多页、页眉、页脚、表格、包含图像。
可能性:
- cl-pdf 和 cl-typesetting:我检查了这个,现在可以使用,但是有更好的选择吗?
- 一些乳胶生成器,但是???
问题:
您知道从 lisp 轻松生成 (PDF) 报告的替代方法吗?最好的工作流程是什么?
I want to generate a technical report from lisp (AllegroCL in my case) and I studied various packages/project to help me do this.
Requirements:
- Need to generate a PDF
- May create an intermediate format like RTF, Restructured TEXT, HTML, Word DOC or Latex
- Need to be flexible to be able to add content throughout my application
- Need to handle Multi-Page, Headers, Footers, Tables, inclusion of Images.
Possibilities:
- cl-pdf and cl-typesetting: I checked this one out and it works for now, but is there a better alternative?
- Some Latex generator, but ???
Question:
Do you know alternatives to easily generate (PDF) reports from lisp. What is the best workflow to go for?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们在过去 3 年中使用 cl-pdf 和 cl-typesetting,它有很多问题......(比如它对编码的混淆,或者默默地不渲染不适合的东西,或者。 ..)所以,我不推荐基于它们的新开发。
目前,我们正在将所有导出机制转变为开放文档格式。 openoffice 对此非常满意,而且还有一个 ms office 插件。
有 .fodt,即所谓的平面开放文档文本格式,它只是描述文档的 xml 文件。生成它就像生成 xml 文件一样简单。
您还可以制作零件您的文档只读并带有密码(插入一个部分并将其标记为只读并受密码保护。生成 xml 时,您可以生成随机哈希值作为密码...)。
we are using cl-pdf and cl-typesetting for the last 3 years and it has numerous issues... (like its confusion around encodings, or silently not rendering things that don't fit, or...) so, i don't recommend new development based on them.
currently we are in the process of moving all our export mechanisms to open document format. openoffice is all happy with it, and there's a plugin for ms office, too.
there's .fodt, the so called flat open document text format, which is a mere xml file describing a document. generating it is as easy as generating xml files.
you can also make parts of your document read-only with a password (insert a section and mark it read-only and protected by a password. when generating the xml, you can generate random hashes as password...).