jsPDF分页符 [英] jsPDF page break
本文介绍了jsPDF分页符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的页面tab1和tab2中有2个div.
I have 2 divs in my page tab1 and tab2.
我想将两个div导出为1个PDF文件,其中tab1为第一页,而tab2从下一页开始.
I would like to export both divs in 1 PDF file with tab1 as the 1st page and tab2 starting from the following page.
当前第二个div在导出的文件中似乎已损坏,因此我希望该div从下一页出现.
Currently the 2nd div appears broken in the exported file hence I would like to have the div appear from the next page.
任何帮助将不胜感激.
推荐答案
只需在要创建新页面的位置使用<!--ADD_PAGE-->
(带有斜角<>大括号的ADD_PAGE).
可以.
Just use <!--ADD_PAGE-->
(ADD_PAGE with in commented angular <> braces) from where you want new page.
It works.
这篇关于jsPDF分页符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文