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

Free Support Forum - aspose.com

Thumbnail Generation for word documents

Hi
I am trying to generate the thumbnails for the word documents using the Aspose components, It generates the thumbnail successfull for a word document having size upto 2 MB but shows the following exception for the size greater than 2 MB.

Exception : Parameters are not valid
Stack trace
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at Aspose.Words.Viewer.DocumentRenderer.⳷(ⴝ ؞, PageSetup ⳾, Int32 ⵇ)
at ⳙ.Ⳳ.⑹()
at ⳙ.Ⳳ.ⴌ()
at ⳙ.ⵟ.⳹(ⴢ ⵨)
at ⳙ.Ⳳ.ⴌ()
at ⳙ.ਘ.ⳮ()
at ⳙ.ਘ.Measure(PointF origin)
at ⳙ.⵵.␍()
at ⳙ.ⵟ.VisitParagraphEnd(Paragraph para)
at Aspose.Words.Paragraph.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ਁ(DocumentVisitor ࢒)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ਁ(DocumentVisitor ࢒)
at Aspose.Words.Section.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.ਁ(DocumentVisitor ࢒)
at Aspose.Words.Document.Accept(DocumentVisitor visitor)
at Aspose.Words.Viewer.DocumentRenderer.GetPages()
at Aspose.Words.Viewer.PageNavigator..ctor(DocumentRenderer renderer)

Is there any way out to solve this Error, kindly tell me.
Thanks and Regards
Pintu

Hi,
Sorry DocumentRenderer is a part of beta version of the document rendering module and we do not improve it anymore. Currently we are working on a new renderer with a totally different codebase.
Thank you for understanding.

We are happy to tell you that the new Rendering Engine has replaced the “old Viewer Beta”. The Rendering Engine can print, save as images or draw onto .NET Graphics object any document page.

Please see Aspose.Words documentation to learn more about new features.

Saving to image

In additional, new Rendering engine allows you to convert Word document to PDF directly (without using Aspose.Pdf).

Saving to Pdf

The latest version of Aspose.Words is available for download from downloads section or from NuGet