[xep-support] Re: Unexplained page break

From: Darren Munt <darrenm_at_ADDRESS_REMOVED>
Date: Thu Jan 05 2017 - 21:11:52 PST

Wasn't sure if you wanted me to send the fo to this address, otherwise I would have :)

But the same FO layout, only with different content, usually works. It only happens in this one example. It's a production system which has been working fine for a year now.

Anyway, I'll attach and see how you go, because it has me stumped.

From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Kevin Brown
Sent: Friday, 6 January 2017 3:57 PM
To: 'RenderX Community Support List' <xep-support@renderx.com>
Subject: [xep-support] Re: Unexplained page break

Because you can try this:

                        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
                                    xmlns:rx="http://www.renderx.com/XSL/Extensions">
                                    <fo:layout-master-set>
                                                <fo:simple-page-master page-width="4in" page-height="7in" master-name="first">
                                                            <fo:region-body margin-left="0.5in" margin-right="0.5in"/>
                                                </fo:simple-page-master>
                                    </fo:layout-master-set>
                                    <fo:page-sequence master-reference="first">
                                                <fo:flow flow-name="xsl-region-body">
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block space-before="12pt" keep-together.within-page="always">I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. I am some text. </fo:block>
                                                </fo:flow>
                                    </fo:page-sequence>
                        </fo:root>

And get the totally expected result. So your description possible does not match what you actually have.

Kevin

From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Darren Munt
Sent: Thursday, January 05, 2017 7:29 PM
To: xep-support@renderx.com<mailto:xep-support@renderx.com>
Subject: [xep-support] Unexplained page break

I have a document which is throwing a page break, and I was hoping you could help me understand why.

The document is very simple, it has one page sequence with a single region-body flow. This contains a number of blocks, each has the keep-together.within-page="always" attribute. I need each block to be kept intact, with page breaks between as necessary.

For some reason, I am getting a page break after the first block, with the remaining blocks all appearing on the next page. If I delete one of the later blocks, I get the expected behaviour. It's obviously something to do with the keeps but I don't understand why it would throw a break after the first block. If I remove the keep from the last block, then it flows as expected, but some of the content from the last block appears on the next page.

I can provide FO to reproduce the problem if required.

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html

Received on Thu Jan 5 21:05:52 2017

This archive was generated by hypermail 2.1.8 : Thu Jan 05 2017 - 21:06:10 PST