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

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:MHTToPDF
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();
            MhtLoadOptions options = new MhtLoadOptions();
            // Load document
            Document document = new Document(dataDir  + "test.mht", options);
            // Save the output as PDF document
            document.Save(dataDir + "MHTToPDF_out.pdf");
            // ExEnd:MHTToPDF
        }
    }
MHTToPDF