Hi Eric,
unfortunately I have deleted the mail and so I cannot answer in the thread.
But here is your example:
public void printFieldPos(PDDocument pdfDocument, String fieldName) {
try {
PDDocumentCatalog docCatalog = pdfDocument.getDocumentCatalog();
PDAcroForm acroForm = docCatalog.getAcroForm();
PDField f = acroForm.getField(fieldName);
if (f != null) {
PDRectangle r = f.getWidget().getRectangle();
float llx = r.getLowerLeftX();
float lly = r.getLowerLeftY();
float urx = r.getUpperRightX();
float ury = r.getUpperRightY();
System.out.println(f.getPartialName() + " " + llx + "/" +
lly);
}
} catch (IOException ex) {
Logger.getLogger(SetField.class.getName()).log(Level.SEVERE, null,
ex);
}
}
Hope it will help you.
Regards,
Manfred