Ok. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Steve Appling > Sent: Wednesday, November 17, 2004 8:29 PM > To: [EMAIL PROTECTED] > Subject: [iText-questions] Bug in PdfLine > > I believe there is a bug in PdfLine.getAscender (added by me > unfortunately). > > The problem is the lines: > if (ck.isImage()) > ascender = Math.max(ascender, ck.getImageOffsetY()); > > This was copied from the getDescender code without thinking > it through. I think it should be: > if (ck.isImage()) > ascender = Math.max(ascender, > ck.getImage().scaledHeight() + ck.getImageOffsetY()); > > Since images contained in chunks are rendered with the bottom > of the image on the baseline, I think > the scaledHeight should serve as the Ascender height (if > there are no offsets). > > The current bug will cause a problem in a PdfPCell if the > cell has setUseAscender(true) and only an > image in the cell. Currently the image will not display at > all (cell ends up with 0 height). > > Paulo, could you please add this to your next version. > Bruno, I don't know how often you make minor bug fixes like > this to the main release - I wouldn't > want someone else to waste a day like I just did trying to > track down why my images aren't showing > up :( > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions >
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
