There's no text flowing around images in ColumnText and PdfPTable. If you want that, it won't work.
----- Original Message ----- From: "Sergey Vlasov" <[EMAIL PROTECTED]> To: <itext-questions@lists.sourceforge.net> Sent: Friday, August 12, 2005 3:20 PM Subject: [iText-questions] Alignment of images in table's cell with text in HTMLWorker (HTML-to-PDF) > Hello, > > I'm trying to enhance HTMLWorker to be able to handle images (I've used some > ideas from SAXiTextHandler). > Here is what I did: > > public void startElement(String tag, HashMap h) { > ... > if (tag.equals("img")) { > Image img; > try { > Properties p = new Properties(); > p.setProperty(ElementTags.URL, (String) h.get("src")); > p.setProperty(ElementTags.ALIGN, (String) h.get("align")); > p.setProperty(ElementTags.PLAINWIDTH, (String) h.get("width")); > p.setProperty(ElementTags.PLAINHEIGHT, (String) h.get > ("height")); > img = Image.getInstance(p); > img.setWidthPercentage(0); > Object current; > if (stack.size() > 0) { > current = stack.pop(); > if (current instanceof Chapter > || current instanceof Section > || current instanceof Cell > || current instanceof IncCell) { > ((TextElementArray) current).add(img); > stack.push(current); > return; > } > } > else add(img); > } catch ... > > The problem I'm having is alignment of images in table's cell with text. It > always appears above text. It ignores image alignment rules. > > Any help will be appreciated. > > > 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 ------------------------------------------------------- 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