Aspose.Pdf.Examples.CSharp.AsposePDF.DocumentConversion.PDFToHTML.CompressSVGImages C# (CSharp) Method

CompressSVGImages() public static method

public static CompressSVGImages ( ) : void
return void
        public static void CompressSVGImages()
        {
            
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();

            // Load the PDF file
            Document doc = new Document(dataDir + "PDFToHTML.pdf");
            // ExStart:CompressSVGImages
            // Create HtmlSaveOption with tested feature
            HtmlSaveOptions newOptions = new HtmlSaveOptions();

            // Compress the SVG images if there are any
            newOptions.CompressSvgGraphicsIfAny = true;
            // ExEnd:CompressSVGImages
            // Save the output file
            doc.Save(dataDir + "CompressSVGImages_out.html", newOptions);
            
        }
        public static void SpecifyingImageFolder()