Thanks for your reply. I should have been more clear. The links to the xml files in this paragraph are giving 404 errors.
Romeo and Juliet: XML to PDF: In this example, we combine some of the most interesting functionalities of iText. We have an XML file (playRomeoJuliet.xml) containing the complete play 'Romeo and Juliet' by William Shakespeare. We have defined a tagmap (tagmapRomeoJuliet.xml) that translates the tags in the XML to tags that can be understood by iText. iText will parse the XML and generate the PDF file using this tagmap. A Speaker-class was written to keep track of all the different speakers. As you can see in the page event implementation, we update the list of speakers in the onGenericTag method. We do some initialisations in the onOpenDocument method, we keep track of the current act in the onChapter method, we add this information as a header on every even page of the document and also put a 'page X of Y'-footer in the onPageEnd method and finally, we set the value of this Y in the onCloseDocument method. After the document is parsed, we retrieve the alphabetical list of speaker from out event class and add an extra page with this info. ghoul11 wrote: > > Hi all, > > Does anyone know where I can find the Romeo & Juliette XML example? I'm > trying to hit the links from the iText site here > http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.php > but they are no longer valid. > > Also, has anyone had experience with formatting text in a paragraph? For > example, if I have a text string (that amounts to a paragraph in the > finished letter), what if I want to have the 3rd word in the paragraph > bolded, for example. I don't want to have to break this section down into > smaller pieces like chunks or smaller paragraphs for maintenance purposes. > I'm having trouble findign documentation on this. Any ideas? > > Thanks in advance > -- View this message in context: http://www.nabble.com/Romeo---Juliette-example-tf4697695.html#a13430242 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
