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

Run() public static method

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

            // Instantiate LoadOption object using SVG load option
            Aspose.Pdf.LoadOptions loadopt = new Aspose.Pdf.SvgLoadOptions();

            // Create Document object
            Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir + "SVGToPDF.svg", loadopt);

            // Save the resultant PDF document
            doc.Save(dataDir + "SVGToPDF_out.pdf");
            // ExEnd:SVGToPDF
        }
    }
SVGToPDF