Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » PDF Pagebreak Problems(How to break inside instead of before on long row content?)
icon5.gif  PDF Pagebreak Problems [message #1020725] Mon, 18 March 2013 20:10 Go to next message
Markus Dresch is currently offline Markus DreschFriend
Messages: 2
Registered: March 2013
Junior Member
hi community,

i also posted this topic over at birt-exchange, not sure if this is considered crossposting (/org/forum/index.php/topic/29023-pdf-pagebreak-problems/), just trying to increase my odds.

i got a problem when generating PDF reports. when i got some short row content followed by a long row content that doesn't fully fit onto the same page, the page breaks before the long row content, resulting in almost blank pages with only one row of text.

here are two examples, the first one is a html table with two table rows. i managed to set the pagebreak using inline CSS on that one to get the desired result.

example 1 (html table with 2 rows):

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 4.2.2.v201301221637 Build &lt;4.2.2.v20130206-1509></property>
<property name="units">in</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">72</property>
<styles>
<style name="report" id="4">
<property name="fontFamily">sans-serif</property>
<property name="fontSize">10pt</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<text id="7">
<property name="pageBreakInside">avoid</property>
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<table style="page-break-inside:avoid">
<tr style="page-break-inside:avoid;">
<td>
Short Text
</td>
</tr>
<tr style="page-break-inside:auto;">
<td>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
</td>
</tr>
</table>]]></text-property>
</text>
</body>
</report>


the second one is a detail view with two block elements in the same column. same thing happens with any combination of grids, tables etc. i believe i tried every possible combination of page breaking settings on these elements without success.

example 2 (ignore the missing data source/set):

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 4.2.2.v201301221637 Build &lt;4.2.2.v20130206-1509></property>
<property name="units">in</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="layoutPreference">fixed layout</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">72</property>
<styles>
<style name="report" id="4">
<property name="fontFamily">sans-serif</property>
<property name="fontSize">10pt</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<property name="type">a4</property>
<property name="headerHeight">30mm</property>
</simple-master-page>
</page-setup>
<body>
<table id="847">
<property name="pageBreakInside">avoid</property>
<column id="854"/>
<detail>
<row id="850">
<property name="pageBreakInside">avoid</property>
<cell id="851">
<label id="855">
<property name="pageBreakAfter">auto</property>
<property name="pageBreakBefore">auto</property>
<property name="pageBreakInside">auto</property>
<text-property name="text">Short Text</text-property>
</label>
<text id="856">
<property name="pageBreakAfter">auto</property>
<property name="pageBreakBefore">auto</property>
<property name="pageBreakInside">auto</property>
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>
<p>Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text Really Long Text </p>]]></text-property>
</text>
</cell>
</row>
</detail>
</table>
</body>
</report>


on repeating details this leaves me with loads of almost empty pages. is there any standard way to fix this or some workaround? version is 4.2.2

any hints and pointers very much appreciated.
Re: PDF Pagebreak Problems [message #1020857 is a reply to message #1020725] Tue, 19 March 2013 03:40 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

A solution on the second could be to set the display property for both elements to "inline". The setting can be found at the bottom of the general section of the property editor, for each element.



Michael

Developer Evangelist, Silanis

[Updated on: Tue, 19 March 2013 03:43]

Report message to a moderator

Re: PDF Pagebreak Problems [message #1020899 is a reply to message #1020857] Tue, 19 March 2013 06:26 Go to previous messageGo to next message
Markus Dresch is currently offline Markus DreschFriend
Messages: 2
Registered: March 2013
Junior Member
thanks for the tip michael. i'll use that as a workaround for now. however, the problem persists with repeated detail rows. is there any way to fix this?
Re: PDF Pagebreak Problems [message #1021153 is a reply to message #1020899] Tue, 19 March 2013 15:27 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Please log a bug for this and post the bug info in here. I'll let you know if I find a workaround.

Michael

Developer Evangelist, Silanis
Re: PDF Pagebreak Problems [message #1021154 is a reply to message #1020899] Tue, 19 March 2013 15:27 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Please log a bug for this and post the bug info in here. I'll let you know if I find a workaround.

Michael

Developer Evangelist, Silanis
Re: PDF Pagebreak Problems [message #1021155 is a reply to message #1020899] Tue, 19 March 2013 15:28 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Please log a bug for this and post the bug info in here. I'll let you know if I find a workaround.

EDIT: Sorry for the duplicate posts. The newsgroup was acting up and not showing my post. Smile


Michael

Developer Evangelist, Silanis

[Updated on: Tue, 19 March 2013 15:31]

Report message to a moderator

Re: PDF Pagebreak Problems [message #1021157 is a reply to message #1020725] Tue, 19 March 2013 15:28 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Please log a bug for this and post the bug info in here. I'll let you know if I find a workaround.

Michael

Developer Evangelist, Silanis
Re: PDF Pagebreak Problems [message #1021158 is a reply to message #1020899] Tue, 19 March 2013 15:29 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Please log a bug for this and post the bug info in here. I'll let you know if I find a workaround.

Michael

Developer Evangelist, Silanis
Re: PDF Pagebreak Problems [message #1021214 is a reply to message #1021158] Tue, 19 March 2013 17:15 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Sorry again for the duplicate posts. Eclipse.org was not showing my post, which it does at times, so I hit submit again a few times and like 3 minutes later, they started showing up. Smile

Anyways, Kris was working on your issue, this morning, so we talked about it a bit and he came up with an interesting workaround to use while the bug is not fixed. It's posted on your question on BIRT Exchange:

BIRT Exchange Forum - PDF Pagebreak Problems

Please still log the bug and post the bug info in here, though. Thanks!


Michael

Developer Evangelist, Silanis
Re: PDF Pagebreak Problems [message #1822668 is a reply to message #1021214] Wed, 11 March 2020 08:31 Go to previous message
dmitry khotsko is currently offline dmitry khotskoFriend
Messages: 38
Registered: March 2020
Member
hi! I met the same problem. and I cant open the link http://www.birt-exchange.org/org/forum/index.php/topic/29023-pdf-pagebreak-problems/
was this problem solved? someone please repost this solution here
Previous Topic:Passing parameters from Maximo to eclipse BIRT report
Next Topic:BiRT 4.5.0 runtime Platform.createFactoryObject returns null
Goto Forum:
  


Current Time: Tue Mar 19 03:27:54 GMT 2024

Powered by FUDForum. Page generated in 0.02087 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top