Aspose.Pdf.Examples.CSharp.AsposePdfGenerator.Conversion.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_AsposePdfGenerator_Conversion();

            // Instantiate Pdf object
            Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
            // Bind the source SVG file
            pdf.BindSvg( dataDir + "SVGToPDF.svg");
            // Save the resultant PDF document
            pdf.Save(dataDir + @"SVGToPDF_out.pdf");
            // ExEnd:SVGToPDF
        }
    }
SVGToPDF