Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » HTML --> PDF to many blank lines (Birt 2.2)
HTML --> PDF to many blank lines (Birt 2.2) [message #257902] Thu, 11 October 2007 07:36 Go to next message
Eclipse UserFriend
Originally posted by: frank.martens.bertelsmann.de

Hi all,

we are using Birt to convert HTML text to a formatted PDF document.
Converting a <p> Tag, we do expect a blank line behind the closing </p> Tag,
but not in front of the opening <p> Tag. We get both, so there are two blank
line between two sections.
I can't find an option to change this behaviour.
Any ideas how to fix this problem without changing my HTML Code?

HTML code:
myText.append("<p>First section</p>");
myText.append("<p>Second section</p>");

returns:
------------------ Start

First section


Second section

------------------- End

we expect:
------------------ Start
First section

Second section

------------------- End

rptdesign file:
<scalar-parameter name="myText" id="7">
<property name="valueType">static</property>
<property name="dataType">string</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Unformatted</property>
</structure>
</scalar-parameter>

<style name="theText" id="8">
<property name="fontFamily">"Arial"</property>
<property name="fontSize">large</property>
<property name="borderBottomStyle">none</property>
<property name="borderBottomWidth">thin</property>
<property name="borderLeftStyle">none</property>
<property name="borderLeftWidth">thin</property>
<property name="borderRightStyle">none</property>
<property name="borderRightWidth">thin</property>
<property name="borderTopStyle">none</property>
<property name="borderTopWidth">thin</property>
<property name="textAlign">justify</property>
<property name="lineHeight">normal</property>
<property name="canShrink">false</property>
</style>

<text-data id="6">
<property name="style">theText</property>
<expression name="valueExpr">params["myText"]</expression>
<property name="contentType">html</property>
</text-data>


Thanks,
Frank
Re: HTML --> PDF to many blank lines (Birt 2.2) [message #639530 is a reply to message #257902] Tue, 16 November 2010 20:05 Go to previous messageGo to next message
James Koch is currently offline James KochFriend
Messages: 23
Registered: July 2009
Junior Member
I wanted to dredge up this 2007 post because I think we're seeing something similar. P tags in HTML seem to render w/ an unexpectedly large padding or margin around them in PDF. We're a bit behind the times, at version 2.3.2.1.
Re: HTML --> PDF to many blank lines (Birt 2.2) [message #639546 is a reply to message #639530] Tue, 16 November 2010 20:17 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Are you using these in a text element?

Jason

On 11/16/2010 3:05 PM, James Koch wrote:
> I wanted to dredge up this 2007 post because I think we're seeing
> something similar. P tags in HTML seem to render w/ an unexpectedly
> large padding or margin around them in PDF. We're a bit behind the
> times, at version 2.3.2.1.
Re: HTML --> PDF to many blank lines (Birt 2.2) [message #639548 is a reply to message #639546] Tue, 16 November 2010 20:48 Go to previous messageGo to next message
James Koch is currently offline James KochFriend
Messages: 23
Registered: July 2009
Junior Member
Actually just found a bug entry for this - https://bugs.eclipse.org/bugs/show_bug.cgi?id=254903

We're using a text-data element w/ contentType=html.

I just finished reading some old posts on importing CSS and PDF styles, and it looks like I can't really change this handling of <p> tags. Can you confirm that?

Currently looking at some work-arounds, like replacing <p> with <div> or <br>.
Re: HTML --> PDF to many blank lines (Birt 2.2) [message #639564 is a reply to message #639548] Tue, 16 November 2010 22:16 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I believe this is still the issue.

Jason

On 11/16/2010 3:48 PM, James Koch wrote:
> Actually just found a bug entry for this -
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=254903
>
> We're using a text-data element w/ contentType=html.
>
> I just finished reading some old posts on importing CSS and PDF styles,
> and it looks like I can't really change this handling of <p> tags. Can
> you confirm that?
>
> Currently looking at some work-arounds, like replacing <p> with <div> or
> <br>.
Previous Topic:Implement own DataCube
Next Topic:Generating a report from command line
Goto Forum:
  


Current Time: Fri Apr 26 07:53:09 GMT 2024

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

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

Back to the top