Bevan Killian wrote:
> Based on this I have now had to expand it where I may need to
> concatenate these templates into one pdf and then populate it with
> data.

If you want to concatenate XFA forms (as opposed to AcroForms) then you 
can stop reading here: you need Adobe software to do that.

> I at any given point in time may not know how many pdf's need to
> be concatenated. This I can do and appears to work well until the
> finished pdf with data in it is viewed.

I assume you're using PdfCopyFields.

> Let me just say that there can be,and will be the same field name
> across multiple pdf's that are concatenated.

Same field name = same field value.
You can not give a value A to field X on page 1,
and a value B to field X on page 2.
You need to rename the fields if you want to have different values.

> So once the pdf's are concatenated and filled one finds that some of
> the fields which are duplicated across all pdf pages lack data,but the
> last field in the pdf always has the data. Strange thing is that this
> does not occur with all duplicated fields.
> If I look at the concatenated pdf,before data is applied I have found
> that the field is "sort of" missing. Its there but the black border
> around is missing when putting it into edit mode. The field that has
> the data and displays correctly has the black border around it.
> 
> The pdf templates I am working with are save on version 1.6 Acrobat 7
> and utilise the fonts from the system and not embedded. All fields are
> set to read only.
> 
> The code I use to concatenate comes from "roseindia.net" site which
> has been altered for our
> needs.(http://www.roseindia.net/java/itext/ConcatenateMoreThanTwoPdfFiles.shtml)
> All our code runs within a IBM Lotus Domino environment. The original
> code used the older jar files of itext and I am using the latest.

You've used code from an unofficial source.
You should use the official documentation.

> Any suggestions and help would be very much appreciated. We are trying
> keep our code contained in our development enviroment and not use
> external api's to generate pdf's and iText seems the best way to do
> this for us.

Your problem is explained in chapter 6 of the second edition of "iText 
in Action". You can't use PdfCopy to concatenate forms! You need to use 
PdfCopyFields.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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