Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-09-07       - By Shailendra Mishra

 Back
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: 'iText-questions@(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: '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




<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft
-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1=
"urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC
-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@(protected)
  {font-family:Tahoma;
  panose-1 (See http://ose-1.ora-code.com):2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
  {margin:0in;
  margin-bottom:.0001pt;
  font-size:12.0pt;
  font-family:"Times New Roman";}
a:link, span.MsoHyperlink
  {color:blue;
  text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
  {color:purple;
  text-decoration:underline;}
span.EmailStyle17
  {mso-style-type:personal;
  font-family:Arial;
  color:windowtext;}
span.EmailStyle18
  {mso-style-type:personal;
  font-family:Arial;
  color:navy;}
span.EmailStyle20
  {mso-style-type:personal-reply;
  font-family:Arial;
  color:navy;}
@(protected) Section1
  {size:8.5in 11.0in;
  margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
  {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Dear Itext,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&nbsp;&nbsp;&nbsp; Please do help it out.:
-<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&#8217;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'><o:p>&nbsp;</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&#8217;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'>PushbuttonFiel lpbf = new PushbuttonField(writer, new
Rectangle(20, vbot+30, 100, vbot+60), &quot;Button1&quot;);<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(&quot;this.print(true);\r&quot;, 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>&nbsp;</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(&quot;this.close(true);
\r&quot;, writer);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</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'>&nbsp;<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 style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
<font
size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p>&nbsp;</o:p><
/span></font></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:27 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
'iText-questions@(protected)'<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>&nbsp;</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>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;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&#8217;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&#8217;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), &quot;Button1&quot;);<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(&quot;this.print(true);\r&quot;, 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>&nbsp;</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(&quot;this.close(true);
\r&quot;, 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'>&nbsp;<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>&nbsp;</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'>&nbsp;</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">
'itext-questions-bounces@(protected)'</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>&nbsp;</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>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;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&#8217;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&#8217;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), &quot;Button1&quot;);<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(&quot;this.print(true);\r&quot;, 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>&nbsp;</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(&quot;this.close(true);
\r&quot;, 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>&nbsp;</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>&nbsp;</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'>&nbsp;<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>&nbsp;</o:p></span></font></p>

</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/

©2008 junlu.com - Jax Systems, LLC, U.S.A.