问题描述
您好我使用wkhtmltopdf exe文件生成了一个pdf文件 并且它已成功创建,但我的客户端请求应该创建pdf为只读(复制和粘贴权限应该是限制)。我没有得到适当的解决方案,任何帮助我们而不是
使用html来映像和图像到pdf。我可以将pdf严格模式限制为写入权限吗?
这是我的代码:
  ; var generator = new PdfGenerator.HtmlToPdf();
$
var myHtml ='< html>< head>< / head>< body>< p> Lorem lipsum klfdksfjsdjf< / p>< / body>< / html>';
var pdfByte = generator.GeneratePdf(guideline);
File.WriteAllBytes( FileName,pdfByte);
紧急,请帮助我们解决问题。
Ramesh Tigapuram
Hi I have generated a pdf file using wkhtmltopdf exe file and it is successfully created, but my client request is should created pdf a read - only (Copy and paste permissions should be restrict ). I did not get proper solution,and any help us instead of using html to image and image to pdf. Can I restrict the pdf strict mode to write permission?
Here is my code:
var generator = new PdfGenerator.HtmlToPdf();
var myHtml = '<html><head></head><body><p> Lorem lipsum klfdksfjsdjf </p></body></html>';
var pdfByte = generator.GeneratePdf(guideline);
File.WriteAllBytes(FileName, pdfByte);
It is urgent, please help us to solve the solution.
thanks & Regards
Ramesh Tigapuram
这篇关于生成只读pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!