After converting multi-page HTML to PDF, it always ends up as only one page. How can automatic pagination be implemented during the conversion? When we test it normally using Ctrl+P to print, it comes out as 2 pages, but after converting to a PDF file using Spire.PDF, it always ends up as only one page with the content all squeezed together.
多页html转换PDF后始终只有一页,如何实现转换过程中自动分页? 我们正常测试用Ctrl+P 打印出来都是2页,但是通过Spire.PDF转换为PDF文件后始终只有一页设置内容都挤在一起了
////将HTML字符串转换为PDF
HtmlConverter.Convert(invoiceContent, pdfFilePath,true, 100000, new Size(595, 842), new PdfMargins(20), LoadHtmlType.SourceCode);