通过abcpdf创建单选按钮 [英] Creating radio button through abcpdf
问题描述
我正在尝试通过abcpdf渲染的pdf页面添加单选按钮.我正在查看abcpdf的文档,它指定我使用以下代码
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);
问题是我不知道InteractiveForm引用的是哪个程序集,因此编译器将在该行上出错.如果我只是在要渲染的html页面中添加一个单选按钮,它将显示在pdf中,但无法与之交互.有谁知道我可以用来使InteractiveForm正常工作的方法,或其他解决方法?预先感谢.
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.
推荐答案
下载并安装完整的.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 called Annotations.cs
that has the classes that you're looking for.
这篇关于通过abcpdf创建单选按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!