[EMAIL PROTECTED] wrote:

I am currently working on a system which generates documents in Word. These documents are generated from a template file containing a number of bookmarks, and the data is populated using a dynamically generated key/value pair file ( ie bookmarkname / data to fill bookmark with ). The bookmarks can be either filled with data, or removed off the document completely, based on commands which can be put into the key/value pair file. The bookmarks may be simple text "fields" or may contain table rows, whole tables or slabs of text.

Is the word 'bookmark' correct in this context?
I use bookmark as a synonym for 'outline entry' in the Bookmarks panel of Adobe Reader.
You seem to use bookmark as a placeholder for data.
In this case you would better talk about form fields in an Acroform.
This could be a text field, or a button that designates a specific area on a page.

What I'm wondering is it possible to use iText to do something similar to this, but in PDF format?

If you have a PDF document with an AcroForm, then you can
fill in text in a very easy way using text fields.
For the more complex structures, you could use ColumnText
and/or PdfPTable. Retrieve the coordinates of the place holder
and put the column/table at this absolute position.
If you search the mailing list for AcroFields AcroForm setField etc...
you will find some examples.

The templates would no doubt need to be migrated into PDF format, so is there any way I can do this and retain the existing bookmarks from the Word templates ( perhaps that's hoping too much! )?

You'd need a tool that is able to do Word2PDF conversion.
I'm not an expert on this field.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to