We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Crash when converting pdf file

Using Aspose.Pdf.Kit version 5.4. .NET 3.5. Getting a crash with the attached pdf and this code:

converter = new Aspose.Pdf.Kit.PdfConverter();
@“c:\temp\intel2.pdf” );

And here is the error:
<!–[if gte mso 9]>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}


Aspose.Pdf.Kit.PdfKitException: Object reference not set to an instance of an object.

at x30a678191d9b1780.x573da502a3364b6b.x5b81632e5b71b64c(Int32& x67a39b7274cec48f, Int32 x5c4ff2905d409caf, Int32 x820562bfe91b4e71, ImageFormat x0d9146d51b0e6ca4, Int32 x76cfa4602af6a972, Int32& x39b5532b4ddc40a3)

at x30a678191d9b1780.x573da502a3364b6b.x5b81632e5b71b64c(Int32& x67a39b7274cec48f, ImageFormat x0d9146d51b0e6ca4, Int32 x76cfa4602af6a972, Int32& x39b5532b4ddc40a3)

at Aspose.Pdf.Kit.PdfConverter.xaf6adc9ec3dfd936()

at Aspose.Pdf.Kit.PdfConverter.DoConvert()

at BrokenPdfTester.Program.Main(String[] args) in C:\temp\BrokenPdfTester\Program.cs:line 14v5.4.0.0

Let me know if you need more details. Thanks for your help!

Hi Brian,

I have reproduced this issue at my end and logged it as PDFKITNET-25933 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.

I wonder what the status is on the issue PDFKITNET-25933?
The reason why I ask is that I get the excactly same crash when trying convert a pdf-document
using Aspose.Pdf.Kit version 6.0 .NET 4?

Hi Brain,

I would like to inform you that Aspose.Pdf for .NET and Aspose.Pdf.Kit for .NET have been merged into a single product and Aspose.Pdf.Kit for .NET has been discontinued as a separate product. All the features of Aspose.Pdf.Kit for .NET are available under Aspose.Pdf.Facades namespace of Aspose.Pdf for .NET v6.x. You can check the following documentation links to upgrade your code from Aspose.Pdf.Kit for .NET to the new merged Aspose.Pdf for .NET.


Kindly use the latest version of Aspose.Pdf for .NET v6.8 and check, if it fits your need. If you still face any problem, please feel free to contact support.

Thanks & Regards,