[xep-support] Re: Unexplained page break

Kevin Brown kevin at renderx.com
Thu Jan 5 22:01:01 PST 2017


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

 

 

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

 

And here is my output.

 

From: Xep-support [mailto:xep-support-bounces at renderx.com] On Behalf Of
Kevin Brown
Sent: Friday, 6 January 2017 3:57 PM
To: 'RenderX Community Support List' <xep-support at renderx.com
<mailto:xep-support at 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 at renderx.com] On Behalf Of
Darren Munt
Sent: Thursday, January 05, 2017 7:29 PM
To: xep-support at renderx.com <mailto:xep-support at 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.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20170105/d5c440c7/attachment-0001.html>


More information about the Xep-support mailing list