Fw: Help:A questin ablout iText template 2006-08-08 - By Bruno
Back ??? wrote:
> > Hi,bruno
Please post your questions to the mailinglist. Not to me personally. For instance: tomorrow and the day after tomorrow I am on vacation. You probably won't get any answers then.
> I have got a requirement like this: > Giving a MS Word template as follow: > > Name > > > > Gender > > > > Age > > > > Province > > > > > > > > > > > > > > > > > > > > Changing the word template into PDF template. > > Then producing PDF file according to the template. > OK, if the blank rectangles represent AcroFields, you can fill in 12 values.
> This table has 3 rows to be filled with,but when I got 4-rows data in > the requried producing PDF file. > In Belgium beer is sold in cases that can contain 24 bottles. Suppose I would ask the beer vendor how I can fill a beer case with 36 bottles, what should he answer?
> Can I implement this requirement through iText? > Maybe, but I think your design is wrong.
> Then how should I do? > It all depends on your project. If there is some white space left under the table, you could retrieve the coordinates of the cells and draw an extra row. A better idea might be to remove the table from the template, keeping only the header and other content. Add the table with PdfPTable.writeSelectedRows.
> Any help in this regard is highly appreciated. > Your English is well enough for me to understand your question, but the main problem is that you should first learn more about PDF. PDF is not a word processing format like word. The layout in your original PDF ('the template') is fixed. You can't just insert a line and expect all the other data to 'repurpose'.
best regards, Bruno
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions
|
|