Stephan Trautmann wrote:
> Hello,
> 
> I have been working with IText for 2 weeks now and already read through 3 
> quaters of the book which I have bought last week. Its really interesting how 
> many different options I got in manipulating pdf and generate new ones.
> 
> But as usuall there are questions coming up which are not quite easily to be 
> answered by the given examples or tutorials, of which I have read almost all 
> =)
> 
> Problem:
> 
> I have a "Pdf Template" called ExportTemplate.pdf, having 3 PdfFormFields to 
> be filled in, which works perfectly using the pdf stamper.
> But now i want to add a PdfPTable using Columntext to illustrated a large 
> Table that should start directly beyond these 3 form fields.
> 
> my steps:
> 1. read the template (template = new 
> RandomAccessFileOrArray("ExportTemplate.pdf") to memory
> 2. fill fields with stamper
> 3. read stamped pdf from memory ==> reader = new PdfReader(baos.toByteArray())
> 4. creating a copy of the memory page + importing the first page which i have 
> already filled in 
> 5.ADD TABLE WITH DYNAMIC CONTENT:
> 
> The result i get is that i get only the copy of my first page but no table is 
> added. 

You can't add content using PdfCopy, but you already have an instance of 
PdfStamper, why don't you add the PdfPTable using stamper.getContentOver()?

br,
Bruno

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to