Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] extra linefeed when converting html to PDF

Ralf Hauser

2006-08-23

Replies:

Hi Bruno and list,

When converting the following html file to a pdf (using SAXiTextHandler, etc.), a line-break is entered between the bold "a" and the "b" in the resulting pdf.

<html><body>
<b>a</b>b
</body></html>

When adding a printable character BEFORE the <b> tag, this no longer happens.

<html><body>
.<b>a</b>b
</body></html>

But then, I have an extra "." in the resulting pdf I don't want.

How can I start a html body with a <b> tag and still have elements after the </b> on the same line (obviously provided they are short enough)?

Any hints are highly appreciated!

  Ralf


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.