通过 abcpdf 创建单选按钮

发布于 2024-12-17 10:07:15 字数 424 浏览 3 评论 0原文

我正在尝试向通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

肤浅与狂妄 2024-12-24 10:07:15

当您下载并安装完整的 .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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文