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 Artur Zinatullin <ar...@webmedia.ee> on 2009/04/17 14:42:07 UTC

fo:table, keep-with-*, placing of page breaks

Hello!

I have a problem with fo:table. FOP version 0.95

I am presenting certain objects in line rows, so there is two lines per 
object.
First line has some data on it, the other one is blank space for uset to 
write the nothes regarding given object like
<fo:table-cell number-columns-spanned="12" ...>

<fo:block>Notes</fo:block>

</fo:table-cell>

My intention is to keep the two rows always together on one page.

So, I put, naturally, keep-with-next="always" on first fo:table-row or 
keep-with-previous="always"on the second.

That does the trick, but the pagination starts acting wierd.

It breaks page_before_the_last after just a fiew rows so, the last page is 
always filled top to bottom.

That doesn't look good at all.

I'd apreciate some workaround.

I've done some googling and some research on fop bugzilla.

https://issues.apache.org/bugzilla/show_bug.cgi?id=44920 and 
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-section made 
me no happy.

Surrounding my pairs into blind table cells made no good either.

Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: table, keep-with-*, placing of page breaks

Posted by Artur Zinatullin <ar...@webmedia.ee>.
 AE> Have you tried putting number-rows-spanned="2" on the table-cell as
 AE> well? That should avoid the need for the keep altogether, I think.
It works and it doesn't :(
Depending on the first row content (it has nested table in it) hanging cell
does bind the second row to the first or it does not. Im reading my debug
output to understand, what's the difference.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: table, keep-with-*, placing of page breaks

Posted by Artur Zinatullin <ar...@webmedia.ee>.
 AE> Have you tried putting number-rows-spanned="2" on the table-cell as
 AE> well? That should avoid the need for the keep altogether, I think.
Well, no, a cannot achieve no stable results with a colmin spanned into two 
rows, regardless of is it visible or has zero width :(


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: table, keep-with-*, placing of page breaks

Posted by Artur Zinatullin <ar...@webmedia.ee>.
 AZ>> I have a problem with fo:table. FOP version 0.95
 AZ>> I am presenting certain objects in line rows, so there is two lines 
per object.
 AZ>> First line has some data on it, the other one is blank space for uset
 AZ>> to write the nothes regarding given object like
 AZ>> <fo:table-cell number-columns-spanned="12" ...>
 AZ>> <fo:block>Notes</fo:block>
 AZ>> </fo:table-cell>
 AZ>>
 AZ>> My intention is to keep the two rows always together on one page.
 AZ>> So, I put, naturally, keep-with-next="always" on first fo:table-row or
 AZ>> keep-with-previous="always"on the second.
 AZ>>
 AZ>> That does the trick, but the pagination starts acting wierd.
 AZ>> It breaks page_before_the_last after just a fiew rows so, the last 
page
 AZ>> is always filled top to bottom. That doesn't look good at all.
 AZ>>
 AZ>> I'd apreciate some workaround.
 AE> Have you tried putting number-rows-spanned="2" on the table-cell as 
well?
 AE> That should avoid the need for the keep altogether, I think.
It has, indeed, solved the problem, when I added a zero-width column,
wich hangs into second row. It feels a bit smelly hack, bu it works :)
Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: table, keep-with-*, placing of page breaks

Posted by "Amick, Eric" <Er...@mail.house.gov>.
Have you tried putting number-rows-spanned="2" on the table-cell as
well? That should avoid the need for the keep altogether, I think.


Eric Amick
Legislative Computer Systems
Office of the Clerk

-----Original Message-----
From: Artur Zinatullin [mailto:artur@webmedia.ee] 
Sent: Friday, April 17, 2009 8:42
To: fop-users@xmlgraphics.apache.org
Subject: fo:table, keep-with-*, placing of page breaks

Hello!

I have a problem with fo:table. FOP version 0.95

I am presenting certain objects in line rows, so there is two lines per
object.
First line has some data on it, the other one is blank space for uset to
write the nothes regarding given object like <fo:table-cell
number-columns-spanned="12" ...>

<fo:block>Notes</fo:block>

</fo:table-cell>

My intention is to keep the two rows always together on one page.

So, I put, naturally, keep-with-next="always" on first fo:table-row or
keep-with-previous="always"on the second.

That does the trick, but the pagination starts acting wierd.

It breaks page_before_the_last after just a fiew rows so, the last page
is always filled top to bottom.

That doesn't look good at all.

I'd apreciate some workaround.

I've done some googling and some research on fop bugzilla.

https://issues.apache.org/bugzilla/show_bug.cgi?id=44920 and
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-section
made me no happy.

Surrounding my pairs into blind table cells made no good either.

Thanks!


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org