I am creating a PDF, using PDFStamper and AcroFields, in which an existing PDF is used as a base layer and a second layer is used to display the data.  The base layer and the data layer are displayed together (code included), giving the appearance that they are one PDF, however I need the capability to print only the top data layer.  Is this possible?

 

 

================

 

PdfReader reader = new PdfReader("hcfa1500.pdf");

PdfStamper stamp = new PdfStamper(reader, new FileOutputStream("hcfaform.pdf"));

AcroFields form = stamp.getAcroFields();

 

form.setField("L1", "This is a test");

form.setField("L8", "X");

form.setField("L10", "Public, John, Q.");

form.setField("L12", "123 Main Street");

form.setField("L14", "Hometown");

form.setField("L16", "00000-0000");

 

stamp.close();

 

================

 

Thanks

 

 

Reply via email to