Hello Support Team,
We are unable to read the PDF form fields using below code.
//////
// messageBodyFileName - is the PDF file object or name whatever is needed …
docObj = new com.aspose.pdf.Document( messageBodyFileName);
if( docObj != null && senderAlias != null && pdfAttrsToDCTMAttrsMapping != null && sdraPVTempRootDocObj != null )
{
println("inside applyDCTMPropsFromPDFAttachmentFields - 1.." ) ;
fields = docObj.getForm().getFields();
println("inside applyDCTMPropsFromPDFAttachmentFields - 1a.." ) ;
for ( ii = 0 ; ii < fields.length; ii++ )
{
pdfFieldADateField = false;
field = fields[ii];
if( field != null && field.getFullName() != null && field.getValue() != null )
{
// Comments by Vikram - Both the field name and field's value is coming empty or null...
}
}
////
Please find attached sample PDF forms.
Aspose_Report 1.pdf (1.0 MB)
Aspose_Report 2.pdf (1.0 MB)