Quoting Bruno: > > What if your Section spans multiple pages? > Aren't you adding the Graphic object on the wrong page? > I don't have a lot of time to look into the problem, > but maybe it would be better to allow a Graphic object > to be added to a Section, or even better: to implement > 'horizontalrule' in the Chunk object as was done with 'newline'. >
Your point is very valid, I had not considered that case -- in my case I am inserting the horizontal line outside of a section, so this is a caveat with the way that I worked around the issue. Taking your note about allowing a Graphic object to be added to something else, I looked through the source code I have available and it looks like Phrase might be a good place. Specifically, the Phrase.add(int index, Object o) method allows a GRAPHIC to be added but the Phrase.add(Object o) does not. I am not in a position to easily compile the source code (I was able to implement the previous fix by overriding some methods--I was still able to use the basic jar for my application) to validate whether making this change would allow the GRAPHIC to be inserted into a Phrase. Thanks for the note of warning. Cheers, Steve Balthazor ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions