简体   繁体   English

表单字段未使用iTextSharp呈现,无法从aspx页面转换为pdf

[英]Form fields not rendering using iTextSharp for conversion to pdf from aspx page

 <asp:CheckBox ID="chkBasic" Visible="true" 
 Checked='<%# Eval("BasicProgram")%>' runat="server" />

In the above aspx page, I have form fields such as check boxes. 在上面的aspx页面中,我具有诸如复选框之类的表单字段。 I am using iTextsharp and XML Worker to convert the aspx page HTML content to PDF. 我正在使用iTextsharp和XML Worker将aspx页面的HTML内容转换为PDF。 However the check box is not visible in the pdf file generated. 但是,该复选框在生成的pdf文件中不可见。 Any suggestions please. 有任何建议请。

I have chosen to use images instead of checkboxes. 我选择使用图像而不是复选框。 I am using two images one for checked and other for unchecked and showing them based on condition. 我正在使用两个图像,一个用于检查,另一个用于未检查,并根据情况显示它们。

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

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