Thanks Luca,  that seems to have been the issue. Very much appreciated you 
taking the time to look.

Cheers

Darryl

From: Luca Bellonda <lbello...@gmail.com>
Sent: Tuesday, August 13, 2024 3:07 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: Table / page breaking

**WARNING: This message originated outside the organization. Do not click on 
links or open attachments you do not trust. / AVERTISSEMENT: Courriel externe. 
Ne cliquez pas sur les liens ou n'ouvrez pas des pièces jointes auxquels vous 
ne faites pas confiance.***

Hello, in the attached .fo, in the last rows there are blocks with the 
attribute keep-with-next="always".
This forces a set of rows to form a single block and I think that's the reason 
the second page ends prematurely and the remaining rows are moved to another 
page.

Best regards.

Il giorno lun 12 ago 2024 alle ore 13:32 Darryl Beallie 
<dbeal...@promaxis.com<mailto:dbeal...@promaxis.com>> ha scritto:
FOP users,

I am having difficultly understanding the page breaking occurring in the 
attached PDFs and how to improve.   The goal is to eliminate / reduce the 
amount of whitespace created by the irregular/odd page break. The table can 
have varying number of rows. When number of rows fits in two or less pages, 
there is no issue. When greater, the irregular/odd page breaking occurs.

I have tried using fo extensions widow-content-limit and orphan-content-limit 
with varying values, each without improvement.
I have tried using (keep-with-next, k-w-n.within-column, k-w-n.within-page) = 
"always" on the rows with bolded text which produces different page breaking 
but also causes the table rows to extend into the page footer area (region 
After) and not create the additional pages.
If I remove the last two rows in the table, the table breaks nicely.
The length of the text in the either cell doesn't seem to impact the irregular 
page breaking.

FOP2.9.pdf is the result from using the Oxygen built-in XSL-FO  FO PDF 
transformation scenario.

Any ideas or suggestions would be greatly appreciated.

System details:
Windows 11
Oxygen 26
JRE 17.0.8+7 (From Oxygen installed jre)
Apache FOP 2.9  (From Oxygen installed fop)

I have gotten similar results using FOP1.1, also from Oxygen but using an ANT 
transformation scenario that uses a java task that points to Apache FOP 1.1 jar.
Thanks in advance,

Darryl






---------------------------------------------------------------------
To unsubscribe, e-mail: 
fop-users-unsubscr...@xmlgraphics.apache.org<mailto:fop-users-unsubscr...@xmlgraphics.apache.org>
For additional commands, e-mail: 
fop-users-h...@xmlgraphics.apache.org<mailto:fop-users-h...@xmlgraphics.apache.org>

Reply via email to