我怎样才能创建一个PDF表格,比用用户生成的数据在Java中用iText来填写?

问题描述 投票:0回答:1

比方说,如果我有这个PDF表格。我怎么能用用户生成的数据来填充它,在Java中?

enter image description here

java forms pdf itext edit
1个回答
1
投票

比如说,你可以在那里找到很多例子。

 PdfAcroForm form = PdfAcroForm.getAcroForm(pdfDoc, true);
 form.getField("test").setValue(value);

你可以在那里找到很多的例子。https:/itextpdf.comenresourcesexamplesitext-7filling-out-forms。

© www.soinside.com 2019 - 2024. All rights reserved.