There are lots of layers when using complex objects. You should draw your 
background with PdfPCellEvent, probably.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Patrick Valsecchi
> Sent: Friday, September 12, 2008 7:42 AM
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Subject: [iText-questions] onGenericTag called way too early
>
> Hi,
>
> I'm using the genericTag functionality (as described in
> chapter 4.6 of THE
> book) for being able to do custom drawings (DirectContent) in
> some cells of
> my tables.
>
> For that, I insert a Chunk in those cells and I set a
> genericTag on them. When
> the event listener receives the onGenericTag event, it adds a
> line across the
> chunk.
>
> I'm OK with the fact that the chunk's content is drawn after
> the onGenericTag
> event is called. But my problem is that the cell's background
> is drawn after
> the onGenericTag event is called, overwriting all the nice
> stuff I've drawn
> during that event.
>
> In attachment, you'll find a little piece of code
> illustrating that. In the
> generated PDF, the second table is missing the blue diagonal
> because it is
> overwritten by the background.
>
> IMHO, it's a bug. What do you think?
>
> Regarding this very subject, I miss a few other functionalities:
>  - it would be cool to have an event sent after the chunk is drawn
>  - it would be cool to have the setGenericTag method on the
> Element class
> instead of only the Chunk class.
>
> CU and thanks
>
> --
> Patrick Valsecchi
> Senior Software Engineer
> Camptocamp Suisse SA
> http://www.camptocamp.com
> +41 21 619 1030
>


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to