1

我必须在通过视觉力 pdf 生成 pdf 时删除分页符,但是无论我尝试使用 csspage-break-inside: avoid;等都page-break-before: avoid;不起作用。

我想删除所有分页符,使其成为连续的 pdf 页面,但我无法弄清楚。

4

2 回答 2

0

This css page-break-inside: avoid;, page-break-before: avoid; works only when you need to iterate on components. If you are using inline pre-built css into page then you have to check following css related to body tag. like this:

body { box-sizing: border-box; height: 11in; margin: 0 auto; overflow: hidden; padding: 0.5in; width: 8.5in; }

Here I am using width and height with auto value.

于 2015-03-25T07:43:41.447 回答
0

不要对 APEX 组件使用 CSS 样式,而是尝试使用 div 标签围绕您希望不被拆分的 APEX 组件,使用 style="page-break-inside:avoid;"

//div style="width:100%;page-break-inside:avoid;">APEX ///div>

于 2013-06-24T22:34:58.443 回答