public void PageStreamSavingCallback()
{
Stream docStream = new FileStream(MyDir + "Rendering.doc", FileMode.Open);
Document doc = new Document(docStream);
HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions { PageIndex = 0, PageCount = doc.PageCount };
htmlFixedSaveOptions.PageSavingCallback = new CustomPageStreamPageSavingCallback();
doc.Save(MyDir + @"\Artifacts\out.html", htmlFixedSaveOptions);
docStream.Close();
}