通过 abcpdf 创建单选按钮
我正在尝试向通过 abcpdf 渲染的 pdf 页面添加一个单选按钮。我正在查看 abcpdf 的文档,它指定我使用以下代码
Doc theDoc = new Doc();
InteractiveForm form = new InteractiveForm (theDoc);
form.AddRadioButtonGroup(new string[2]{"40 610 80 650", "40 660 80 700"}, "RadioGroupField", 0);
问题是我不知道 InteractiveForm 正在引用哪个程序集,因此编译器将在该行上出错。如果我只是将一个单选按钮添加到我正在渲染的 html 页面中,它将出现在 pdf 中,但无法与之交互。有谁知道我可以用什么来让 InteractiveForm 工作,或者其他一些解决方法?提前致谢。
I'm trying to add a radio button to a pdf page I'm rendering through abcpdf. I'm looking at the documentation for abcpdf and it specifies that I use the following code
Doc theDoc = new Doc();
InteractiveForm form = new InteractiveForm (theDoc);
form.AddRadioButtonGroup(new string[2]{"40 610 80 650", "40 660 80 700"}, "RadioGroupField", 0);
The problem is that I don't know what assembly InteractiveForm is referencing so the compiler will error on that line. If I simply add a radiobutton to the html page I'm rendering, it will appear in the pdf but will not be able to be interacted with. Does anyone know what I can use to get InteractiveForm to work, or some other workaround? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您下载并安装完整的 .Net 包时,示例项目之一称为
Annotations
。该项目中有一个名为Annotations.cs
的文件,其中包含您要查找的类。When you download and install the full .Net package one of the example projects is called
Annotations
. Within this project is a file calledAnnotations.cs
that has the classes that you're looking for.