  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | -none- | -none- 2007-09-07 - By Leonard Rosenthol
Back 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: 'itext-questions-bounces@(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 > iText-questions@(protected) > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line -break: after-white-space; ">So you click this button and it doesn't work?? In Acrobat or Reader or both?? What version(s)?<DIV><BR class="khtml-block -placeholder"></DIV><DIV>Leonard</DIV><DIV><BR><DIV><DIV>On Sep 7, 2007, at 1:56 AM, Shailendra Mishra wrote:</DIV><BR class="Apple-interchange-newline"> <BLOCKQUOTE type="cite"><O:SMARTTAGTYPE namespaceuri="urn:schemas-microsoft-com :office:smarttags" name="PersonName"> <DIV class="Section1"><P class="MsoNormal" ><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial" >Hi All,<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face= "Arial"><SPAN style="font-size:10.0pt; font-family:Arial"><O:P>?</O:P></SPAN>< /FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font -size:10.0pt; font-family:Arial">?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.<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face= "Arial"><SPAN style="font-size:10.0pt; font-family:Arial">//this is for print button. It?s working fine<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"> <FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial" >lpbf = new PushbuttonField(writer, new Rectangle(20, vbot+30, 100, vbot+60), "Button1");<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face ="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">PdfAction ac1 = PdfAction.javaScript("this.print(true);\r", writer);<O:P></O:P></SPAN></FONT>< /P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10 .0pt; font-family:Arial"><O:P>?</O:P></SPAN></FONT></P><P class="MsoNormal"> <FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">/ /This is for close Not Working<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"> <FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial" >PdfAction ac1 = PdfAction.javaScript("this.close(true); \r", writer);<O:P></O:P ></SPAN></FONT></P> <DIV><P class="MsoNormal" style="mso-margin-top-alt:auto;mso -margin-bottom-alt:auto"><STRONG><B><FONT size="1" color="navy" face="Tahoma"> <SPAN style="font-size:8.0pt;font-family:Tahoma; color:navy">Thanks!!</SPAN>< /FONT></B></STRONG><FONT size="1" color="navy" face="Tahoma"><SPAN style="font -size:8.0pt;font-family:Tahoma;color:navy"><O:P></O:P></SPAN></FONT></P><P class ="MsoNormal"><STRONG><B><FONT size="1" color="navy" face="Tahoma"><SPAN style= "font-size:8.0pt;font-family:Tahoma;color:navy">With Kind Regards,</SPAN></FONT> </B></STRONG><FONT size="1" color="navy" face="Tahoma"><SPAN style="font-size:8 .0pt;font-family:Tahoma; color:navy"><O:P></O:P></SPAN></FONT></P> <DIV><P class ="MsoNormal"><FONT size="1" color="navy" face="Tahoma"><SPAN style="font-size: 8 .0pt;font-family:Tahoma;color:navy">?<O:P></O:P></SPAN></FONT></P> </DIV> <DIV> <P class="MsoNormal"><STRONG><B><FONT size="1" color="navy" face="Tahoma"><SPAN style="font-size:8.0pt;font-family:Tahoma;color:navy">Shailendra Kumar Mishra< /SPAN></FONT></B></STRONG><FONT size="1" color="navy" face="Tahoma"><SPAN style= "font-size:8.0pt;font-family:Tahoma; color:navy"><O:P></O:P></SPAN></FONT></P> < /DIV><P class="MsoNormal"><FONT size="3" color="navy" face="Times New Roman"> <SPAN style="font-size:12.0pt;color:navy"><O:P>?</O:P></SPAN></FONT></P><P class ="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><FONT size="3" color="navy" face="Times New Roman"><SPAN style="font-size:12.0pt; color:navy">?</SPAN></FONT><O:P></O:P></P> </DIV> <DIV> <DIV class="MsoNormal" align="center" style="text-align:center"><FONT size="3" face="Times New Roman"> <SPAN style="font-size:12.0pt"> <HR size="2" width="100%" align="center" tabindex="-1"> </SPAN></FONT></DIV><P class="MsoNormal"><B><FONT size="2" face= "Tahoma"><SPAN style="font-size:10.0pt; font-family:Tahoma;font-weight:bold" >From:</SPAN></FONT></B><FONT size="2" face="Tahoma"><SPAN style="font-size:10 .0pt;font-family:Tahoma"> Shailendra Mishra <BR> <B><SPAN style="font-weight :bold">Sent:</SPAN></B> Friday, September 07, 2007 11:15 AM<BR> <B><SPAN style= "font-weight:bold">To:</SPAN></B> <ST1:PERSONNAME w:st="on">'<A href="mailto :itext-questions-bounces@(protected)">itext-questions-bounces@(protected) .sourceforge.net</A>'</ST1:PERSONNAME><BR> <B><SPAN style="font-weight:bold" >Subject:</SPAN></B> help - How to close the pdf file through pushButton</SPAN>< /FONT><O:P></O:P></P> </DIV><P class="MsoNormal"><FONT size="3" face="Times New Roman"><SPAN style="font-size: 12.0pt"><O:P>?</O:P></SPAN></FONT></P><P class= "MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font -family:Arial">Hi All,<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial"><O:P>?< /O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">?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.<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">//this is for print button. It?s working fine<O:P></O:P></SPAN></FONT></P><P class="MsoNormal "><FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial" >lpbf = new PushbuttonField(writer, new Rectangle(20, vbot+30, 100, vbot+60), "Button1");<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"><FONT size="2" face ="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">PdfAction ac1 = PdfAction.javaScript("this.print(true);\r", writer);<O:P></O:P></SPAN></FONT>< /P><P class="MsoNormal"><FONT size="2" face="Arial"><SPAN style="font-size:10 .0pt; font-family:Arial"><O:P>?</O:P></SPAN></FONT></P><P class="MsoNormal"> <FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial">/ /This is for close Not Working<O:P></O:P></SPAN></FONT></P><P class="MsoNormal"> <FONT size="2" face="Arial"><SPAN style="font-size:10.0pt; font-family:Arial" >PdfAction ac1 = PdfAction.javaScript("this.close(true); \r", writer);<O:P></O:P ></SPAN></FONT></P><P class="MsoNormal"><STRONG><B><FONT size="1" color="navy" face="Tahoma"><SPAN style="font-size:8.0pt;font-family:Tahoma;color:navy"><O:P> ?</O:P></SPAN></FONT></B></STRONG></P><P class="MsoNormal"><STRONG><B><FONT size ="1" color="navy" face="Tahoma"><SPAN style="font-size:8.0pt;font-family:Tahoma ;color:navy">Thanks in advance!!<O:P></O:P></SPAN></FONT></B></STRONG></P><P class="MsoNormal"><STRONG><B><FONT size="1" color="navy" face="Tahoma"><SPAN style="font-size:8.0pt;font-family:Tahoma;color:navy"><O:P>?</O:P></SPAN></FONT ></B></STRONG></P><P class="MsoNormal"><STRONG><B><FONT size="1" color="navy" face="Tahoma"><SPAN style="font-size:8.0pt;font-family:Tahoma;color:navy">With Kind Regards,</SPAN></FONT></B></STRONG><O:P></O:P></P> <DIV><P class= "MsoNormal"><FONT size="1" color="navy" face="Tahoma"><SPAN style="font-size: 8 .0pt;font-family:Tahoma;color:navy">?<O:P></O:P></SPAN></FONT></P> </DIV> <DIV> <P class="MsoNormal"><STRONG><B><FONT size="1" color="navy" face="Tahoma"><SPAN style="font-size:8.0pt;font-family:Tahoma;color:navy">Shailendra Kumar Mishra< /SPAN></FONT></B></STRONG><FONT size="1" color="navy" face="Tahoma"><SPAN style= "font-size:8.0pt;font-family:Tahoma; color:navy"><O:P></O:P></SPAN></FONT></P> < /DIV><P class="MsoNormal"><FONT size="3" face="Times New Roman"><SPAN style= "font-size: 12.0pt"><O:P>?</O:P></SPAN></FONT></P> </DIV> </O:SMARTTAGTYPE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px ; ">-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----< /DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin -left: 0px; ">This SF.net email is sponsored by: Splunk Inc.</DIV><DIV style= "margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; " >Still grepping through log files to find problems?<SPAN class="Apple-converted -space">? </SPAN>Stop.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Now Search log events and configuration files using AJAX and a browser.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Download your FREE copy of Splunk now >><SPAN class="Apple-converted-space">? </SPAN><A href="http://get .splunk.com/__ ____ ____ ____ ____ ____ ____ ____ ____ ____">http://get.splunk .com/__ ____ ____ ____ ____ ____ ____ ____ ____ ____</A></DIV><DIV style="margin -top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">iText -questions mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:iText-questions@(protected) .sourceforge.net">iText-questions@(protected)</A></DIV><DIV style= "margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.sourceforge.net/lists/listinfo/itext-questions">https:/ /lists.sourceforge.net/lists/listinfo/itext-questions</A></DIV><DIV style= "margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Buy the iText book: <A href="http://itext.ugent.be/itext-in-action/">http://itext .ugent.be/itext-in-action/</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- 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 iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |