Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Overlapping lines in HTML content on PDF export(PDF export does produce sometimes overlapping lines for HTML data)
Overlapping lines in HTML content on PDF export [message #1710335] Tue, 06 October 2015 07:22 Go to next message
Georg Kubesch is currently offline Georg KubeschFriend
Messages: 1
Registered: March 2010
Junior Member
We have a report showing some HTML data in table cells. We have to generate DOCX and PDF output formats. When generating PDF, sometimes some lines in the HTML content do overlap (see e.g. attached Report Synopse-BIRT-4.3.1-border.pdf Page 3).

I tried to set call padding and margin to 0, which did help just a little bit.
Therefore we added a report parameter targetFormat. When set to pdf an onPrepare script resets margin and padding.

When exporting to DOCX we do not see and overlapping rows (but in docx the bottom border of the table cells is missing Crying or Very Sad )

We use BIRT 4.3.1 in our application. I also tried to generate the DOCX and PDF formats with BIRT 4.5.0, but i got the same results.

I attached a zip file containing

  • the .rptdesign file
  • an XML datasource
  • PDF and DOCX reports

My main problem is the overlapping in the PDF reports.
Fixing the issue with missing borders in DOCX would also be great.

Could anybody help me fixing this problems.

Thank you
George Kubesch
  • Attachment:
    (Size: 510.89KB, Downloaded 95 times)
Re: Overlapping lines in HTML content on PDF export [message #1712808 is a reply to message #1710335] Wed, 28 October 2015 11:37 Go to previous messageGo to next message
Alex Hinrichs is currently offline Alex HinrichsFriend
Messages: 1
Registered: October 2015
Junior Member
I noticed the same issue on 4.5.0 and did not find any solution. Sad
It seems to be related to splitting a HTML formatted paragraph because of a pagebreak.

Does anybody have an idea which formatting option to tweak?

Re: Overlapping lines in HTML content on PDF export [message #1802971 is a reply to message #1712808] Tue, 19 February 2019 21:46 Go to previous message
Regis Ribeiro is currently offline Regis RibeiroFriend
Messages: 1
Registered: February 2019
Junior Member
Hello my friend!

I was fighting a lot to find a solution for the HTML text overlapping.

In a dream, I figured out if I replace the <p> tags to <span> will solve this issue.

So, there is a simple solution:

In my case, I have some replaces happening and I put these 2 replaces in my record loop:

vars["vConteudoHTML"].replace("<p ", "<span ").replace("</p>","</span>");

The HTML is populated in a Dynamic Text with no overlaps :).


Previous Topic:How to customize column before load of birt report?
Next Topic:Display column data in a row
Goto Forum:

Current Time: Tue Nov 19 00:54:06 GMT 2019

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

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

Back to the top