Steve Carrow wrote: > Using the most recently released version of iText, we are trying to > allow conversion of autogenerated HTML pages to PDF. A frequent > construct is the use of consecutive div elements, of which the following > is a simplified example: > > <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><strong><u><font > size="2">Violations of the Code or Law</font></u></strong></div> > <div style="MARGIN: 0in 0in 0pt; LINE-HEIGHT: normal"><font size="2">Any > team member found to have violated an applicable law or Code provision > will be subject to disciplinary action.</font></div> > > With the line-height value as "normal", line 2 overwrites line 1. If a > percentage or number is used, the lines generate as expected. Has anyone > else seen this?
The method parseLength is used to find out the numeric value corresponding with keys such as "line-height". This method tries to find a numeric value in the string; it doesn't deal with values such as "normal"; in this case it defaults to 0. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php