简体   繁体   English

iTextSharp + 如何通过 vb.net 以编程方式调用表单按钮字段单击事件

[英]iTextSharp + How to invoke the form button field click event programmatically though vb.net

I've have a editable pdf with button fields in it.我有一个带有按钮字段的可编辑 pdf。 I'm processing this editable pdf in my vb.net application using iTextsharp.我正在使用 iTextsharp 在我的 vb.net 应用程序中处理这个可编辑的 pdf。 I want to know, how to programmatically invoke the button field inside the pdf.我想知道,如何以编程方式调用 pdf 中的按钮字段。 Though, I'm using iTextSharp dll, I could not find any helpful resource to invoke and handle the button events.虽然,我使用的是 iTextSharp dll,但我找不到任何有用的资源来调用和处理按钮事件。 Please guide me how to invoke the button events of pdf, programmatically using vb.net.请指导我如何使用 vb.net 以编程方式调用 pdf 的按钮事件。

iText[Sharp] doesn't execute the Javascript within a PDF. iText[Sharp] 不会在 PDF 中执行Javascript。 It can add/remove/change the scripts present, but won't run them.它可以添加/删除/更改存在的脚本,但不会运行它们。

For that you need a PDF viewer from Adobe, Appligent, or Foxit (alphabetical order, though Adobe's will be the best at running script, it also puts security restraints on what you can or cannot do).为此,您需要一个来自 Adobe、Appligent 或 Foxit 的 PDF 查看器(按字母顺序排列,虽然 Adobe 最擅长运行脚本,但它也对您可以做什么或不可以做什么设置了安全限制)。

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

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