@YuriGubanov
Please use following code example to convert all pages of Word document to JPG images.
Document doc = new Document(MyDir + "in.docx");
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Jpeg);
options.PageSavingCallback = new HandlePageSavingCallback();
options.PageCount = doc.PageCount;
options.PageIndex = 0;
doc.Save(MyDir + "Out.jpg", options);
private class HandlePageSavingCallback : IPageSavingCallback
{
public void PageSaving(PageSavingArgs args)
{
args.PageFileName = string.Format(MyDir + @"Page_{0}.jpg", args.PageIndex);
}
}