Adnan Ahmed wrote: > Is there any way to display this tag in PDF using iText. > Remember: > In PDF device list should come in bold. > Device list should come in bulleted form.
I was asked a similar question a while ago by a newspaper group who had advertisements in database that looked like this: "<p><strong>"You The Living"</strong> aka "Du Levande" directed by <i>Andersson, Roy</i>, runtime: 94 minutes.</p>" This is the example I wrote them (and got paid for! Yey!): http://www.1t3xt.info/examples/browse/?page=example&id=347 The first newspaper from that press group with the ads 'made by iText' was published last weekend. The part that is relevant for you is: StyleSheet styles = new StyleSheet(); styles.loadTagStyle("p", "size", size + "px"); styles.loadTagStyle("p", "align", "justify"); styles.loadTagStyle("p", "hyphenation", "en_us"); ArrayList<Element> objects = HTMLWorker.parseToList( new StringReader(s), styles, null); All you'll need to do is adapt the 'styles'. -- This answer is provided by 1T3XT BVBA ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
