0

I have the need to create some pdf through java code, pdf templates are fixed and are very complex too. Each pdf represents a module and I have to fill it with informations I get from other sources in my application and finally create the complete pdf.

So, is there a library which, given a pdf, scans it and creats some java code which will eventually create it back? This way once I get the pdf template in java code I just have to edit it adding my informations and create it back.

4

3 回答 3

1

您可以查看这 2 个链接,它包含有关 PDF CRUD 操作的所有信息。

如何使用 Java 读取 PDF 文件?

http://mrbool.com/how-to-create-write-and-read-pdf-files-using-pdfone-and-java/27058

于 2013-10-03T08:54:56.013 回答
0

I have used with success iText http://itextpdf.com/ for various tasks involving creating, parsing and modifying pdf files. Please not that this one is not free for commercial use and the pricing isn't cheap either.

However, your question is a possible duplicate of the folowing one, so be sure to check the answers there:

https://stackoverflow.com/questions/6118635/what-is-the-best-pdf-open-source-library-for-java

于 2013-10-03T08:56:27.677 回答
0

itext是满足您需求的最佳方法之一.. itext API'S

于 2013-10-03T09:05:46.500 回答