【发布时间】:2017-03-21 21:56:50
【问题描述】:
我在 iframe 中有一个 pdf 文件,我想检查 pdf 文件以了解字段的名称,以允许用户从文本框中填写此字段。
这是我的 iframe 和文本框,例如:
<iframe id="frmDoc" runat="server" style="width:800px;height:1200px;"></iframe>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
这是在 iframe 中显示 pdf 的代码:
protected void Page_Load(object sender, EventArgs e)
{
frmDoc.Attributes["src"] = "~/admin/minufia/6 نموذج إحصائي رقم.pdf";
}
请帮我解决这个问题。
【问题讨论】:
-
在本例中,您的文本框不在 iframe 中。
-
在对您澄清的答案的评论中:“我已经有 iTextSharp,但我不知道如何使用它来搜索我的 pdf 文件中的输入字段” .如果您使用 iTextSharp 5.x,How do I enumerate all the fields in a PDF file in ITextSharp 可能会对您有所帮助。