Several PdfContentByte objects will also work well as layers as long as you 
keep track of save/restore state. The order that you copy this objects to the 
"master" PdfContentByte will determine the z-order. This is what happens with 
the original 4 layers.

Paulo 

> -----Original Message-----
> From: 1T3XT info [mailto:[email protected]] 
> Sent: Monday, December 22, 2008 5:06 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] z-order
> 
> David Thielen wrote:
> > Hi;
> > I understand that iText has the 4 layers. Is there any way to set a 
> > specific z-order for each item to have a larger number of layers?
> 
> Larger number of layers: you could create several PdfTemplate 
> objects; 
> add content to these templates/layers using ColumnText. Then add the 
> layers to a page in the preferred order.
> 
> > If this cannot be done, if 2 items are drawn on the same 
> level, does the 
> > second always get placed above the first?
> 
> When in the same layer: yes. Also: when you add the templates/layers, 
> the one added last, will be the one on top.
> -- 
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info


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.


------------------------------------------------------------------------------
_______________________________________________
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