繁体   English   中英

在ASP.NET MVC上使用表单文本框打开PDF文件

[英]Open PDF File with form textbox on ASP.NET MVC

我需要打开一个包含表单中包含的texbox表单的pdf文件。 我使用此代码打开pdf文件。

           `StreamReader streamReader = new StreamReader(GridView1.Rows[index].Cells[1].Text);

            Stream stream = streamReader.BaseStream;

            BinaryReader binaryReader = new BinaryReader(stream);
            byte[] sendbyteArray =binaryReader.ReadBytes(Convert.ToInt32(binaryReader.BaseStream.Length));
                Response.ContentType = "application/pdf";
                Response.AddHeader("Content-Type", "application/pdf");
                Response.AddHeader("Content-Disposition", "inline");
                Response.BinaryWrite(sendbyteArray);
                Response.End();`

这正在工作。 pdf文件显示后,我需要在pdf上方添加一个文本框。 这可能吗? 请指教。 谢谢

据我所知这是不可能的,但是如果您共享该文本框的目的是什么,我们可以考虑其他解决方案。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM