extra linefeed when converting html to PDF
- From: "Ralf Hauser" <ralfhauser (at) gmx.ch>
- Date: Wed, 23 Aug 2006 14:41:46 +0200
Bruno,
Huh, maybe thinking together about a work-around is easier than debugging it to fix it...
What do you think about adding a white-space line before?
<html><body>
<br /><b>a</b>b
</body></html>
When I try to that, I get the below exception, but perhaps this is easier to fix?
Ralf
org.xml.sax.SAXParseException: The entity "nbsp" was referenced, but not declared.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:311)
> -----Original Message-----
> From: itext-questions-bounces (at) lists.sourceforge.net [mailto:itext-
> questions-bounces (at) lists.sourceforge.net] On Behalf Of bruno
> Sent: Wednesday, August 23, 2006 12:18 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] extra linefeed when converting html to PDF
>
> ralfhauser (at) gmx.ch wrote:
>
> >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>
> >
> Uh, that's very odd, and very hard to debug.
> I fear I won't have the time to look at this.
> Maybe somebody else?
> br,
> Bruno
-------------------------------------------------------------------------
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 (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions