iText can't control the way things are converted, it's the responsability of the converter to answer your question.
Paulo ----- Original Message ----- From: "pattyc" <[EMAIL PROTECTED]> To: <itext-questions@lists.sourceforge.net> Sent: Wednesday, July 23, 2008 10:24 PM Subject: [iText-questions] How to get the image in line with text I'm creating a PDF whose lines may have text and images. I'm converting the PDF to a Word doc, and it's mandatory that a user be able to select a whole line all at once (text and images), copy and paste it. When I open the created Word doc, the image has a layout of "behind text". If I right click, change the layout to "in line with text" and move the image next to the text, then I can select, copy and paste both the text and images at once. The problem is, I need to be able to have the converted Word doc created with the "in line with text" layout (the end user is not going to be changing the layout by hand). Is there something to set during PDF creation that will enable this? BTW, I'm using Word 2007, but I have the same problem in Word 2003. Also, I thought that by default images would be in line with text. Here's a code snippet: Document document = new Document(PageSize.LETTER); try { PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("pdfs/itext.pdf")); writer.setStrictImageSequence(true); document.open(); Paragraph p = new Paragraph(20); p.add(new Chunk("Date: ")); Image img = Image.getInstance("images/date.jpg"); img.scalePercent(20); p.add(new Chunk(img, -1.00f, -2.00f)); document.add(p); } catch (Exception de) { de.printStackTrace(); } ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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