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:

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



And here is the error:
<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:DontVertAlignCellWithSp/>
<w:DontBreakConstrainedForcedTables/>
<w:DontVertAlignInTxbx/>
<w:Word11KerningPairs/>
<w:CachedColBalance/>
</w:Compatibility>
<w:DoNotOptimizeForBrowser/>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<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”/>
</m:mathPr></w:WordDocument>
<![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;}

<![endif]–>

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!
Brian.

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.
Regards,

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.

http://docs.aspose.com/display/pdfnet/Migration+from+Aspose.Pdf.Kit

http://www.aspose.com/blogs/aspose-blogs/shahzad-latif/archive/2011/06/11/migrating-from-legacy-code-to-merged-aspose.pdf-for-.net.html

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,