比方说,如果我有这个PDF表格。我怎么能用用户生成的数据来填充它,在Java中?
比如说,你可以在那里找到很多例子。
PdfAcroForm form = PdfAcroForm.getAcroForm(pdfDoc, true); form.getField("test").setValue(value);
你可以在那里找到很多的例子。https:/itextpdf.comenresourcesexamplesitext-7filling-out-forms。