I am evaluating the Aspose.Total for .NET before purchasing.
I get exceptions always when trying to convert a svg file to pptx or pdf file.
The following are the codes.
try {
var pdf = new Aspose.Pdf.Document(“cad.svg”);
pdf.Save(“cad.pptx”, Aspose.Pdf.SaveFormat.Pptx);
} catch (Exception e) {
m_stringError = e.ToString();
return;
}
}
Below are the contents of the exception when running the above coed.
Aspose.Pdf.InvalidPdfFileFormatException: Incorect file format
at . (String[] , String[] , Boolean )
at .. ( , & )
at . ( , & )
at …ctor(Stream , String , Boolean )
at …ctor(String )
at .(String )
at …ctor(String )
at .(String )
at . (String )
at …ctor(String )
at Aspose.Pdf.Document.(String , String )
at Aspose.Pdf.Document…ctor(String filename)