我想将用户填充的 MVC3视图转换为pdf 。当用户单击按钮时,应在浏览器的新选项卡上打开PDF而不是查看。该视图具有内部CSS和复选框,以便用户可以检查pdf中的复选框,然后可以打印。
以下是以pdf到行动结果
打开的视图@using Project.Models
@model Student
<!DOCTYPE html>
<html>
<head>
<style>
body
{
background-color:#d0e4fe;
}
/*and other CSS*/
</style>
<script>
//script to check /uncheck checkbox
</script>
</head>
<body>
/* Information of Student through model */
CheckList
<input type="checkbox" name="card1" value="Passport">Passoprt
<input type="checkbox" name="card2" value="Voter">Voter Card
<input type="checkbox" name="card3" value="ID">College id
</html>
我正在使用itextsharp库,我想避免像razorpdf这样的其他软件包。
如何实现?
答案 0 :(得分:0)
您可以将复选框标签的输入字符串发送为“u0261”,这是解除问题所示的unicode