【问题标题】:Is it possible import data into text box when user select word on pdf file? (ASP.NET , VB.NET)当用户在 pdf 文件上选择单词时,是否可以将数据导入文本框? (ASP.NET,VB.NET)
【发布时间】:2023-04-05 18:27:01
【问题描述】:

我有一个显示.PDF 文件的 ASP.NET 网络表单(使用 VB.NET)。当用户在 pdf 文件上选择一个单词时,是否可以将数据输入到文本框中?我们可以使用文本框中的数据导出 pdf 文件,但我不知道相反的方式。

我像这样在我的网络表单上调用了我的 pdf 文件。

Dim embed As String = "<object data=""{0}"" type=""application/pdf"" width=""2000px"" height=""1000px"">"
embed += "If you are unable to view file, you can download from <a href = ""{0}"">here</a>"
embed += " or download <a target = ""_blank"" href = ""http://get.adobe.com/reader/"">Adobe PDF 
         Reader</a> to view the file."
embed += "</object>"
ltEmbed.Text = String.Format(embed, ResolveUrl("~/uploads/" + pdf_name))

希望有人可以指导我,对不起我的英语。

【问题讨论】:

  • @KJ Tz 你的详细信息。现在我可以向其他人解释问题所在了。
  • @KJ 再次感谢。这真的很容易理解。

标签: asp.net vb.net pdf


【解决方案1】:

没有。想一想。 PDF 嵌入在您的网络表单中,但实际上提供其内容的是 AcrobatReader 而不是您的网络表单

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-12-14
    • 1970-01-01
    • 2012-06-04
    • 1970-01-01
    • 1970-01-01
    • 2011-12-06
    • 1970-01-01
    相关资源
    最近更新 更多