I know some similar issues exist (Find the field names of inputtable form fields in a PDF document?) but my question is different:
I have all the field names (in fdf file).
I wish I could visually identify directly on the PDF.
With acrobat I should be able to right click on a field and then select "display the name of the field" but I can find no such thing.
Can someone help me ?
(To view this name, click the Additional tab of the Field Properties dialog box. The Field name drop-down list in the Linked Acrobat fillable field group shows the name.) You can view where the underlying PDF fillable fields are in the template by choosing Show Fillable Fields from the View menu.
In the Forms menu, select Add or Edit Fields... For the field you want to edit, access the context menu and select the Properties dialog. In the General tab of the Properties dialog, type a description for the form field in the Tooltip field. Repeat for all form fields.
PDF documents created in Acrobat 5.0 or later contain document metadata in XML format. Metadata includes information about the document and its contents, such as the author's name, keywords, and copyright information, that can be used by search utilities.
Ok. I have found pdf editor where this is possible. Probably acrobat pro too...
http://www.pdfescape.com/
Right click on the field : unlock. Right click again : get properties.
If you're using Apache PDFBox to fill the form automatically, you can use it to fill all text fields with their name:
final PDDocument document = PDDocument.load(in);
final PDAcroForm acroForm = document.getDocumentCatalog().getAcroForm();
final Iterator<PDField> it = acroForm.getFieldIterator();
for (PDField f : acroForm.getFields()) {
System.out.println(f.toString());
if (f instanceof PDTextField) {
f.setValue(f.getFullyQualifiedName());
}
};
document.save(...);
When you open the generated PDF, you'll be able to identify each field immediately like you asked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With