We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Can't save pdf file in UAG site

Hello Syncfusion Team!.
I have a problem with export html to pdf file in UAG with SharePoint 2013.
Html file have been saved to local disk but it can't convert to pdf after waiting for about 2-3 minutes. It's only happened on UAG. (http and https environment is ok).
Please see my attached files.
Can anyone help me how to fix this.
Thanks in advance!.




ErrorImages_db201d37.rar

1 Reply

GM Geetha M Syncfusion Team February 4, 2013 05:25 AM UTC

Hi Lee,

Thank you for your interest in Syncfusion products.

Could you please try to save the document as Stream and then send it using HttpResponse? Here is the code snippet:

Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
for (int i = 0; i < stream.Length; i++)
{
    int b = stream.ReadByte();
    if (b > -1) Response.OutputStream.WriteByte((byte)b);
}

Response.Flush();
Response.Close();

Regards
Geetha

Loader.
Live Chat Icon For mobile
Up arrow icon