Re: Table / page breaking
Luca Bellonda <[email protected]> Tue, 13 Aug 2024 21:07:14 +0200
| Newsgroups | gmane.text.xml.fop.user |
|---|---|
| Message-ID | <CAK+9=Oaodd0HjyiY8qTBFudpMpSRu+aCpFiuxDZV1X3Van+htA@mail.gmail.com> |
--0000000000005dcc8f061f955bff Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, in the attached .fo, in the last rows there are blocks with the attribute keep-with-next=3D"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 < [email protected]> 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 c= an > have varying number of rows. When number of rows fits in two or less page= s, > 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) =3D =E2=80=9Calways=E2=80=9D on the rows with bolded t= ext 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=E2=80=99t 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 F= OP > 1.1 jar. > > Thanks in advance, > > > > Darryl > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --0000000000005dcc8f061f955bff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello, in the attached .fo, in the last rows there ar= e blocks with the attribute keep-with-next=3D"always".</div><div>= 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 t= o another page.</div><div><br></div><div>Best regards.<br></div></div><br><= div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Il giorno l= un 12 ago 2024 alle ore 13:32 Darryl Beallie <<a href=3D"mailto:dbeallie= @promaxis.com">[email protected]</a>> ha scritto:<br></div><blockquo= te class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px = solid rgb(204,204,204);padding-left:1ex"><div class=3D"msg-6599548226618796= 940"> <div lang=3D"EN-US" style=3D"overflow-wrap: break-word;"> <div class=3D"m_-6599548226618796940WordSection1"> <p class=3D"MsoNormal"><span lang=3D"EN-CA">FOP users,<u></u><u></u></span>= </p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">I am having difficultly underst= anding the page breaking occurring in the attached PDFs and how to improve.= =C2=A0 =C2=A0The goal is to eliminate / reduce the amount of whitespace cre= ated by the irregular/odd page break. The table can have varying number of rows. When number of rows fits in two or less p= ages, there is no issue. When greater, the irregular/odd page breaking occu= rs.<u></u><u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">I have tried using fo extension= s </span>widow-content-limit and orphan-content-limit with varying values, = each without improvement. <u></u><u></u></p> <p class=3D"MsoNormal">I have tried using (keep-with-next, k-w-n.within-col= umn, k-w-n.within-page) =3D =E2=80=9Calways=E2=80=9D on the rows with bolde= d text which produces different page breaking but also causes the table row= s to extend into the page footer area (region After) and not create the additional pages.<u></u><u></u></p> <p class=3D"MsoNormal">If I remove the last two rows in the table, the tabl= e breaks nicely.<u></u><u></u></p> <p class=3D"MsoNormal">The length of the text in the either cell doesn=E2= =80=99t seem to impact the irregular page breaking. <u></u><u></u></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">FOP2.9.pdf is the result from u= sing the Oxygen built-in XSL-FO =C2=A0FO PDF transformation scenario.<u></u= ><u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">Any ideas or suggestions would = be greatly appreciated. <u></u><u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">System details:<u></u><u></u></= span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">Windows 11<u></u><u></u></span>= </p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">Oxygen 26<u></u><u></u></span><= /p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">JRE 17.0.8+7 (From Oxygen insta= lled jre)<u></u><u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">Apache FOP 2.9 =C2=A0(From Oxyg= en installed fop)<u></u><u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">I have gotten similar results u= sing FOP1.1, also from Oxygen but using an ANT transformation scenario that= uses a java task that points to Apache FOP 1.1 jar.<u></u><u></u></span></= p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">Thanks in advance,<u></u><u></u= ></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA">Darryl<u></u><u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-CA"><u></u>=C2=A0<u></u></span></p> </div> </div> <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><= /div></blockquote></div> --0000000000005dcc8f061f955bff--