Hello,
I want to minimize used storage in the server, so I try this code to return pdf stream immediately
Quote:
Response.Clear();
Response.AddHeader("Content-Type", "binary/octet-stream");
Response.AddHeader("Content-Disposition",
"attachment; filename=ConversionResult.pdf;");
var x = HtmlToPdf.ConvertUrl("URL", System.Web.HttpContext.Current.Response.OutputStream);
Response.End();
so is there a better way to do this?
and can I do it without return "HtmlToPdfResult" in x variable ?
Thanks