miro wrote:
> I have to  generate a pdf , and I am confused whether to use a template .
> 
> My template  needs a table in middle and no of rows will be determined only
> at runtime , so one instance   rows  might be 5 and other instance rows
> might be 50.
> 
> Can we have this dynamic behavior using a pdf template ?

Two options:

1/ Use dynamic XFA: this means using Adobe Software, not iText.
2/ Why do you need a template? I create invoices for 30,000 students 
using iText. Some invoices are simple (enrolled for 1 course); others 
are very complex (Phd, combined with different courses). My "template" 
is and XSL file containing the standard clauses of the invoice; the 
variable data is in an XML file (one per student).
In the previous version of that application, the standard clauses were 
in an XML file; the data came straight from the database.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-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