I I have existing static pdf file, when I want to fill the same pdf what
the sutible procedure?
I have text field in the static pdf I want fill the field in the same pdf? I
read the pdf and I want to fill the same pdf file that it oppened?
I have the folloing statment but I do not want this ??? I want read the
PDFform.pdf and I want fill PDFform.pdf the same file....
How I can do my request!?
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.pdf.AcroFields;
import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.PdfStamper;
public class FillText
{
public static void main(String[] args) throws
IOException,DocumentException
{
editField(); // call methode editField
} // end methode main
private static void editField() throws IOException,FileNotFoundException,
DocumentException
{
// read an existing pdf file
PdfReader reader1 = new PdfReader("PDFform.pdf");
PdfStamper stamper = new PdfStamper(reader1, new
FileOutputStream("test.pdf"));
stamper.getAcroFields().setField("Name", "She is work");
stamper.close();
reader1.close();
} // end methode
} // end class
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/How-I-can-fill-existing-static-pdf-file-tp3947273p3947273.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php