We know that not only can we save images and text in a PDF file, but we can also create a form in a PDF file. For example, figure 1 below is a PDF file in which some forms are created.
In fact, the PDF file is a special structure of the file, then, if we need to go through the PDFBox API to fill these forms, we need to know how these forms are defined in the PDF file,
What the name is. In general, we use the PDFBox API directly, then is there another simpler way? Of course, that's http://support.persits.com/pdf/demo_formfields.asp.
This website can be used to parse the structure of our uploaded pdf file form online. Let's take a PDF of Figure one as an example, using the website in Figure 2 to see the structure of the form in the current PDF file.
For the results of the query, see Figure 3.
Figure 1
Figure 2
Figure 3
APache PDFBox API Usage (3)----How to get a form structure with a PDF file with a form