After further investigation.. It appears the form fields are stored as 
annotations.

From: Kodjo Afriyie - iSite Eng 
<[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, 19 June 2019 at 12:08
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Forms elements not being recognised.

I used the tool below to create the attached document.

https://www.sejda.com/desktop

The following code returns an empty list for the form elements.
PDDocumentCatalog docCatalog = document.getDocumentCatalog();
PDAcroForm acroFom = docCatalog.getAcroForm();
List<PDField> fields = acroForm.getFields();

But when I create the document using pdf box it is able to recognise the form 
elements.

Thanks,
Kodjo

Reply via email to