RE: Table / page breaking

Darryl Beallie <[email protected]> Thu, 15 Aug 2024 16:49:59 +0000
Newsgroups gmane.text.xml.fop.user
Message-ID <YT2PR01MB868064249F02D3DA99D6278AB8802@YT2PR01MB8680.CANPRD01.PROD.OUTLOOK.COM>
--_000_YT2PR01MB868064249F02D3DA99D6278AB8802YT2PR01MB8680CANP_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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

Cheers

Darryl

From: Luca Bellonda <[email protected]>
Sent: Tuesday, August 13, 2024 3:07 PM
To: [email protected]
Subject: Re: Table / page breaking

**WARNING: This message originated outside the organization. Do not click o=
n links or open attachments you do not trust. / AVERTISSEMENT: Courriel ext=
erne. Ne cliquez pas sur les liens ou n'ouvrez pas des pi=E8ces jointes aux=
quels vous ne faites pas confiance.***

Hello, in the attached .fo, in the last rows there are blocks with the attr=
ibute keep-with-next=3D"always".
This forces a set of rows to form a single block and I think that's the rea=
son the second page ends prematurely and the remaining rows are moved to an=
other page.

Best regards.

Il giorno lun 12 ago 2024 alle ore 13:32 Darryl Beallie <dbeallie@promaxis.=
com<mailto:[email protected]>> ha scritto:
FOP users,

I am having difficultly understanding the page breaking occurring in the at=
tached PDFs and how to improve.   The goal is to eliminate / reduce the amo=
unt of whitespace created by the irregular/odd page break. The table can ha=
ve varying number of rows. When number of rows fits in two or less pages, t=
here is no issue. When greater, the irregular/odd page breaking occurs.

I have tried using fo extensions widow-content-limit and orphan-content-lim=
it with varying values, each without improvement.
I have tried using (keep-with-next, k-w-n.within-column, k-w-n.within-page)=
 =3D "always" on the rows with bolded text which produces different page br=
eaking 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 irregu=
lar page breaking.

FOP2.9.pdf is the result from using the Oxygen built-in XSL-FO  FO PDF tran=
sformation 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 A=
NT transformation scenario that uses a java task that points to Apache FOP =
1.1 jar.
Thanks in advance,

Darryl






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]<mailto=
:[email protected]>
For additional commands, e-mail: [email protected]<mail=
to:[email protected]>

--_000_YT2PR01MB868064249F02D3DA99D6278AB8802YT2PR01MB8680CANP_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:12.0pt;
	font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Aptos",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	mso-ligatures:none;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple" style=3D"word-wrap:brea=
k-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-CA" style=3D"font-size:11.0pt">Than=
ks Luca,&nbsp; that seems to have been the issue. Very much appreciated you=
 taking the time to look.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA" style=3D"font-size:11.0pt"><o:p=
>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA" style=3D"font-size:11.0pt">Chee=
rs<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA" style=3D"font-size:11.0pt"><o:p=
>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA" style=3D"font-size:11.0pt">Darr=
yl<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-CA" style=3D"font-size:11.0pt"><o:p=
>&nbsp;</o:p></span></p>
<div>
<div style=3D"border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in">
<p class=3D"MsoNormal"><b><span style=3D"font-size:11.0pt;font-family:&quot=
;Calibri&quot;,sans-serif">From:</span></b><span style=3D"font-size:11.0pt;=
font-family:&quot;Calibri&quot;,sans-serif"> Luca Bellonda &lt;lbellonda@gm=
ail.com&gt;
<br>
<b>Sent:</b> Tuesday, August 13, 2024 3:07 PM<br>
<b>To:</b> [email protected]<br>
<b>Subject:</b> Re: Table / page breaking<o:p></o:p></span></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<table class=3D"MsoNormalTable" border=3D"0" cellspacing=3D"0" cellpadding=
=3D"0" align=3D"left" width=3D"100%" style=3D"width:100.0%">
<tbody>
<tr>
<td style=3D"background:red;padding:5.0pt 2.0pt 5.0pt 2.0pt"></td>
<td width=3D"100%" style=3D"width:100.0%;padding:5.0pt 4.0pt 5.0pt 12.0pt;b=
ackground:#ff000">
<div>
<p class=3D"MsoNormal" style=3D"mso-element:frame;mso-element-frame-hspace:=
2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-el=
ement-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style=3D"color:black">**WARNING: </span></b><span style=3D"color:r=
ed">This message originated outside the organization. Do not click on links=
 or open attachments you do not trust. / AVERTISSEMENT: Courriel externe. N=
e cliquez pas sur les liens ou n&#8217;ouvrez
 pas des pi=E8ces jointes auxquels vous ne faites pas confiance.</span><b><=
span style=3D"color:black">***</span></b><span style=3D"color:red">
<o:p></o:p></span></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<p class=3D"MsoNormal">Hello, in the attached .fo, in the last rows there a=
re blocks with the attribute keep-with-next=3D&quot;always&quot;.<o:p></o:p=
></p>
</div>
<div>
<p class=3D"MsoNormal">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 remaini=
ng rows are moved to another page.<o:p></o:p></p>
</div>
<div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class=3D"MsoNormal">Best regards.<o:p></o:p></p>
</div>
</div>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class=3D"MsoNormal">Il giorno lun 12 ago 2024 alle ore 13:32 Darryl Beal=
lie &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&=
gt; ha scritto:<o:p></o:p></p>
</div>
<blockquote style=3D"border:none;border-left:solid #CCCCCC 1.0pt;padding:0i=
n 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-=
bottom:5.0pt">
<div>
<div>
<div>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">FOP users,</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">I am having difficultly understanding the pag=
e breaking occurring in the attached PDFs and how to improve.&nbsp; &nbsp;T=
he 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.</span><o:p></o:p></p=
>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">I have tried using fo extensions
</span>widow-content-limit and orphan-content-limit with varying values, ea=
ch without improvement.
<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">I have tried using (keep-with-next, k-w-n.within-column, k-w-n.wit=
hin-page) =3D &#8220;always&#8221; on the rows with bolded text which produ=
ces different page breaking but also causes the table
 rows to extend into the page footer area (region After) and not create the=
 additional pages.<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">If I remove the last two rows in the table, the table breaks nicel=
y.<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto">The length of the text in the either cell doesn&#8217;t seem to im=
pact the irregular page breaking.
<o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">FOP2.9.pdf is the result from using the Oxyge=
n built-in XSL-FO &nbsp;FO PDF transformation scenario.</span><o:p></o:p></=
p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">Any ideas or suggestions would be greatly app=
reciated.
</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">System details:</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">Windows 11</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">Oxygen 26</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">JRE 17.0.8+7 (From Oxygen installed jre)</spa=
n><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">Apache FOP 2.9 &nbsp;(From Oxygen installed f=
op)</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">I have gotten similar results using FOP1.1, a=
lso from Oxygen but using an ANT transformation scenario that uses a java t=
ask that points to Apache FOP 1.1 jar.</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">Thanks in advance,</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">Darryl</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
<p class=3D"MsoNormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-a=
lt:auto"><span lang=3D"EN-CA">&nbsp;</span><o:p></o:p></p>
</div>
</div>
<p class=3D"MsoNormal"><br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a href=3D"mailto:fop-users-unsubscribe@xmlgraphics=
.apache.org" target=3D"_blank">
[email protected]</a><br>
For additional commands, e-mail: <a href=3D"mailto:fop-users-help@xmlgraphi=
cs.apache.org" target=3D"_blank">
[email protected]</a><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>

--_000_YT2PR01MB868064249F02D3DA99D6278AB8802YT2PR01MB8680CANP_--