Creating radio button through abcpdf

半世苍凉 提交于 2019-12-24 02:56:21

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/8216198/creating-radio-button-through-abcpdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!