response.binarywrite

时间:2014-02-07 17:06:34

标签: c# .net

我正在填写pdf并使用response.binarywrite。我把它放在页面中 - 问题是当我把它放在页面中时,它摆脱了该页面中存在的菜单和其他图像;并用pdf替换它们。如何将菜单保留在页面中并添加pdf?

pdfStamper.FormFlattening = false;

pdfStamper.Close();
pdfReader.Close();

Response.AddHeader("Content-Disposition", "inline; filename=Appraisal.pdf");
Response.ContentType = "application/pdf";

Response.BinaryWrite(output.ToArray());
Response.Flush();
Response.End();

0 个答案:

没有答案