Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1020725/#msg_1020725
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 <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 <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. ]]>Markus Dresch2013-03-18T20:10:52-00:00Re: PDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1020857/#msg_1020857
]]>Michael Williams2013-03-19T03:40:02-00:00Re: PDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1020899/#msg_1020899
Markus Dresch2013-03-19T06:26:48-00:00Re: PDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1021153/#msg_1021153
Michael Williams2013-03-19T15:27:42-00:00Re: PDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1021154/#msg_1021154
Michael Williams2013-03-19T15:27:54-00:00Re: PDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1021155/#msg_1021155
EDIT: Sorry for the duplicate posts. The newsgroup was acting up and not showing my post. ]]>Michael Williams2013-03-19T15:28:17-00:00Re: PDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1021157/#msg_1021157
Michael Williams2013-03-19T15:28:49-00:00Re: PDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1021158/#msg_1021158
Michael Williams2013-03-19T15:29:05-00:00Re: PDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1021214/#msg_1021214
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:
Please still log the bug and post the bug info in here, though. Thanks!]]>Michael Williams2013-03-19T17:15:57-00:00Re: PDF Pagebreak Problems
https://www.eclipse.org/forums/index.php/mv/msg/460657/1822668/#msg_1822668
http://www.birt-exchange.org/org/forum/index.php/topic/29023-pdf-pagebreak-problems/
was this problem solved? someone please repost this solution here ]]>dmitry khotsko2020-03-11T08:31:16-00:00