Aspose.Pdf.Examples.CSharp.AsposePDF.DocumentConversion.PDFToHTMLFormat.ProgressDetails.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            try
            {
                // ExStart:ProgressDetails
                // The path to the documents directory.
                string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion_PDFToHTMLFormat();
                string licenseFile = ""; // E.g F:\_Sources\Aspose_5\trunk\testdata\License\Aspose.Total.lic
                (new Aspose.Pdf.License()).SetLicense(licenseFile);
                Document doc = new Document(dataDir + "input.pdf");
                HtmlSaveOptions saveOptions = new HtmlSaveOptions();
                // SaveOptions.CustomProgressHandler = new HtmlSaveOptions.ConversionProgessEventHandler(ShowProgressOnConsole);
                saveOptions.SplitIntoPages = false;
                doc.Save(dataDir + "ProgressDetails_out_.html", saveOptions);
                Console.ReadLine();
                // ExEnd:ProgressDetails
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
        // ExStart:ProgressDetailsHelper