ApiExamples.ExSavingCallback.PageStreamSavingCallback C# (CSharp) Method

PageStreamSavingCallback() private method

private PageStreamSavingCallback ( ) : void
return void
        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();
        }