创建PDF发票-是否有任何模板解决方案? [英] Creating PDF Invoices - Are there any templating solutions?

查看:92
本文介绍了创建PDF发票-是否有任何模板解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的公司正在寻求将发票集成到我们正在开发的新系统中.

Our company is looking to integrate invoices into a new system we are developing.

我们需要一种解决方案来创建发票的布局,然后转换为pdf.

We require a solution to create a layout of the invoice and then convert to pdf.

我们已经考虑过仅将发票放在html/css中,然后转换为pdf. 我们还考虑过使用SVG-> PDf转换.

We have considered just laying out the invoice in html/css then converting to pdf. We have also considered using SVG->PDf conversion.

这两种解决方案都很好地集成到了我们用于Web应用程序的现有模板语言中.

Both of these solutions integrate well into our existing templating language used for our web application.

从历史上看,我们一直是一家基于Microsoft的公司,并使用Crystal Reports来完成此任务,但我们正在寻找该项目的开源Linux解决方案.

Historically we have been a Microsoft based business and used Crystal Reports for such a task but we are looking for an open source Linux solution for this project.

有人对我们可以用于此类任务的方法或技术有任何建议吗?

Does any one have any suggestions of an approach or technology we could use for such a task?

推荐答案

通常的方法是安装(La)TeX(可能已经在linux机器上)并运行pdflatex来获取pdf.如果您喜欢xslt和xsl-fo,也可以使用Apache FOP.

The normal way is to install (La)TeX (probably already on the linux box) and run pdflatex to get the pdfs. You can also use Apache FOP, if you prefer xslt and xsl-fo.

如果要创建的发票数量很少,则可能要使用开放式办公室(直接或作为工具箱).

If the number of invoices to create is low you might want to use open-office (directly or as a toolkit).

如果要高精度定位和低级访问,则可能需要低级pdf库(我不知道iTextSharp是否适用于mono).

If you want high-precision positioning and low-level access, a low-level pdf library (I don't know if iTextSharp works with mono) might be what you want.

我会首先试用LaTeX,因为它可以让您以最少的努力获得结果.

I would try out LaTeX first, because it allows you to get results with the least effort.

这篇关于创建PDF发票-是否有任何模板解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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