yes, I have not read the book completely. This might be either my laziness or in a hurry to create a proposal with prototype to replace existing XSL-FO model of pdf creation. Now I am realizing to read more importantly some chapters like 4, 13, 14.
Thanks for help. - RB --- On Thu, 2/26/09, 1T3XT info <[email protected]> wrote: > From: 1T3XT info <[email protected]> > Subject: Re: [iText-questions] How to start a sentence with a image and/or > square > To: "Post all your questions about iText here" > <[email protected]> > Date: Thursday, February 26, 2009, 6:00 AM > Cool The Breezer wrote: > > I have couple of questions > > You really have a lot of questions. > Seems like you didn't read the book yet: > http://1t3xt.com/docs/book.php > > > wrt starting a sentence with a small image and/or > square , so that all are in the same line. > > > > Following code puts the image and sentence in two > different line. > > mage noteImg = > Image.getInstance("./src/imgs/note.gif"); > > > > Paragraph notePara = new Paragraph(); > > notePara.add(noteImg); > > notePara.add(new Chunk(" ")); > > notePara.add(new > Chunk("Note:",FontFactory.getFont("Arial > Narrow", 10, Font.BOLD))); > > notePara.add(new > Chunk(note.text,FontFactory.getFont("Arial > Narrow", 10, Font.NORMAL))); > > If you had read the book, you'd have found this > example: > http://1t3xt.info/examples/browse/?page=example&id=81 > > > Also need a help on creating a small square. > > You could create a square using a PdfTemplate, and wrap it > in an Image > object. You could create your own Type3 font and define a > glyph shaped > as a square. Or you could search existing fonts, such as > Zapfdingbats, > Wingdings,... that has such a glyph. > See the Wingdings line in this example: > http://1t3xt.info/examples/browse/?page=example&id=131 > > > I tried with List items but it did not help me. > > > > Appreciate your help. > > More examples can be found here: > > Buy the iText book: http://www.1t3xt.com/docs/book.php > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, > San Francisco, CA > -OSBC tackles the biggest issue in open source: Open > Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open > source participation > -Receive a $600 discount off the registration fee with the > source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
