selectpdf clainthtmlString方法截断PDF
我正在尝试在我的.NET Web表单项目中使用SelectPDF库来从HTML字符串生成PDF并将所有内容写入流。
问题是,当我尝试生成该PDF时,我会得到截断的文件。
当我将HTML字符串放在那里时,它可以在官方演示中正常工作: https://selectpdf.com ,
但它在其他演示中不起作用: https://selectpdf.com/htpdf.com/html---html--- to-pdf/demo/convert-html-code to-pdf.aspx
有人对如何修复有任何想法?
I'm trying to use SelectPDF library in my .NET Web Forms project to generate PDF from the HTML string and write everything to the Stream.
The problem is that when I'm trying to generate that PDF I get the truncated file.
It works fine on the official demo when I put my HTML string there:
https://selectpdf.com
But it doesn't work in other demo:
https://selectpdf.com/html-to-pdf/demo/convert-html-code-to-pdf.aspx
Do someone has any ideas on how that would be fixed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用的是selectpdf 社区版,则在免费版本中有5页的限制( selectpdf社区版)
有商业版本但是他们不是自由的。
If you are using SelectPdf community edition, there is a limitation of 5 pages in the free version (SelectPdf community edition )
There are commercial versions of SelectPdf but they are not free.