生成自定义文档的最佳方法?
我正在努力生成用于打印的文档。 它应该使用特定的 TTF 字体,并且所有内容都必须用矢量图形打印(为了质量)。 某些文本应自动替换(例如当前时间)。 它还应该包括自定义生成的带有图表的 EPS 图像。
理想情况下,我希望有某种可以轻松替换文本的文档模板,如果它可以通过路径导入图像,那就太好了。 但我不确定哪种格式适合这个。 我能想到的最好的方法是 LaTeX,但我不喜欢将它与 TTF 一起使用需要大量的手动工作......还有其他想法吗?
顺便说一句,我正在使用 OS X...
I am working on generating a document for printing. It should use a specific TTF font and everything must be printed with vector graphics (for quality). Some of the text should be replaced automatically (e.g. current time). Also it should include a custom-generated EPS image with a chart.
Ideally I would like to have some kind of document template where the text could be replaced easily, and it would be nice if it could import the image through path. But I am not sure which format could be good for this. Best I can come to think of is LaTeX, but I don't like that it's a lot of manual work to use it with TTF... any other ideas?
By the way, I am using OS X...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有多种产品可以通过编程方式为您构建 PDF。 我自己只使用过 Coldfusion Report Builder,这对于您的应用程序来说可能不实用/负担不起。 如果您的预算允许,我会考虑商业报告产品。 我知道 Adobe 有几个可以生成 Flash、FlashPaper 或 PDF 输出的软件。
There are several products out there that will build you a PDF programmatically. I've only used the Coldfusion Report Builder myself and that may not be practical/affordable for your application. If your budget allows I'd look into a commercial reporting product. I know Adobe have several that will generate Flash, FlashPaper or PDF output.
回忆录包非常灵活,适合您的特殊布局。
Xetex 使用您的系统字体(与 TexLive 一起安装)。
Memoir package is very flexible for your special layouts.
Xetex uses your system fonts (Installed together with TexLive).
您可以使用 imagemagick 或 gimp script-fu 将大部分元素混合到 EPS
You could blend most of those elements to an EPS using imagemagick or gimp script-fu