pdf生成中的单选按钮显示问题

时间:2018-05-31 13:08:44

标签: c# wkhtmltopdf rotativa

当我使用wkhtmltopdf生成pdf时,pdf生成

单选按钮问题:

在我的Html代码下方,带有单选按钮:

<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other  

在我的pdf生成代码下面:

var report = new ActionAsPdf("GenerateDetailPdf")
{
    FileName = "LoanDetail_" + loanId + ".pdf",
    CustomSwitches = "--print-media-type --disable-smart-shrinking   --footer-center \"Page: [page] of [toPage]\"",
    PageHeight = 300,
    PageWidth = 300,
    PageMargins = new Margins(10, 0, 10, 0)
};

0 个答案:

没有答案