PDFBOX 2.0.18 - How to iterates through pages of a PDF and retrieve specific fields
问题 I'm using PDFBox to read specific fields on a pdf document. Actually, I'm able to get all the informations I want with a pdf containing only one page. The PDF has fields with specific names and I can get all the fields and insert it in a database. I use this code with AccroForm to access the fields InputStream document = item.getInputStream(); pdf = PDDocument.load(new RandomAccessBufferedFileInputStream(document)); pdCatalog = pdf.getDocumentCatalog(); pdAcroForm = pdCatalog.getAcroForm();