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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to