Hi,
Hi Brian,
Document doc = new Document(myDir
- “Test_09.pdf”);<o:p></o:p>
doc.getForm().getXFA().set_Item("form1[0].#subform[0].OrderedByName[0]", "Aspose Pdf for Java");
doc.save(myDir + "Test_09_out.pdf");
Please feel free to contact us for any further assistance.
Best Regards,
Thank you for the response. I do have more information in regards to the fields not being populated. When reviewing the 3 Documents (9, X, and XI) after I have tried to update the fields I did notice something else.
Just incase anyone else has this issue, I have figured out what the issue was. After trying a whole bunch of things, if you make a call to a field’s flatten() method, before you call the field’s setValue() method, the new field values will properly display in Adobe Reader.
Unfortunately flattening the field to get the text to appear in Adobe Reader, will prevent the field from being read from the document, since it is completely removed. So in essence, flattening the field does not solve my problem.
Hi Brian,
bamundson:Just incase anyone else has this issue, I have figured out what the issue was. After trying a whole bunch of things, if you make a call to a field's flatten() method, before you call the field's setValue() method, the new field values will properly display in Adobe Reader.
bamundson:Thank you for the response. I do have more information in regards to the fields not being populated. When reviewing the 3 Documents (9, X, and XI) after I have tried to update the fields I did notice something else.When looking at the edited documents in Adobe Reader XI, the fields appear as they are not filled in. But if I open the document in directly through my FireFox browser, the fields ARE populated as per my edits.Any idea why Adobe Reader would not display the proper field values, but other PDF viewers would? This is still a stopper for me, as most, if not all of our clients would use Adobe Reader. Thank you.
Document doc = new Document(“c:/pdftest/Test_11.pdf”);<o:p></o:p>
doc.getForm().getXFA().set_Item("form1[0].#subform[0].OrderedByName[0]", "Aspose Pdf for Java");
doc.save("c:/pdftest/Filled_Test_11_out.pdf");
For your reference, I have attached the output PDF files (filled forms) generated over my end.