Paulo Soares <psoares <at> consiste.pt> writes: > > It's not that bad. Place your image and use a ColumnText with irregular > columns, there are examples in the tutorial. HTHLWorker has nothing to do > with this, of course. > > ----- Original Message ----- > From: "Philip Newton" <philip.newton <at> gmail.com> > To: "Sergey Vlasov" <sergey_vlasov <at> yahoo.com> > Cc: <itext-questions <at> lists.sourceforge.net> > Sent: Monday, August 15, 2005 3:06 PM > Subject: Re: [iText-questions] Re: Alignment of images in table's cell with > text in HTMLWorker (HTML-to-PDF) > > On 8/15/05, Sergey Vlasov <sergey_vlasov <at> yahoo.com> wrote: > > Paulo Soares <psoares <at> consiste.pt> writes: > > > > > There's no text flowing around images in ColumnText and PdfPTable. If > you > > > want that, it won't work. > > > > In my case I want to display an image right to the text. Here is my html > > fragment: > > <td>Hello world!<img src="flag_red.PNG" border="0" align="right" > width="10" > > height="10" /></td> > > > > Could you please suggest a solution for my case? > > Use PdfContentByte and do the text formatting yourself (measure out > how many pixels each word takes, determine where to break lines, place > the lines on the page yourself, etc. etc.). > > Paulo already said that there is no automatic method in iText to have > text flowing around images.
Paulo, Thank you for your answer. Right now HTMLWorker doesn't support images. I'm trying to add this feature. This is why I asked my question in context with HTMLWorker. irregular.java shows how to deal with irregular columns but not in context with PDFTable. It is not clear for me how ColumnText settings can change the way PDFTable is displayed. I was able to change HTMLWorker to handle the following HTML sample, but I don't know how to align image. In generated PDF image appears above the text "Hello world!” And I want it to be right to the text. <table border="1"> <tr> <td>Image</td> <td>Hello world! <img src="graphics/flag_red.PNG" border="0" align="right" width="10" height="10"/> </td> </tr> </table> I'm also added support for TH tag. Regards, Sergey Vlasov ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions