Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » PDF pagination problem
PDF pagination problem [message #231757] Mon, 02 April 2007 11:59 Go to next message
Eclipse UserFriend
Originally posted by: khihlbe1.kekkonen.cs.hut.fi

Hi,

I'm having a problem with PDF pagination in birt. I have a table with
lots of rows and inside this table I have an another table with 2-20
rows. When generating a PDF file of this it splits some of the table
rows into two pages and this looks ugly. Is there a way to make BIRT
do a page break after a table row if the next row doesn't fit into the
page.

I know that it is possible to do this by grouping and counting rows in
javascript, but is ther any other way?

- Klaus Ihlberg
Re: PDF pagination problem [message #232007 is a reply to message #231757] Tue, 03 April 2007 08:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: khihlbe1.kekkonen.cs.hut.fi

Klaus Henrik Ihlberg <khihlbe1@kekkonen.cs.hut.fi> wrote:
> I'm having a problem with PDF pagination in birt. I have a table with
> lots of rows and inside this table I have an another table with 2-20
> rows. When generating a PDF file of this it splits some of the table
> rows into two pages and this looks ugly. Is there a way to make BIRT
> do a page break after a table row if the next row doesn't fit into the
> page.

Did a bit of investigating and apparently there is no way to do
this. Is this feature planned on future releases of BIRT because this
is quite important factor when printing PDF:s. IText that BIRT
apparently uses for generating PDF:sshould support this.

- Klaus Ihlberg
Re: PDF pagination problem [message #232029 is a reply to message #232007] Tue, 03 April 2007 11:15 Go to previous message
Bruno Lowagie is currently offline Bruno LowagieFriend
Messages: 4
Registered: July 2009
Junior Member
Klaus Henrik Ihlberg wrote:
> Klaus Henrik Ihlberg <khihlbe1@kekkonen.cs.hut.fi> wrote:
>> I'm having a problem with PDF pagination in birt. I have a table with
>> lots of rows and inside this table I have an another table with 2-20
>> rows. When generating a PDF file of this it splits some of the table
>> rows into two pages and this looks ugly. Is there a way to make BIRT
>> do a page break after a table row if the next row doesn't fit into the
>> page.
>
> Did a bit of investigating and apparently there is no way to do
> this. Is this feature planned on future releases of BIRT because this
> is quite important factor when printing PDF:s. IText that BIRT
> apparently uses for generating PDF:sshould support this.

As this is about iText, I want to clarify that there are different
ways to use iText.

When using high-level objects, we're talking about PdfPTable.
As described on p178-179 of the book 'iText in Action', the
PdfPTable object has three options:
(1) split the table BETWEEN rows (what you desire)
(2) cut a row in two parts (what you experience)
(3) omit a row that doesn't fit (I don't ever use this, but
people asked for this and we implemented it).
(1) is the default option;
(2) can be set with setSplitLate(false);
(3) can be set with setSplitRows(false);

When using low level PDF functionality, it's up to the tool
(in this case Eclipse/BIRT) to decide if the content is written
on the current page, or if a new page is needed.

Any way: you have to take into account that some people
will WANT to have the row split in two parts, or even
throw away a row that doesn't fit the page. So an extra
parameter will be needed.

br,
Bruno
Previous Topic:JNDI Datasource
Next Topic:BIRT Report Engine and RCP
Goto Forum:
  


Current Time: Fri Apr 26 13:29:00 GMT 2024

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

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

Back to the top