docusign 在将 html 转换为 pdf 时将 html 内容拆分为两页

docusign splits up the html content between two pages while converting html to pdf

向 DocuSign 发送 html 文档时,部分内容显示在两页中间

Example Image

我希望它在下一页,而不是在分页符处拆分。

我该怎么做?

DocuSign HTML 支持 HTML 正文中的分页符。

要创建分页符,请在 HTML 中包含以下内容:

<div style="page-break-before:always">&nbsp;</div>

诀窍在于,您希望位于新页面上的块元素(<div>)本身必须包含字符内容。

<!-- the following has no content and will NOT cause a page break -->
<div style="page-break-before:always"></div>