Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Missing Field after PdfCopy

Henry Doan

2006-06-22

Replies:

I am trying to fill out the pdf fields with PdfStamper and concatenate it
with PdfCopy, but the fields are missing from every page but the first page.

Anyone know why that happened? Here is my code:

reader = new PdfReader("e:/Webs/walton/ICF.pdf");
stamp1 = new PdfStamper(reader, new FileOutputStream("file1.pdf"));
field = stamp1.getAcroFields();
field.setField("Name", "ASDFASFASDFASFASFD");
stamp1.close();
reader.close();

for(int x = 0; x < 3; x++){
  reader2 = new PdfReader("file2.pdf");
  page1 = writer.getImportedPage(reader2, 1);
  writer.addPage(page1);
  writer.copyAcroForm(reader2);
  reader2.close();
}

_________________________________________________________________
Don?t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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
©2008 junlu.com - Jax Systems, LLC, U.S.A.