xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georg Datterl <georg.datt...@geneon.de>
Subject AW: Keeping fo:table-header and fo:table-body together within a page
Date Wed, 07 Jul 2010 09:58:17 GMT
Hi Sushanth.

First question: Are you definitely sure there are no body lines on the first page? You don't
have empty lines (for spacing or because of missing data) at the beginning of your table?
If so, please drop us a code example, because then I guess it would be a bug.

If you have empty lines, put a keep-with-next.within-page="always" on them.

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de


-----Ursprüngliche Nachricht-----
Von: Sushanth [mailto:sushanth.rao@gmail.com]
Gesendet: Mittwoch, 7. Juli 2010 11:31
An: fop-users@xmlgraphics.apache.org
Betreff: Keeping fo:table-header and fo:table-body together within a page


First of all, I'm extremely sorry for the long text that follows this :)

I looked all around the internet for a solution to this problem and still
haven't found a straightforward solution. I am generating a PDF using FOP
0.95, where I have a bunch of pages, each of which can have multiple tables.
There are times I encounter this problem where the fo:table-header content
of one of the tables ends up as the last element on a page with no
table-body under it. The table-body starts on the next page, of course
preceded by table-header on the next page also which is fine, but is there
any way I can prevent a table-header from ending up as the last element on a
page if there is not enough space for the table-body to be displayed on the
same page?

The options I have tried so far include using
keep-together.within-page="always". This doesn't help because some tables
can even span multiple pages, in which case a page-break is not introduced.
I have read that FOP-Trunk provides integer support for keep-together, but I
wasn't able to build the FOP-Trunk jar. Is there any place where I can
directly download the latest FOP-Trunk jar?

The other option I have tried is brute-force, trying to keep count of the
number of rows printed on a page and introducing a manual page break, but
this is an ugly patch and I want to avoid using it and it will not work in
all scenarios.

Is there a simple solution to this problem using FOP 0.95? I'm sure somebody
would have anticipated this problem while developing FOP and must have some
solution in place for this :) Please let me know. I can't live with this
problem anymore.

--
View this message in context: http://old.nabble.com/Keeping-fo%3Atable-header-and-fo%3Atable-body-together-within-a-page-tp29094189p29094189.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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


Mime
View raw message