The following line throws the exception below:
Dim pdfDoc As New ceTe.DynamicPDF.Merger.PdfDocument("c:\test.pdf")
Exception:
{System.NullReferenceException}
[System.NullReferenceException]: {System.NullReferenceException}
HelpLink: Nothing
InnerException: Nothing
Message: "Object reference not set to an instance of an object."
Source: "DynamicPDF.Merger.Evaluation"
StackTrace: " at zz93.v..ctor(PdfDocument A_0, a A_1)
at ceTe.DynamicPDF.Merger.PdfDocument.c()
at ceTe.DynamicPDF.Merger.PdfDocument..ctor(av A_0, String A_1)
at ceTe.DynamicPDF.Merger.PdfDocument..ctor(String filePath)
TargetSite: {System.Reflection.RuntimeConstructorInfo}
Same problem occurs using the byte array constructor (New PdfDocument(data() as Byte)).
Any help would be greatly appreciated.
New PdfDocument() throws NullReference exception
Re: New PdfDocument() throws NullReference exception
Support · Jan 18, 2006Make sure you have the latest build of Merger for .NET. If that does not resolve the issue, you likely have an corrupt PDF that cannot be repaired by our product. If you continue to have problems, please send the PDF over to [^a|MAILTO:support@cete.com|Support^] and we'll take a look at it for you.
Thanks,
ceTe Software Support Team
Re: New PdfDocument() throws NullReference exception
Support · Jan 18, 2006Thanks for sending over the PDF. The PDF has an invalid cross reference table and our product is not able to automatically correct the issue. If you open it in Acrobat Professional you will notice a "Rebuild" screen pop up and it will prompt you to save the file when it is closed.
Thanks,
ceTe Software Support Team