Hi paulo,
Thank you very much for the reply. I am very much new to structure of
PDF's. I really got confused with ur packages(b-cos i have no idea about pdf's). I
only need to add a button and javascript action to this button. can you please help me
regarding this. Can u please mail me how can i do it..i mean which classes i should
use and which methods. I am very much grateful if u could do this for me.
One more thing I have come across something like adding action to the
document->setpageaction--> added script to hide the already added button..but it says
Acrobat Forms Built-in Functions Version 4.0
JavaScript Error at line 10:
illegal character
or
something like f has no properties..
This is the code i am using
var postident = this.getField("postident");
var f = this.getField("Submit");
app.alert(postident.value);
if(postident.value == "true")
f.display = display.hidden;
else
f.display = display.noprint;
Can u tell me what is the wrond with it..
Thank you,
bye,
vamsi.
-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED]]
Sent: Mittwoch, 10. April 2002 15:51
To: Bezawada Vamseedhar; [EMAIL PROTECTED]
Subject: RE: [iText-questions] adding button dynamically
iText only reads the printed content from a PDF. It leaves outside fields,
bookmarks and links. That said, changing a PDF the way you said in 1) is not
possible. Creating a new PDF or adding the fields to an existing PDF (SUBMIT
and probably others) is possible, with javascript, hiding, etc. All the
field possibilities are supported in iText.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Bezawada Vamseedhar [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 13:48
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] adding button dynamically
>
>
> > Hi,
> >
> > I have some problem modifying my PDF file using java. I will explain
> u breifly what i am expecting to do, please let me know if u have any
> idea.
> >
> > I have a servlet which redirects to the PDF file. Before forwarding to
> PDF file i need to check for some thing and according to that modify the
> PDF file. The possible case of PDF is either with SUBMIT Button or without
> SUBMIT Button. If the pdf file is with SUBMIT button then i need to hide
> the field(in one case). If it is without the button then i need to add the
> button(in the other case).
> >
> > 1) First situtaion is PDF with SUBMIT Button-----As i said i need to
> hide it, can it be done by using any of these packages?
> > 2) PDF without SUBMIT button----i need to add the button and also i need
> to add some java script action to the button. Is it possible in ur
> knowledge?
> >
> > Which way do u think is better to do?
> >
> > Thanks in advance,
> >
> > with regards,
> > vamsi.
> >
> >
> > P.S:- if i choose to create a PDF file with SUBMIT button, then in some
> cases i need to hide the button. Is this hiding possible by using ur java
> classes? if yes, can u please tell me how?
> >
> >
> >
>
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions