Hi Folks, I am hoping you can help me work out the following situation...
I have a Chunk object that spans over multiple lines... I have the
setGenericTag method attached to the chunk ovhect where I was hoping I could
get the "rect" object (for the complete chunk object)...
/**
* Draws an ellipse if the text was ellipse, a box if the text was box.
*
* @see
com.lowagie.text.pdf.PdfPageEventHelper#onGenericTag(com.lowagie.text.pdf.PdfWriter,
com.lowagie.text.Document, com.lowagie.text.Rectangle, java.lang.String)
*/
This seems to work, i.e., i can get a rect object on the chunk object... BUT
what I see happening is this method is called not for the complete chunk
(spanning multiple lines), but for each chunk object on each line...
What happens is I end up with multiple calls to SetGenericTag so I end up
with multiple RECTs rather than one RECT encompassing the whole
section/chunk.
Is there anyway to prevent new chunk objects being created so that my chunk
object that spans multiple lines will capture one RECT? Your thoughts
greatly appreciated
--
View this message in context:
http://www.nabble.com/chunk-object-%2B-multiple-lines-%2B-setGenericTag---how-to----tp14795969p14795969.html
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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/