public static void Main(string[] args) { // The path to the documents directory. string dataDir = Path.GetFullPath("../../../Data/"); // 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 + "example.svg", loadopt); // Save the resultant PDF document doc.Save(dataDir + "converted.pdf"); }
public static void Run() { // 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 + "example.svg", loadopt); // Save the resultant PDF document doc.Save(dataDir + "converted.pdf"); }