Free Support Forum - aspose.com

SaveToPdf Fails

I tried to save a PowerPoint presentation to a PDF file, but an exception is throw. The presentation is attached...

the code:

Presentation presentation = new Presentation(@"c:\ToBeConverted\ppt.ptt");
presentation.SaveToPdf(@"c:\Converted\ppt.pdf");

the exception:

"System.ArgumentException: Invalid parameter used.\r\n at System.Drawing.Pen.set_DashPattern(Single[] value)\r\n at xd5a0e64f72bafc6e.x5a07b783905ffcaf.GetPen(GraphicsPath gp)\r\n at xd5a0e64f72bafc6e.xd7a4b8e7017d4ed7.Render(xf80849b589a933e7 renderer)\r\n at xf0789b84d5aa419c.x9367bb32b0949526.Render(xf80849b589a933e7 renderer)\r\n at xf0789b84d5aa419c.x9367bb32b0949526.RenderChildren(xf80849b589a933e7 renderer)\r\n at xf0789b84d5aa419c.x9367bb32b0949526.Render(xf80849b589a933e7 renderer)\r\n at xf0789b84d5aa419c.x9367bb32b0949526.RenderChildren(xf80849b589a933e7 renderer)\r\n at xf0789b84d5aa419c.x9367bb32b0949526.Render(xf80849b589a933e7 renderer)\r\n at xf0789b84d5aa419c.x013fa6723041dde1.Render(xf80849b589a933e7 renderer)\r\n at xd5a0e64f72bafc6e.x3a15c7024016ce52.Render(x013fa6723041dde1 node)\r\n at x8f567e8eb851a4e9.x252a851992376000.AddPageToPdf(Stream srcStream)\r\n at Aspose.PowerPoint.Presentation.SaveToPdf(Stream stream)\r\n at Aspose.PowerPoint.Presentation.SaveToPdf(String fname)\r\n at Lector.Utilities.Document.ConvertToPdf.ConvertPowerPointToPdfStrategy.ConvertToPdf(FileInfo originalFile, String destinationPdfFile) in c:\\solutions\\spikes\\spike.pdfconvert.aspose\\lector.utilities.document\\convertpowerpointtopdfstrategy.cs:line 24"

Is there anyone who can comment on this issue? Could you re-create the exception? Perhaps a guess on when correct behavior can be expected to be implemented?

We are working with it now and this problem will be fixed soon.

I get the same problem.Sad [:(]

I get also a Erro i the same Method:

"The 'g' start tag on line '5' does not match the end tag of 'svg'. Line 16, position 3."

My the same problem? Is there now a solution available?

Sad [:(]

Could you attach your ppt file?