That looks great!!!  Thank you very much for the information.
----- Original Message -----
Sent: Friday, May 14, 2004 10:23 AM
Subject: RE: [iText-questions] Any form filling examples

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-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of chicks
Sent: Friday, May 14, 2004 10:56 AM
To: Jason Mosher - hotmail; [EMAIL PROTECTED]
Subject: Re: [iText-questions] Any form filling examples

 

 

--- 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

Reply via email to