ApiExamples.ExSavingCallback.PageStreamSavingCallback C# (CSharp) Метод

PageStreamSavingCallback() приватный Метод

private PageStreamSavingCallback ( ) : void
Результат 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();
        }