乳胶生成PDF生产 [英] LaTeX for PDF generation in production

查看:142
本文介绍了乳胶生成PDF生产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用乳胶写几个白皮书,而我在读研究生。从我有什么乳胶允许用户做的,尤其是很好地控制它提供了格式等。

I used LaTeX for writing couple of white papers while I was in grad school. From that I have a really good impression about it in terms of what LaTeX allows user to do, especially the fine control it provides over formatting, etc.

现在我辩论方面它一个非常好的印象我是否应该实际使用乳胶为我们的生产应用程序生成的PDF文件。我尝试了好几种商业和免费的PDF库(PDFSharp / MigraDoc,iTextSharp的,专家PDF等),他们没有提供精细控制,我需要未做代码库极难长期来看维持量。

Now I am debating whether I should actually use LaTeX for our production apps to generate PDFs. I have tried several commercial and free PDF libraries (PDFSharp/MigraDoc, iTextSharp, Expert PDF, etc) and none of them provide the amount of fine control I need without making the code base extremely difficult to maintain in long run.

如果我真的决定走这条路会从C#来完成。由于乳胶已经有命令行界面,我应该能够做到这一点很容易地从C#从我的程序分叉的外部进程。

If I do decide to go this route it will be done from C#. Since LaTeX already has command line interface, I should be able to do that pretty easily from C# as an external process forked from my program.

不过,我一直在寻找来自社区的一些意见。

But I was looking for some comments from the community.


  1. 有没有人尝试过​​吗?如果有,是什么的一些陷阱

  2. 你觉得这个想法是什么? - ?利弊(我更感兴趣的是gotachas)

所有的反馈是值得欢迎的。

All feedback is welcome.

推荐答案

我以前建立了一个平台,报告生成使用平凡TeX(特别是 MIKTEX实施)来生成PDF格式的报告。该平台被用来产生每改变性质(主要含有动态生成的表格和图表)的月大约50报告。该系统是相当灵活的。报告通过XML定义(在内部定义的报告描述的模式)。该平台允许用户指定源数据库表,哪些字段来提取,该字段的格式,一个小型的查询语言来筛选合适的数据,以及各种格式元素(页面方向,大小,标题和类别(公开,内部,机密,等等)。

I have previously built a platform for report generation that uses plain TeX (specifically the MiKTeX implementation) to generate reports in PDF format. The platform is used to generate approximately fifty reports per month of varying nature (containing mostly dynamically generated tables and charts). The system is quite flexible. Reports are defined via XML (on an internally-defined report description schema). The platform allows the user to specify a source database table, which fields to extract, the formatting of the fields, a mini query language to filter the appropriate data as well as various formatting elements (page orientation, size, titles, and classifications ("Public", "Internal", "Confidential", etc.).

主要的疑难杂症的是,它需要大量的工作用的代码基础,以结束这是灵活的改变而不是全部的痛苦维护。第二个疑难杂症是的TeX的知识(学者之外)是罕见的,所以你最终可能成为事实上的维护者,即使这不是你通常的角色的一部分

The main "gotcha" is that it takes a ton of work to end up with a code base that is flexible to change and not a total pain to maintain. A second "gotcha" is that knowledge of TeX (outside of academics) is rare so you could end up becoming the de facto maintainer even if that is not part of your usual role.

优点:


  1. 精美格式化的报告

  2. 对页面布局进行完全控制,并期待

  3. 免费

缺点。:


  1. 很难正确实施。

  2. 难以维持。

  3. 知识转变可能是沉重的负担。

  4. 支持实际上是不存在的。

  1. Difficult to implement properly.
  2. Difficult to maintain.
  3. Knowledge transition could be burdensome.
  4. Support is effectively non-existant.

这篇关于乳胶生成PDF生产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆