简体   繁体   中英

Replacing PDF text using PDFBox

I wanted to create invoice pdf's with a pdf template. It requires to replace 10 or more texts inside the pdf. PDFBox doesn't seems to be supporting direct text replacing. Is there a way to do this with PDFBOX? (found one token replace method but seems to be taking much processing to do the small task)

PDFBox had the replace text functionality but was removed ( https://pdfbox.apache.org/2.0/migration.html#why-was-the-replacetext-example-removed ), I would use Jaspersoft Studio ( http://community.jaspersoft.com/project/jaspersoft-studio ) instead, it's easy to use.

Jaspersoft Studio does not operate on a "pdf template", but on JasperReports templates. Those then may be exported to PDF.

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