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,