AcroForm and AcroField
- From: "Paulo Soares" <psoares (at) consiste.pt>
- Date: Thu, 31 Aug 2006 18:36:14 +0100
They have all the same name, if you change one, the others also change.
Paulo
----- Original Message -----
From: "Henry Doan" <geiz777 (at) msn.com>
To: <itext-questions (at) lists.sourceforge.net>
Sent: Thursday, August 31, 2006 5:47 PM
Subject: [iText-questions] AcroForm and AcroField
> Hi i am coping the same pdf file into one big one and each time i copy
> them
> in I fill out the form field uniquely, and it shows up too. But when i
> try
> to change the form field inside a browser on one pdf page it changes on
> all
> of the other pdf page too.
>
>
> Heres my code:
>
> // FOR COPYING FORMS
> PdfCopyFields copy = new PdfCopyFields(baos);
> // GET THE FILE
> PdfReader reader2 = null, reader = new PdfReader("e:/myFile.pdf");
>
> int tmp =0;
> while (tmp <= 5){
> // WRITE TO PDF
> reader2 = new PdfReader("e:/Webs/walton/ICF.pdf");
> stamp1 = new PdfStamper(reader2, baos2);
> acroField = stamp1.getAcroFields();
> acroField.setField("Name", strName);
>
> stamp1.close();
> reader.close();
>
> //write to baos then read from it and copy it to [copy]
> reader2 = new PdfReader(baos2.toByteArray());
> copy.addDocument(reader2);
> tmp++;
> }
>
> Thank you,
>
> _________________________________________________________________
> Windows Live Spaces is here! It's easy to create your own personal Web
> site.
> http://spaces.live.com/signup.aspx
>
>
>
--------------------------------------------------------------------------------
> -------------------------------------------------------------------------
> 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 (at) lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------------------------
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 (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions