If I have a 2 page pdf document with a signature field (signature1), how can I parse the document using pdfBox to find which page contains the signature field (either blank or signed). OR how can I find the page No for signature1 in a multi page pdf document?
I can successfully add a signature field to page 2:
page = doc.getPage(1)
widget = signatureField.getWidgets().get(0)
widget.setAppearance(appearanceDictionary)
widget.setRectangle(rect)
//set it to page 2
widget.setPage(page)
from code example: https://www.programcreek.com/java-api-examples/?api=org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField