Not all fields extracted

when calling get document.form.getfields not all fields are being extracted from pdf, I attached the documentfw8exp_(2017)_Aff_DAv2 (5).pdf (439.5 KB)

I am using version 20.2 of aspose PDF for java

@cgonzalez2089

Are you sure that you are using the API with a valid or 30-days free temporary license? We used below code snippet in our environment using the latest version of the API and did not notice the issue:

Document pdfDocument = new Document(dataDir + "fw8exp_(2017)_Aff_DAv2 (5).pdf");
for (Field fd : pdfDocument.getForm().getFields()) {
 System.out.println("Value - " + fd.getValue());
 System.out.println("Name - " + fd.getName());
 System.out.println("AlternateName - " + fd.getAlternateName());
 System.out.println("FullName - " + fd.getFullName());
 System.out.println("PartialName - " + fd.getPartialName());
 System.out.println("*************");
}

Below is the console output:

Value - null
Name - null
AlternateName - 1  Name of organization
FullName - 1  Name of organization
PartialName - 1  Name of organization
*************
Value - null
Name - null
AlternateName - 2  Country of incorporation or organization
FullName - 2  Country of incorporation or organization
PartialName - 2  Country of incorporation or organization
*************
Value - null
Name - null
AlternateName - Foreign government
FullName - Foreign government
PartialName - Foreign government
*************
Value - null
Name - null
AlternateName - International organization
FullName - International organization
PartialName - International organization
*************
Value - null
Name - null
AlternateName - Foreign central bank of issue (not wholly
FullName - Foreign central bank of issue not wholly
PartialName - Foreign central bank of issue not wholly
*************
Value - null
Name - null
AlternateName - Foreign tax-exempt organization
FullName - Foreign taxexempt organization
PartialName - Foreign taxexempt organization
*************
Value - null
Name - null
AlternateName - Foreign private foundation
FullName - Foreign private foundation
PartialName - Foreign private foundation
*************
Value - null
Name - null
AlternateName - Government of a U.S. possession
FullName - Government of a US possession
PartialName - Government of a US possession
*************
Value - null
Name - null
AlternateName - Participating FFI
FullName - Participating FFI
PartialName - Participating FFI
*************
Value - null
Name - null
AlternateName - Reporting Model 1 FFI
FullName - Reporting Model 1 FFI
PartialName - Reporting Model 1 FFI
*************
Value - null
Name - null
AlternateName - Reporting Model 2 FFI
FullName - Reporting Model 2 FFI
PartialName - Reporting Model 2 FFI
*************
Value - null
Name - null
AlternateName - Registered deemed-compliant FFI
FullName - Registered deemedcompliant FFI
PartialName - Registered deemedcompliant FFI
*************
Value - null
Name - null
AlternateName - Nonreporting IGA FFI. Complete Part III
FullName - Nonreporting IGA FFI Complete Part III
PartialName - Nonreporting IGA FFI Complete Part III
*************
Value - null
Name - null
AlternateName - Territory financial institution. Complete Part III
FullName - Territory financial institution Complete Part III
PartialName - Territory financial institution Complete Part III
*************
Value - null
Name - null
AlternateName - International organization
FullName - International organization_2
PartialName - International organization_2
*************
Value - null
Name - null
AlternateName - Foreign government (including a political subdivision
FullName - Foreign government including a political subdivision
PartialName - Foreign government including a political subdivision
*************
Value - null
Name - null
AlternateName - Exempt retirement plan of foreign government. Complete Part III
FullName - Exempt retirement plan of foreign government Complete Part III
PartialName - Exempt retirement plan of foreign government Complete Part III
*************
Value - null
Name - null
AlternateName - 501(c) organization. Complete Part III
FullName - 501c organization Complete Part III
PartialName - 501c organization Complete Part III
*************
Value - null
Name - null
AlternateName - Passive NFFE. Complete Part III
FullName - Passive NFFE Complete Part III
PartialName - Passive NFFE Complete Part III
*************
Value - null
Name - null
AlternateName - Direct reporting NFFE
FullName - Direct reporting NFFE
PartialName - Direct reporting NFFE
*************
Value - null
Name - null
AlternateName - Sponsored direct reporting NFFE. Complete Part III
FullName - Sponsored direct reporting NFFE Complete Part III
PartialName - Sponsored direct reporting NFFE Complete Part III
*************
Value - null
Name - null
AlternateName - 5  Permanent address (street, apt. or suite no., or rural route). Do not use a P.O. box or in-care-of address (other than a registered address
FullName - 5  Permanent address street apt or suite no or rural route Do not use a PO box or incareof address other than a registered address
PartialName - 5  Permanent address street apt or suite no or rural route Do not use a PO box or incareof address other than a registered address
*************
Value - null
Name - null
AlternateName - City or town, state or province. Include postal code where appropriate.
FullName - City or town state or province Include postal code where appropriate
PartialName - City or town state or province Include postal code where appropriate
*************
Value - null
Name - null
AlternateName - Country
FullName - Country
PartialName - Country
*************
Value - null
Name - null
AlternateName - City or town, state or province. Include postal or ZIP code where appropriate.
FullName - City or town state or province Include postal or ZIP code where appropriate
PartialName - City or town state or province Include postal or ZIP code where appropriate
*************
Value - null
Name - null
AlternateName - Country
FullName - Country_2
PartialName - Country_2
*************
Value - null
Name - null
AlternateName - 7  U.S. TIN, if required (see instructions)
FullName - 7  US TIN if required see instructions
PartialName - 7  US TIN if required see instructions
*************
Value - null
Name - null
AlternateName - 8a  GIIN
FullName - 8a  GIIN
PartialName - 8a  GIIN
*************
Value - null
Name - null
AlternateName - b  Foreign TIN (see instructions)
FullName - b  Foreign TIN see instructions
PartialName - b  Foreign TIN see instructions
*************
Value - null
Name - null
AlternateName - Qualification Statement for Chapter 3 Status
FullName - Qualification Statement for Chapter 3 Status
PartialName - Qualification Statement for Chapter 3 Status
*************
Value - null
Name - null
AlternateName - null
FullName - Mailing Address
PartialName - Mailing Address
*************
Value -  
Name - null
AlternateName - null
FullName - [select_block:Employee1:MailingCountry]
PartialName - [select_block:Employee1:MailingCountry]
*************
Value - Afghanistan
Name - null
AlternateName - null
FullName - [select_block:Employee1:Country]
PartialName - [select_block:Employee1:Country]
*************
Value - null
Name - null
AlternateName - null
FullName - [text_block:Employee1:USTaxpayerIdentification]
PartialName - [text_block:Employee1:USTaxpayerIdentification]
*************
Value - null
Name - null
AlternateName - null
FullName - [text_block:Employee1:GIIN]
PartialName - [text_block:Employee1:GIIN]
*************
Value - null
Name - null
AlternateName - null
FullName - [text_block:Employee1:FTIN]
PartialName - [text_block:Employee1:FTIN]
*************
Value - null
Name - null
AlternateName - null
FullName - [text_block:Employee1:ReferenceNumber]
PartialName - [text_block:Employee1:ReferenceNumber]
*************
Value - Afghanistan
Name - null
AlternateName - null
FullName - [select_block:Employee1:Part_10c_Text]
PartialName - [select_block:Employee1:Part_10c_Text]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:EntityType]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:EntityType]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:EntityType]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartII_10bc]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartII_10bc]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartII_11]
PartialName - [radio_button:Employee1:PartII_11]
*************
Value - null
Name - null
AlternateName - null
FullName - [date_block:Employee1:PartII_13a_Text]
PartialName - [date_block:Employee1:PartII_13a_Text]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartII_12]
PartialName - [radio_button:Employee1:PartII_12]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartII_13ab]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartII_13ab]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartII_13dc]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartII_13dc]
PartialName - null
*************
Value - Afghanistan
Name - null
AlternateName - null
FullName - [select_block:Employee1:Part_10b_Text]
PartialName - [select_block:Employee1:Part_10b_Text]
*************
Value - Afghanistan
Name - null
AlternateName - null
FullName - [select_block:Employee1:PartIII_15_ApplicableIGA]
PartialName - [select_block:Employee1:PartIII_15_ApplicableIGA]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartII_14]
PartialName - [radio_button:Employee1:PartII_14]
*************
Value - A Certain Other Swedish Pension Fund
Name - null
AlternateName - null
FullName - [select_block:Employee1:PartIII_15_IsTreatedAs]
PartialName - [select_block:Employee1:PartIII_15_IsTreatedAs]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartIII_15]
PartialName - [radio_button:Employee1:PartIII_15]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartIII_16]
PartialName - [radio_button:Employee1:PartIII_16]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartIII_18]
PartialName - [radio_button:Employee1:PartIII_18]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartIII_17]
PartialName - [radio_button:Employee1:PartIII_17]
*************
Value - null
Name - null
AlternateName - null
FullName - [checkbox:Employee1:PartII_10a]
PartialName - [checkbox:Employee1:PartII_10a]
*************
Value - null
Name - null
AlternateName - null
FullName - [checkbox:Employee1:PartIII_20a]
PartialName - [checkbox:Employee1:PartIII_20a]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartIII_19]
PartialName - [radio_button:Employee1:PartIII_19]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartIII_20bc]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartIII_20bc]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_button:Employee1:PartIII_21]
PartialName - [radio_button:Employee1:PartIII_21]
*************
Value - null
Name - null
AlternateName - null
FullName - [text_block:Employee1:PartIII_15_GIIN]
PartialName - [text_block:Employee1:PartIII_15_GIIN]
*************
Value - null
Name - null
AlternateName - null
FullName - [text_block:Employee1:PartIII_21_NameofSponsoring]
PartialName - [text_block:Employee1:PartIII_21_NameofSponsoring]
*************
Value - null
Name - null
AlternateName - null
FullName - [checkbox:Signer:ParttIV_ICertify]
PartialName - [checkbox:Signer:ParttIV_ICertify]
*************
Value - null
Name - null
AlternateName - null
FullName - [signing_block:Signer:PartIV_Signature]
PartialName - [signing_block:Signer:PartIV_Signature]
*************
Value - null
Name - null
AlternateName - null
FullName - [full-name_block:Signer:PartIV_PrintName]
PartialName - [full-name_block:Signer:PartIV_PrintName]
*************
Value - null
Name - null
AlternateName - null
FullName - [date-signed_block:Signer:PartIV_Date]
PartialName - [date-signed_block:Signer:PartIV_Date]
*************
Value - null
Name - null
AlternateName - null
FullName - [date_block:Signer:Begin_date]
PartialName - [date_block:Signer:Begin_date]
*************
Value - null
Name - null
AlternateName - null
FullName - [date-signed_block:Signer:Affidavit_Sign_Date]
PartialName - [date-signed_block:Signer:Affidavit_Sign_Date]
*************
Value - null
Name - null
AlternateName - null
FullName - [signing_block:Signer:Affidavit_Signature]
PartialName - [signing_block:Signer:Affidavit_Signature]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block: Employee1:EntityType]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block: Employee1:EntityType]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block: Employee1:EntityType]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [text_block: Employee1: PermanentResidenceAddress]
PartialName - [text_block: Employee1: PermanentResidenceAddress]
*************
Value - 0
Name - null
AlternateName - null
FullName - [radio_block: Employee1: Chapter4Status]
PartialName - [radio_block: Employee1: Chapter4Status]
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block: Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [radio_block: Employee1:Chapter4Status]
PartialName - null
*************
Value - null
Name - null
AlternateName - null
FullName - [text_block: Employee1: mailingadddy]
PartialName - [text_block: Employee1: mailingadddy]
*************

yes I am using the API with a valid license, there should be fields named such as
[text_block: Employee1: CityOrTown]
[text_block: Employee1: StateOrProvince]
[text_block: Signer: MailingAddress2]
[text_block: Employee1: MailingAddress]
plus more that are not there, also those first fields are the text from the text boxes on the document and not fields

@cgonzalez2089

Can you please share a screenshot of these fields on the PDF page along with their names while opening the PDF in the Adobe Reader?

Screenshot (130).png (1.2 MB)

here is the file opened in both adobe and nitro pro for field names

@cgonzalez2089

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFJAVA-43156

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.