Anthony Oganesian wrote: > Behavior is expected and makes sense, but not desirable in this case. > I am looking for a work-around. Thanks for the pointer to > VerticalPositionMark. > I will try, but I don't expect it to succeed. By the time I start using > VerticalPositionMark a call to newPage has already happened, so I assume the > drawing will take place on the new page, will it not?
Did you read chapter 2? I quote: "Observe that we didn't add the PositionedArrow directly to the Document in listing 2.18. In this example, the arrow refers to the content of a Paragraph, and it's better to add it to the corresponding object, as is done in lines #2 and #3. Otherwise a page break could cause the text to be on one page, and the arrow on the next; which can be your intention, but that's not the case here." If you add the VerticalPositionMark with document.add(); the mark will be on the next page. If you add the VerticalPositionMark to the final Paragraph, it will be on the current page. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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 Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/