Hi Bruno,
Thanks once again for your reply.
 
The examples and scenario you mentioned in your reply work when the pdf form has form fields.
 
But i don't have form fields for the items i've specified. So i am trying to display the text dynamically with out using form fieldd.
 
Can you suggest me few examples regarding this or any turn around to achieve this (except not using form fields).
 
Thanks in advance
Krishna Kishore
 
----- Original Message -----
From: "Bruno Lowagie" <[EMAIL PROTECTED]>
To: "Krishna Kishore .J" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Wednesday, June 08, 2005 4:23 PM
Subject: Re: [iText-questions] Help required to insert static text on an existing pdf

> Krishna Kishore .J wrote:
>
> > Hi Bruno,
> > 
> >  Thanks for your immediate reply. Pls read.
> > 
> > I have a pdf (input.pdf) form some thing like this:
> > 
> >  Name:
> >  Company:
> > 
> >  Now i have to read this pdf form and add content for name and age,
> > the resultant pdf should be like this:
> > 
> >  Name: Kishore
> >  Company: CEI
>
> I guess you are using PdfStamper to fill in the fields.
>
> > <>  The problem i am encountering is when i open the input pdf form
> > (input.pdf) and insert text,
>
> manually?
>
> >  the existing content is gone and its displaying only the new content
> > on the resultant pdf.
>
> Isn't that expected behaviour?
> If you don't want the end user to be able to change the filled in
> fields, you need to flatten the PDF. This is documented in the tutorial.
>
http://itextdocs.lowagie.com/tutorial/general/copystamp/#pdfstamper
>
> There's an example that is almost exactly the same as the case you describe.
> There's an empty form:
>
http://itextdocs.lowagie.com/tutorial/general/copystamp/SimpleRegistrationForm.pdf
> It's filled in with iText in two different ways:
>
http://itextdocs.lowagie.com/tutorial/general/copystamp/registered.pdf
> (the fields can be changed after iText filled them in) and
>
http://itextdocs.lowagie.com/tutorial/general/copystamp/registered_flat.pdf
> (the fields can't be changed; the form is 'flattened')
>
> br,
> Bruno

Reply via email to