Free Support Forum - aspose.com

Thumbnails from Word pages

Hello, can anyone explain or show me the link on how to convert a page from a word doc to a thumbnail in .NET? (Without saving the document) I seem to have difficulty finding that.

Hi,


Thanks for your inquiry. I think, you can simply render the first page in your Microsoft Word document to a Png image without saving the whole document by using the following code snippet:

Document document = new Document(@“C:\Temp\In.docx”);

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Png);

options.PageIndex = 0;

options.PageCount = 1;

document.Save(string.Format(@"C:\Temp\FirstPage.png"), options);


I hope, this will help

Best Regards,