简体   繁体   中英

Changing/Replacing text inside a PDF using Java

关于使用PDF作为模板以Java编程生成PDF的好的库有什么线索吗?

try iText. It has many many goodies. There is also a book about it by Manning iText in Action

If you want to be able to edit the Text in the template, you should set up the template carefully and use forms for text content. You can't easily replace text in PDFs because they do not contain text structure.

There is a blog article highlighting some of the issues at http://pdf.jpedal.org/java-pdf-blog/bid/17370/Problems-editing-PDF-files

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM