I'm getting an "Object reference not set to an instance of an object" error when executing the Draw Method of the MergeDocument object.
It only happens on a few of my fill-able pdfs and I don't see any noticable difference from the ones that do work.
Can anyone help me figure out why?
Object reference not set to an instance of an object
Re: Object reference not set to an instance of an object
Support · Mar 14, 2006Hello,
The likely reason you are getting this error is because you are trying to fill one of the form field but the form field name does not match or exist. Try running the FormFieldReader example using the PDF that you are trying to fill in order to verify that the form field names you are using are correct.
Thanks,
ceTe Software Support Team
Re: Object reference not set to an instance of an object
Forum member · Mar 14, 2006This even happens when I'm not trying to fill any fields in the PDF.
Dim MyDocument As Merger.MergeDocument = New Merger.MergeDocument("C:\Projects\PDFFill\Nb5005CT - 2006-02-13.pdf", New MergeOptions(True))
MyDocument.Draw("C:\Projects\PDFFill\MyDocument.pdf")
Re: Object reference not set to an instance of an object
Support · Mar 14, 2006Hello,
Can you please send over the PDF file that you are not able to merge successfully to [^a|mailto:support@cete.com|Support^] so that we can take a look at it.
Thanks,
ceTe Software Support Team
Re: Object reference not set to an instance of an object
Support · Mar 16, 2006Hello,
The issue has been resolved and the fix for this will be included in the next release on the web site. The issue will also be resolved in v4.0 of DynamicPDF Generator for .NET.
The PDF file had an Invalid cross reference. The new build takes care of it and fixes it automatically.
Thanks,
ceTe Software Support Team