|
Hi, I hope this would be
useful: PdfReader
reader = new PdfReader("PDFFILE.pdf"); ByteArrayOutputStream
bos = new ByteArrayOutputStream(); PdfStamper
stamp = new PdfStamper(reader, bos); AcroFields
form = stamp.getAcroFields(); form.setfield("field1","field1value"); ..... .... stamp.setFormFlattening(true); stamp.close(); File file = new File("MODIFIEDPDF.pdf"); file.createNewFile(); FileOutputStream
fos = new FileOutputStream(file); byte
[]fileByteArray = bos.toByteArray(); fos.write(fileByteArray); fos.close(); Dayal -----Original Message----- --- Jason Mosher - hotmail <[EMAIL PROTECTED]> wrote: > Does anybody have any examples of filling a form? > Basically what I am looking for is reading in a PDF > file with forms, filling them with some data and > writing the file back out with the filled values. > > Thank you very much in advanced. http://forum.planetpdf.com/wb/default.asp?action=""> __________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/ ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions |
- [iText-questions] Any form filling examples Jason Mosher - hotmail
- Re: [iText-questions] Any form filling example... chicks
- Re: [iText-questions] Any form filling exa... Dayal Murukutla
- Re: [iText-questions] Any form filling... Jason Mosher - hotmail
- RE: [iText-questions] Any form filling example... Paulo Soares
