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

Free Support Forum - aspose.com

Convert PDF to HTML using Aspose.PDF for .NET - ArgumentOutOfRangeException occurs


Using Aspose.Pdf for .Net version 17.4.0.
We’re getting ArgumentOutOfRangeException on converting pdf to html.
Only one file seems to cause the error (last page seems to be the problem).
File attached.

at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at Aspose.Fonts.TTF.Tables.TTFGlyfTable.LoadGlyphNum(TTFFileReader ttfReader, Int32 glyphNum, Glyph& glyph, Int32& nestingLevel)
at Aspose.Fonts.TTF.Tables.TTFGlyfTable.LoadGlyph(Int32 glyphIndex)
at Aspose.Fonts.TTF.Tables.TTFGlyfTable.GetGlyph(Int32 glyphIndex)
at Aspose.Fonts.TTF.TTFFont.GetGlyphByID(Int32 id)
at Aspose.Fonts.TTF.TTFFont.GetGlyphByID(GlyphID id)
at ​ .​ ( , , )
at ​ .​ ( , )
at .( , List1 )</div><div> at .( , List1 )
at . ( , List`1 )
at . ( ​ , , )
at .(Document , & , UnifiedSaveOptions , Int32& )
at .(Document , String , Stream , HtmlSaveOptions )
at Aspose.Pdf.Document.Save(Stream outputStream, SaveOptions options)

Thanks in advance.

Hi There,

Thanks for contacting support.

I have tested the scenario and have managed to reproduce the problem that while converting your provided PDF to HTML it throws ArgumentOutOfRange Exception. For the sake of correction, I have logged a ticket PDFNET-42571 in our issue tracking system. We will further look into the details of this issue and will keep you updated on the status of its resolution within this forum thread. Please be patient and spare us little time.

We are sorry for this inconvenience.

Best Regards,


Thank you for being patient.

I would like to request you to please try using Aspose.Pdf for .NET 17.12 in your environment and let us know if you still face this issue because we are unable to notice this problem with latest version of Aspose.Pdf API.