Free Support Forum - aspose.com

SaveToPDF Crashes

I have tried to use the "SaveToPDF" function that is new in Aspose.PowerPoint, and when I do so I get the following error (here is the stacktrace). Looking through the debugger, I can see that the base URI property is www.aspose.com, and the call to ResolveUri(String uri) is taking in as uri: "data:;base64,... (very long string)

I am using the evaluation version.

System.UriFormatException {"Invalid URI: The Uri string is too long."}

at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Uri.CreateUri(Uri baseUri, String relativeUri, Boolean dontEscape)
at System.Uri..ctor(Uri baseUri, String relativeUri)
at xf0789b84d5aa419c.x9367bb32b0949526.ResolveUri(String uri)
at xf0789b84d5aa419c.x9ce67beb8ed79e60.get_ReferencedResource()
at xd5a0e64f72bafc6e.x468a2fc44c042c7f.Render(xf80849b589a933e7 renderer)
at xf0789b84d5aa419c.x9367bb32b0949526.Render(xf80849b589a933e7 renderer)
at xf0789b84d5aa419c.x9367bb32b0949526.RenderChildren(xf80849b589a933e7 renderer)
at xf0789b84d5aa419c.x9367bb32b0949526.Render(xf80849b589a933e7 renderer)
at xd5a0e64f72bafc6e.x3a15c7024016ce52.Render(x9367bb32b0949526 node)
at xd5a0e64f72bafc6e.xb58b450c88ca5d8d.x39f3bba4f519931b(RectangleF xda73fcb97c77d998)
at xd5a0e64f72bafc6e.xb58b450c88ca5d8d.GetBrush(RectangleF bounds)
at xd5a0e64f72bafc6e.x5a07b783905ffcaf.GetBrush(GraphicsPath gp)
at xd5a0e64f72bafc6e.xd7a4b8e7017d4ed7.Render(xf80849b589a933e7 renderer)
at xf0789b84d5aa419c.x9367bb32b0949526.Render(xf80849b589a933e7 renderer)
at xf0789b84d5aa419c.x9367bb32b0949526.RenderChildren(xf80849b589a933e7 renderer)
at xf0789b84d5aa419c.x9367bb32b0949526.Render(xf80849b589a933e7 renderer)
at xf0789b84d5aa419c.x9367bb32b0949526.RenderChildren(xf80849b589a933e7 renderer)
at xf0789b84d5aa419c.x9367bb32b0949526.Render(xf80849b589a933e7 renderer)
at xf0789b84d5aa419c.x013fa6723041dde1.Render(xf80849b589a933e7 renderer)
at xd5a0e64f72bafc6e.x3a15c7024016ce52.Render(x013fa6723041dde1 node)
at x8f567e8eb851a4e9.x252a851992376000.AddPageToPdf(Stream srcStream)
at Aspose.PowerPoint.Presentation.SaveToPdf(Stream stream)
at Aspose.PowerPoint.Presentation.SaveToPdf(String fname)

Thank you, we will check it.

Do you have large images in this presentation?

“data:;base64…” are base64 encoded images stored in the header of svg file.

The presentation has somewhat large images (screen size).