So you click this button and it doesn't work? In Acrobat or Reader or both? What version(s)?

Leonard

On Sep 7, 2007, at 1:56 AM, Shailendra Mishra wrote:

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



---------------------------------------------------------------------- ---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________
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/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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/

Reply via email to