Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visually identify name of field in PDF form

Tags:

forms

pdf

fdf

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 ?

like image 457
user2267379 Avatar asked Jul 08 '16 00:07

user2267379


People also ask

How do I show the field names in a PDF form?

(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.

How do I label fields in Adobe forms?

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.

Does PDF Show author name?

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.


2 Answers

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.

like image 133
user2267379 Avatar answered Oct 05 '22 19:10

user2267379


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.

example

like image 33
Bastien Jansen Avatar answered Oct 05 '22 21:10

Bastien Jansen