Sorry I took so long..
Attached are the closeform.htm, and closeform.pdf files.
Place them in a web directory. Open closeform.pdf. Click “Close Form”.
A running example can be viewed at http://nk-inc.com/fdftoolkit/
tutorials/programming/closeform.pdf
Regards,
Nick Kowalewicz
From: Shailendra Mishra [mailto:[EMAIL PROTECTED]
Sent: Friday, September 07, 2007 6:10 AM
To: [EMAIL PROTECTED]
Subject: RE: [iText-questions] Urgent Help - How to close the pdf
file through pushButton
Hi Nick,
Please send me examples or some for understanding. Really which is
highly appreciated to do so.
Thanks in advance!!
With Kind Regards,
Shailendra Kumar Mishra
From: Nick Kowalewicz [mailto:[EMAIL PROTECTED]
Sent: Friday, September 07, 2007 3:29 PM
To: Shailendra Mishra
Subject: RE: [iText-questions] Urgent Help - How to close the pdf
file through pushButton
The window where the PDF is open is closed.
PDF Submit to html form – PDF turns into HTML form, The HTML form
and PDF closes..
From: Shailendra Mishra [mailto:[EMAIL PROTECTED]
Sent: Friday, September 07, 2007 5:57 AM
To: [EMAIL PROTECTED]; Post all your questions about iText here
Subject: RE: [iText-questions] Urgent Help - How to close the pdf
file through pushButton
Hi Nick,
Thanks for your response. Problem is that on submitting the new
window will be going to open and when we put window.close(). That
window get closed. Not the parent Pdf. If I am wrong please do
correct me.
Thanks!!
With Kind Regards,
Shailendra Kumar Mishra
Sr. Software Developer - IT(DARES)
Option One Mortgage Corporation ( India ) Private Limited
Tower VI - Level 3 and 4
Cybercity
Magarpatta City
Hadapsar , Pune - 411013
Tel: 00 91-20-30416500
Direct: +91-20-30416665
Mobile: +91-9326727753
US Extn : 74049
http://www.oomcindia.com
<image001.gif>
From: [EMAIL PROTECTED] [mailto:itext-
[EMAIL PROTECTED] On Behalf Of Nick Kowalewicz
Sent: Friday, September 07, 2007 2:07 PM
To: 'Post all your questions about iText here'
Subject: Re: [iText-questions] Urgent Help - How to close the pdf
file through pushButton
I do not think there is a close event with Adobe Acrobat. What I
have done is send a javascript submit script to a web page. Within
the opened web page have a javascript OnLoad event trigger a
window.close(); action.
From: [EMAIL PROTECTED] [mailto:itext-
[EMAIL PROTECTED] On Behalf Of Shailendra
Mishra
Sent: Friday, September 07, 2007 3:59 AM
To: [email protected]
Subject: [iText-questions] Urgent Help - How to close the pdf file
through pushButton
Dear Itext,
Please do help it out.:-
I want to close the pdf file through the Pushbutton field. On the
press of close button the pdf file should be closed. I used for the
print button it’s working fine. Below is the code for print and
close. Print is working fine not close. Please do send the code for
close button.
//this is for print button. It’s working fine
PushbuttonFiel lpbf = new PushbuttonField(writer, new Rectangle(20,
vbot+30, 100, vbot+60), "Button1");
PdfAction ac1 = PdfAction.javaScript("this.print(true);\r", writer);
//This is for close Not Working
PdfAction ac1 = PdfAction.javaScript("this.close(true); \r", writer);
Thanks!!
With Kind Regards,
Shailendra Kumar Mishra
From: Shailendra Mishra
Sent: Friday, September 07, 2007 11:27 AM
To: '[email protected]'
Subject: Help - How to close the pdf file through pushButton
Hi All,
I want to close the pdf file through the Pushbutton field. On the
press of close button the pdf file should be closed. I used for the
print button it’s working fine. Below is the code for print and
close. Print is working fine not close. Please do send the code for
close button.
//this is for print button. It’s working fine
lpbf = new PushbuttonField(writer, new Rectangle(20, vbot+30, 100,
vbot+60), "Button1");
PdfAction ac1 = PdfAction.javaScript("this.print(true);\r", writer);
//This is for close Not Working
PdfAction ac1 = PdfAction.javaScript("this.close(true); \r", writer);
Thanks!!
With Kind Regards,
Shailendra Kumar Mishra
From: Shailendra Mishra
Sent: Friday, September 07, 2007 11:15 AM
To: '[EMAIL PROTECTED]'
Subject: help - How to close the pdf file through pushButton
Hi All,
I want to close the pdf file through the Pushbutton field. On the
press of close button the pdf file should be closed. I used for the
print button it’s working fine. Below is the code for print and
close. Print is working fine not close. Please do send the code for
close button.
//this is for print button. It’s working fine
lpbf = new PushbuttonField(writer, new Rectangle(20, vbot+30, 100,
vbot+60), "Button1");
PdfAction ac1 = PdfAction.javaScript("this.print(true);\r", writer);
//This is for close Not Working
PdfAction ac1 = PdfAction.javaScript("this.close(true); \r", writer);
Thanks in advance!!
With Kind Regards,
Shailendra Kumar Mishra
<image001.gif>
<closeform.htm>
<closeform.pdf>
----------------------------------------------------------------------
---
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/