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

Free Support Forum - aspose.com

Convert DOCX page to image

Hi Support,

We are using Aspose.Words for NET. Let us know how we can convert word document (DOCX) into images as a whole or a particular page. Better to share c# sample. Thanks in advance.


Hi Wahaj,

Thanks for your inquiry. In order to save all pages in Microsoft Word document to separate image files, please use the following code snippet:

Document document = new Document(@“C:\test\in.docx”);

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Jpeg);
options.PageCount = 1;

// Save each page of the document as Jpeg.
for (int i = 0; i < document.PageCount; i++)
options.PageIndex = i;
document.Save(string.Format(@“C:\test\out_{0}.jpg”, i), options);

I hope, this helps,

Best regards,