Free Support Forum -

ArgumentOutOfRangeException in ViewerHtmlHandler.GetPages method


We trying to use GroupDocs Viewer for .NET v17.6.0 for getting html representation of some PDF files. But ViewerHtmlHandler.GetPages(Stream fileStream) method causes the ArgumentOutOfRangeException trying handle file.

Here is the sample PDF file in attachments.

And the stack trace is

Exception thrown: ‘System.ArgumentOutOfRangeException’ in mscorlib.dll
Exception thrown: ‘GroupDocs.Viewer.Exception.GroupDocsViewerException’ in GroupDocs.Viewer.dll
Exception thrown: ‘GroupDocs.Viewer.Exception.GroupDocsViewerException’ in mscorlib.dll


Thanks for taking interest in GroupDocs.Viewer for .NET.

We have successfully reproduced your reported issue at our end and logged it in our Issue Tracking System with ID: VIEWERNET-1241. We shall further investigate this issue and in case of any updates, we’ll keep you informed. Please stay tuned with us.

Warm Regards


We are delighted to inform you that the issue mentioned in this topic has been resolved. The fix of the issue is available in GroupDocs.Viewer for .NET 17.8.0.