I am using DynamicPDF v7.0.1.40 (Build 22435) with VS 2013 and .NET 4.0 for a WPF desktop application.
I have the following error when I call the Document.Draw method:
System.NullReferenceException: Object reference not set to an instance of an object.
at zz93.hp.c(String A_0)
at zz93.qi.c()
at zz93.qi..ctor(ke A_0, h1 A_1)
at ceTe.DynamicPDF.Merger.Forms.PdfForm.a(h1 A_0)
at ceTe.DynamicPDF.Merger.Forms.PdfForm.a(String A_0)
at ceTe.DynamicPDF.Merger.Forms.PdfFormField.get_Font()
at ceTe.DynamicPDF.Merger.Forms.PdfTextField.get_Font()
at zz93.dg.h()
at zz93.dg.c(DocumentWriter A_0)
at ceTe.DynamicPDF.Forms.FormField.Draw(DocumentWriter writer)
at ceTe.DynamicPDF.IO.DocumentResourceList.b(DocumentWriter A_0)
at zz93.pq.r()
at ceTe.DynamicPDF.Document.Draw(Stream stream)
at ceTe.DynamicPDF.Document.Draw(String filePath)
Could you give me the reason of that error and help me to fix it?
NullReferenceException on Document.Draw(FilePath)
Re: NullReferenceException on Document.Draw(FilePath)
Support · Mar 20, 2015Hello,
You are using a very old build of v7. Since then we have released several builds with lots of bug fixes
. Please download the latest build from the customer area
and update you project to see if that resolves the error. If the latest build does not resolve the error, send over the following information to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] and we can look into it further.
1. Code used to create the PDF that results in the exception.
2. Input PDFs if any that you might be merging to produce the output.
Thanks,
ceTe Software Support Team.
Re: NullReferenceException on Document.Draw(FilePath)
Forum member · Mar 25, 2015Hello,
Thanks for your straightforward but very useful answer.
This fix our problem!