Aspose.Pdf.Examples.CSharp.AsposePDF.DocumentConversion.PDFToHTMLFormat.SplitCSSToPages.Strategy_4_CSS_MULTIPAGE_SAVING_RIGHT_WAY C# (CSharp) Method

Strategy_4_CSS_MULTIPAGE_SAVING_RIGHT_WAY() private static method

private static Strategy_4_CSS_MULTIPAGE_SAVING_RIGHT_WAY ( HtmlSaveOptions partSavingInfo ) : void
partSavingInfo HtmlSaveOptions
return void
        private static void Strategy_4_CSS_MULTIPAGE_SAVING_RIGHT_WAY(HtmlSaveOptions.CssSavingInfo partSavingInfo)
        {
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion_PDFToHTMLFormat();

            string outPath = dataDir + "style_xyz_page" + partSavingInfo.CssNumber.ToString() + ".css";
            System.IO.BinaryReader reader = new BinaryReader(partSavingInfo.ContentStream);
            System.IO.File.WriteAllBytes(outPath, reader.ReadBytes((int)partSavingInfo.ContentStream.Length));
        }