我如何创建一个 PDF 表单,而不是用 iText 在 Java 中填充用户生成的数据?

How can i create a PDF form, than fill it with user generated data in Java, with iText?

假设我有这个 PDF 表格。我如何用用户生成的数据填充它,在 Java?

例如:

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

你可以在那里找到很多例子: https://itextpdf.com/en/resources/examples/itext-7/filling-out-forms