The product in object seems don't work with pdf files created in Adobe LiveCycle (or with any files, like your AcroFormFill.pdf imported and successively exported from LiveCycle).
I've tried this simple code for fill Acro form in a pdf:
Dim MyDocument As MergeDocument = New MergeDocument( "C:\MyDocument.pdf" )
MyDocument.Form.Fields("f1-1").Value = "avalue"
MyDocument.Draw("C:\MyDocument_result.pdf")
No problem with your original pdf, but when I run the same code on a file created in Adobe LiveCycle (or the same file exported from it) the runtime throw the exception:
A first chance exception of type 'System.NullReferenceException' occurred in sampleapp.exe
PDF from Adobe LiveCycle
Re: PDF from Adobe LiveCycle
Support · Mar 3, 2010Hello,
The error you are getting is probably because of using a wrong field name to fill it. The field "f1-1" is present in the PDF document comes with our examples. Wren changing the PDF you will have to change the field name also. Please make sure that you are using correct field name to fill it. You can get the field names by using your PDF as a template in the FormFieldReader example downloaded with the product download.
Thanks,
ceTe Software Support Team.
Re: PDF from Adobe LiveCycle
Forum member · Mar 3, 2010The names of the fields are correct.
"f1-1" is the name of the first field of your sample pdf... I don't change it... I just export the file as 'Static PDF' from LiveCycle ES 8.2.
The problem persist even when I create a simple PDF from zero (I'm the author of the file, then I decide the names of the fields).
Re: PDF from Adobe LiveCycle
Support · Mar 3, 2010Hello,
Can you please send over the PDF document you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further.
Thanks,
ceTe Software Support Team.