简体   繁体   English

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

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

I need to open a pdf file with form texbox included on a form. 我需要打开一个包含表单中包含的texbox表单的pdf文件。 I use this code to open the pdf file. 我使用此代码打开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();`

which is working. 这正在工作。 I need to add a textbox above the pdf once the pdf file showed. pdf文件显示后,我需要在pdf上方添加一个文本框。 is this possible? 这可能吗? please advice. 请指教。 thanks 谢谢

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

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

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