[xep-support] Re: Unexplained page break

From: Kevin Brown <kevin_at_ADDRESS_REMOVED>
Date: Thu Jan 05 2017 - 22:01:01 PST

Also note your SVG has the attribute "viewbox" which is invalid, the
attribute is "viewBox"

 

 

From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of
Kevin Brown
Sent: Thursday, January 05, 2017 9:59 PM
To: 'Darren Munt' <darrenm@ardex.com.au>; 'RenderX Community Support List'
<xep-support@renderx.com>
Subject: [xep-support] Re: Unexplained page break

 

Don't do this:

 

<fo:block space-after="0.4cm"/>

 

 

Do this:

 

<fo:block space-after="0.4cm"><fo:leader/></fo:block>

 

 

Or better, don't do that at all and put the proper space on the preceding
block or the following block.

The empty, collapsing block breaks keeps.

 

You have that empty block at the end of all the other sections except the
first. Replace it with the structure I suggest and you get the answer you
expect.

 

From: Darren Munt [mailto:darrenm@ardex.com.au]
Sent: Thursday, January 05, 2017 9:12 PM
To: kevin@renderx.com <mailto:kevin@renderx.com> ; RenderX Community Support
List <xep-support@renderx.com <mailto:xep-support@renderx.com> >
Subject: RE: [xep-support] Re: Unexplained page break

 

And here is my output.

 

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
<mailto: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:53:35 2017

This archive was generated by hypermail 2.1.8 : Thu Jan 05 2017 - 21:53:40 PST