You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Lo...@log-net.com on 2008/03/21 16:33:42 UTC
unwanted page breaks in 0.94
I'm almost finished migrating from 0.20.3 and I just found a strange issue
with tables and page breaking. I noticed that in seemingly random places,
previously unbroken tables will page break. For example:
0.20.3:
page1
row1
row2
row3
row4
row5
0.94:
page1
row1
row2
page2
row3
row4
row5
There is no page break requested, no overflow as far as I can see. I did
the Xalan check and the fo has no page breaks between the rows:
<fo:table-row display-align="auto" space-before.optimum="0.2mm"
space-after.optimum="0.2mm">
cells snipped
</fo:table-row>
<fo:table-row display-align="auto" space-before.optimum="0.2mm"
space-after.optimum="0.2mm">
cells snipped
</fo:table-row>
Am I missing something?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOG-NET, Inc.
The Logistics Network Management System
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230 Half Mile Road
Third Floor
Red Bank, NJ 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIDENTIAL & PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content,
the information contained herein is privileged and confidential
information/work product. The communication is intended for the use of the
individual or entity named above. If the reader of this transmission is
not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please
notify the sender immediately by telephone (732-758-6800) or by electronic
mail (postmaster@LOG-NET.com), and destroy any copies, electronic, paper
or otherwise, which you may have of this communication. Thank you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: unwanted page breaks in 0.94
Posted by Lo...@log-net.com.
Vincent:
Thanks. I'm going to try to make the change next week.
BTW, I think I found a workaround. I added the following line to every
table row:
<xsl:attribute name="keep-together">always</xsl:attribute>
I have had some good initial success, but it is just a workaround.
Thanks again,
-Lou
Vincent Hennebert <vi...@anyware-tech.com> wrote on 03/28/2008
12:28:26 PM:
> Hi Louis,
>
> Louis Masters wrote:
> > Vincent:
> >
> > 0.95Beta does fix this issue, however, I still have some 1.3 compiles
so
> > moving to 0.95 is not an option. Is there any way to work around the
> > issue in 0.94?
>
> The issue was showing up when a table contained row-spanning cells, but
> I don’t remember the exact situation and the code has changed quite
> a lot since then.
> If reworking the content is an option for you you can try to remove some
> cells that span several rows.
>
>
> > Or, can you point me to the changelist so I can make the change into
0.94?
>
> The fix is actually very simple and may be the best option. Just see
> here:
> http://svn.apache.
>
org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.
> java?r1=604965&r2=605195&diff_format=h
>
> You just have to add this line somewhere in the setup method. If you
> have trouble applying the change, just yell.
>
>
> HTH,
> Vincent
>
>
> --
> Vincent Hennebert Anyware Technologies
> http://people.apache.org/~vhennebert http://www.anyware-tech.com
> Apache FOP Committer FOP Development/Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
Re: unwanted page breaks in 0.94
Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Hi Louis,
Louis Masters wrote:
> Vincent:
>
> 0.95Beta does fix this issue, however, I still have some 1.3 compiles so
> moving to 0.95 is not an option. Is there any way to work around the
> issue in 0.94?
The issue was showing up when a table contained row-spanning cells, but
I don’t remember the exact situation and the code has changed quite
a lot since then.
If reworking the content is an option for you you can try to remove some
cells that span several rows.
> Or, can you point me to the changelist so I can make the change into 0.94?
The fix is actually very simple and may be the best option. Just see
here:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/table/TableStepper.java?r1=604965&r2=605195&diff_format=h
You just have to add this line somewhere in the setup method. If you
have trouble applying the change, just yell.
HTH,
Vincent
--
Vincent Hennebert Anyware Technologies
http://people.apache.org/~vhennebert http://www.anyware-tech.com
Apache FOP Committer FOP Development/Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: unwanted page breaks in 0.94
Posted by Lo...@log-net.com.
Vincent:
0.95Beta does fix this issue, however, I still have some 1.3 compiles so
moving to 0.95 is not an option. Is there any way to work around the
issue in 0.94?
Or, can you point me to the changelist so I can make the change into 0.94?
Thanks,
Lou
Vincent Hennebert <vi...@anyware-tech.com>
03/25/2008 07:37 AM
Please respond to
fop-users@xmlgraphics.apache.org
To
fop-users@xmlgraphics.apache.org
cc
Subject
Re: unwanted page breaks in 0.94
Hi Louis,
Andreas Delmelle wrote:
> On Mar 24, 2008, at 14:41, Louis Masters wrote:
>>
>> Thanks for the feedback. The smallest I can get the fo and still
>> produce the behavior is a file ~360K -- too big?
>
> Good enough for me personally. You can send it to me off-list if you
> don't want to bother all subscribers.
Your problem rings a bell in my head. It might be due to a bug that
I fixed in December 07: row-spanning cells in a table could lead to
erratic page breaks. If this is this issue then it shouldn’t show up in
the Trunk or the soon available 0.95beta version. If you can try with
those versions this is great. Otherwise feel free to send the file to
Andreas and also to me.
Thanks,
Vincent
--
Vincent Hennebert Anyware Technologies
http://people.apache.org/~vhennebert http://www.anyware-tech.com
Apache FOP Committer FOP Development/Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: unwanted page breaks in 0.94
Posted by Lo...@log-net.com.
Thanks for the reply. I'm just catching up on email swith Andreas and it
looks like this is fixed in 0.95. I think this is on the verge of release
so as soon as it is available I'll pull it down and test it.
-Lou
Vincent Hennebert <vi...@anyware-tech.com> wrote on 03/25/2008
07:38:41 AM:
> Hi Louis,
>
> Andreas Delmelle wrote:
> > On Mar 24, 2008, at 14:41, Louis Masters wrote:
> >>
> >> Thanks for the feedback. The smallest I can get the fo and still
> >> produce the behavior is a file ~360K -- too big?
> >
> > Good enough for me personally. You can send it to me off-list if you
> > don't want to bother all subscribers.
>
> Your problem rings a bell in my head. It might be due to a bug that
> I fixed in December 07: row-spanning cells in a table could lead to
> erratic page breaks. If this is this issue then it shouldn’t show up in
> the Trunk or the soon available 0.95beta version. If you can try with
> those versions this is great. Otherwise feel free to send the file to
> Andreas and also to me.
>
> Thanks,
> Vincent
>
>
> --
> Vincent Hennebert Anyware Technologies
> http://people.apache.org/~vhennebert http://www.anyware-tech.com
> Apache FOP Committer FOP Development/Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
Re: unwanted page breaks in 0.94
Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Hi Louis,
Andreas Delmelle wrote:
> On Mar 24, 2008, at 14:41, Louis Masters wrote:
>>
>> Thanks for the feedback. The smallest I can get the fo and still
>> produce the behavior is a file ~360K -- too big?
>
> Good enough for me personally. You can send it to me off-list if you
> don't want to bother all subscribers.
Your problem rings a bell in my head. It might be due to a bug that
I fixed in December 07: row-spanning cells in a table could lead to
erratic page breaks. If this is this issue then it shouldn’t show up in
the Trunk or the soon available 0.95beta version. If you can try with
those versions this is great. Otherwise feel free to send the file to
Andreas and also to me.
Thanks,
Vincent
--
Vincent Hennebert Anyware Technologies
http://people.apache.org/~vhennebert http://www.anyware-tech.com
Apache FOP Committer FOP Development/Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: unwanted page breaks in 0.94
Posted by Andreas Delmelle <an...@telenet.be>.
On Mar 24, 2008, at 14:41, Louis.Masters@log-net.com wrote:
>
> Thanks for the feedback. The smallest I can get the fo and still
> produce the behavior is a file ~360K -- too big?
Good enough for me personally. You can send it to me off-list if you
don't want to bother all subscribers.
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: unwanted page breaks in 0.94
Posted by Lo...@log-net.com.
Thanks for the feedback. The smallest I can get the fo and still produce
the behavior is a file ~360K -- too big?
I'll check around in the collapsing border model to see if anything pops
out.
-Lou
Andreas Delmelle <an...@telenet.be>
03/23/2008 06:03 AM
Please respond to
fop-users@xmlgraphics.apache.org
To
fop-users@xmlgraphics.apache.org
cc
Subject
Re: unwanted page breaks in 0.94
On Mar 21, 2008, at 16:33, Louis.Masters@log-net.com wrote:
Hi Lou
>
> I'm almost finished migrating from 0.20.3 and I just found a
> strange issue with tables and page breaking. I noticed that in
> seemingly random places, previously unbroken tables will page
> break. For example:
> <snip />
>
> There is no page break requested, no overflow as far as I can see.
> I did the Xalan check and the fo has no page breaks between the rows:
>
> <fo:table-row display-align="auto" space-before.optimum="0.2mm"
> space-after.optimum="0.2mm">
> cells snipped
> </fo:table-row>
> <fo:table-row display-align="auto" space-before.optimum="0.2mm"
> space-after.optimum="0.2mm">
> cells snipped
> </fo:table-row>
>
> Am I missing something?
Difficult to say. The biggest change to 0.94 was the addition of
support for the collapsing border model. Maybe the source of the
problem is located there somehow?
Can you post a small, yet complete FO that reproduces the issue with
0.94? Or can you try out the 0.95 branch and see if the issue also
exists there? A lot of changes have been committed to the table-
handling code, so chances are that this is also resolved. If not,
we'd still have to see the entire FO first to be able to say more...
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: unwanted page breaks in 0.94
Posted by Andreas Delmelle <an...@telenet.be>.
On Mar 21, 2008, at 16:33, Louis.Masters@log-net.com wrote:
Hi Lou
>
> I'm almost finished migrating from 0.20.3 and I just found a
> strange issue with tables and page breaking. I noticed that in
> seemingly random places, previously unbroken tables will page
> break. For example:
> <snip />
>
> There is no page break requested, no overflow as far as I can see.
> I did the Xalan check and the fo has no page breaks between the rows:
>
> <fo:table-row display-align="auto" space-before.optimum="0.2mm"
> space-after.optimum="0.2mm">
> cells snipped
> </fo:table-row>
> <fo:table-row display-align="auto" space-before.optimum="0.2mm"
> space-after.optimum="0.2mm">
> cells snipped
> </fo:table-row>
>
> Am I missing something?
Difficult to say. The biggest change to 0.94 was the addition of
support for the collapsing border model. Maybe the source of the
problem is located there somehow?
Can you post a small, yet complete FO that reproduces the issue with
0.94? Or can you try out the 0.95 branch and see if the issue also
exists there? A lot of changes have been committed to the table-
handling code, so chances are that this is also resolved. If not,
we'd still have to see the entire FO first to be able to say more...
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org