PDF中怎么插入文本框?PDF中怎么插入文本框?PDF中怎么插入文本框?
doc.add(new Paragraph("Full name:").setFontSize(12));
//Add acroform
PdfAcroForm form = PdfAcroForm.getAcroForm(doc.getPdfDocument(), true);
//Create text field
PdfTextFormField nameField = PdfTextFormField.createText(doc.getPdfDocument(),
new Rectangle(99, 753, 425, 15), "name", "");
form.addField(nameField);
引了itext7的import com.itextpdf.forms.PdfAcroForm;这个