Kumar Jalaj wrote:
> Hello Alexis,
>               thanx a lot for answering my querry.You were true that multiple 
> tables can be added using getContentByte()or we can say that we can add 
> anything anywhere using this object, but whenever i use this object to add 
> something to the document and after that if i wish to add some text or any 
> other data to the same page of the document using document.add() method, the 
> data does not gets added into the page after the data that has been added 
> using  getContentByte(), rather the new data gets added from the start of the 
> page overwriting the earlier data. 
> 
> do you have solution for this problem.

I don't know the history of this question, but there are basically two 
approaches:

1. you do everything using absolute positioning. So you use ColumnText 
instead of document.add().
or:
2. you do portions using absolute positioning, but instead of adding 
everything straight to the PdfContentByte, you add it to a PdfTemplate. 
You wrap the PdfTemplate in an Image object, and you add the Image using 
document.add().
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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