我想禁用选择,就像图像一样,即使包含文本。
我知道 PDF 包含图层,但我找不到删除文本图层的位置。
谢谢。
var htmlToPdf = new NReco.PdfGenerator.HtmlToPdfConverter();
htmlToPdf.Size = NReco.PdfGenerator.PageSize.Letter;
htmlToPdf.Margins = new NReco.PdfGenerator.PageMargins()
{
Bottom = 0,
Top = 0,
Left = 0,
Right = 0
};
string ID = "Test";
Response.ContentType = "application/pdf";
Response.AppendHeader("content-disposition", string.Format("inline;FileName=\"{0}.pdf\"", ID));
htmlToPdf.GeneratePdfFromFile("Page.aspx", null, Response.OutputStream);
Response.End();