You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Matthew Wilson (JIRA)" <ji...@apache.org> on 2016/02/26 19:11:18 UTC
[jira] [Created] (FOP-2582) keep-together.page= doesn't
appear to have an effect
Matthew Wilson created FOP-2582:
-----------------------------------
Summary: keep-together.page=<integer> doesn't appear to have an effect
Key: FOP-2582
URL: https://issues.apache.org/jira/browse/FOP-2582
Project: FOP
Issue Type: Bug
Components: fo/block
Affects Versions: 2.1
Environment: Java 64-bit 1.8.0_66 on MacOS X 10.11.3
Reporter: Matthew Wilson
When trying to keep the contents of a block together on one page, I create a block with:
{{<fo:block keep-together.within-page="100"> ... </fo:block>}}
This does not seem to have any effect; it is as if the keep-together parameter is still set to "auto".
*To reproduce:*
Process the attached file, keep-bug.xml. E.g. "fop keep-bug.xml keep-bug.pdf"
*Actual result:*
"Section 2" of the example content does not start on a new page; instead a page break appears in the middle of section 2, violating the keep-together attribute.
*Expected result:*
A page break should have been inserted between "section 1" and "section 2" so that "section 2" stays together on a page. This expected result can be demonstrated by changing the keep-together attribute to "always", which demonstrates that it is possible to fit "section 2" on a single page and therefore the integer keep-together constraint should do so.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)