<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : Javascript to auto-print on open</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : Javascript to auto-print on open]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 06:25:43 +0000</pubDate>
  <lastBuildDate>Sat, 15 Jan 2011 18:43:17 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=1697</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[Javascript to auto-print on open : Success of all these methods depends...]]></title>
   <link>http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7477.html#7477</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1138">Ruturaaj</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 15 Jan 11 at 6:43PM<br /><br />Success of all these methods depends on the Reader Preferences and Security settings, be aware of that please.]]>
   </description>
   <pubDate>Sat, 15 Jan 2011 18:43:17 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7477.html#7477</guid>
  </item> 
  <item>
   <title><![CDATA[Javascript to auto-print on open : There is function in Quick PDF...]]></title>
   <link>http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7473.html#7473</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1251">Dimitry</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 15 Jan 11 at 11:13AM<br /><br />There is function in Quick PDF Library called SetOpenActionJavaScript(). <DIV>It&nbsp;embedds a block of JavaScript that is executed as the document is opened.</DIV><DIV>So it takes just to load PDF file, add some JavaScript and save modyfied PDF.</DIV><DIV>&nbsp;</DIV><DIV>The most simple JavaScript that prints entire document looks like:</DIV><DIV>&nbsp; this.print()</DIV><DIV>&nbsp;</DIV><DIV>In addition here is useful article about <a href="http://www.planetpdf.com/developer/article.asp?C&#111;ntentID=printing_page_ranges_quickly_w" target="_blank">Printing page ranges quickly with JavaScript</A></DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by Dimitry - 15 Jan 11 at 2:11PM</span>]]>
   </description>
   <pubDate>Sat, 15 Jan 2011 11:13:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7473.html#7473</guid>
  </item> 
  <item>
   <title><![CDATA[Javascript to auto-print on open : Hi Eric!...and perhaps it&amp;#039;s...]]></title>
   <link>http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7415.html#7415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 04 Jan 11 at 7:34AM<br /><br />Hi Eric!<br><br>...and perhaps it's Foxit.<br>You want a common javascript solution to insert into the pdf for calling the printer dialog.<br>The prob is that each printer dialog from the external pdf-control has slightly different parameters/properties. So you won't get a solution covering all things.<br>QuickPDF has a simple functionality for printing pdf-documents. <br>Perhaps that's the best for you now?<br><br>Cheers, Ingo<br>&nbsp;<br>]]>
   </description>
   <pubDate>Tue, 04 Jan 2011 07:34:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7415.html#7415</guid>
  </item> 
  <item>
   <title><![CDATA[Javascript to auto-print on open : Who knows? :) Whatever the end-user...]]></title>
   <link>http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7414.html#7414</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1098">Eric24</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 03 Jan 11 at 10:46PM<br /><br />Who knows? :) Whatever the end-user has installed. We are testing with 8, 9, and X.<DIV>--Eric</DIV>]]>
   </description>
   <pubDate>Mon, 03 Jan 2011 22:46:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7414.html#7414</guid>
  </item> 
  <item>
   <title><![CDATA[Javascript to auto-print on open : Which version of Adobe Reader...]]></title>
   <link>http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7413.html#7413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 03 Jan 11 at 3:54PM<br /><br />Which version of Adobe Reader are you using?]]>
   </description>
   <pubDate>Mon, 03 Jan 2011 15:54:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7413.html#7413</guid>
  </item> 
  <item>
   <title><![CDATA[Javascript to auto-print on open : Ingo-- Yes, those methods I&amp;#039;m...]]></title>
   <link>http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7412.html#7412</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1098">Eric24</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 03 Jan 11 at 3:51PM<br /><br />Ingo--<DIV>Yes, those methods I'm familiar with, but I need to do this with JavaScript, as I don't have control of actually launching the reader. I am generating a PDF file on the server that is delivered to the reader within a browser frame--that works fine, I just want to automatically start the print process (i.e. show the print dialog) as soon as the document has been loaded by the reader-in-browser. That seems possible, in that there is a document JavaScript function to print and a way to add JavaScript to the "onOpen" event, but it's not working for me.</DIV><DIV>--Eric</DIV>]]>
   </description>
   <pubDate>Mon, 03 Jan 2011 15:51:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7412.html#7412</guid>
  </item> 
  <item>
   <title><![CDATA[Javascript to auto-print on open : Hi Eric!Using the Adobe Reader...]]></title>
   <link>http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7411.html#7411</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 03 Jan 11 at 8:56AM<br /><br />Hi Eric!<br><br>Using the Adobe Reader you can deal a bit with the following two lines.<br>c = Reader with path / Edit1.Text = pdf-document with path:<br>//&nbsp; ShellExecute(hinstance,'open',PChar(c),PChar('/p ' + Edit1.Text),nil,SW_SHOWNORMAL);<br>//&nbsp; ShellExecute(hinstance,'open',PChar(Edit1.Text),PChar('/p /h '),nil,SW_SHOWNORMAL);<br><br>You can try using keyboard-events, too:<br>//&nbsp;&nbsp;&nbsp; Keybd_Event(VK_MENU,0,0,0);<br>//&nbsp;&nbsp;&nbsp; Keybd_Event(VK_F4,0,0,0);<br>//&nbsp;&nbsp;&nbsp; Keybd_Event(VK_F4,0,KEYEVENTF_KEYUP,0);<br>//&nbsp;&nbsp;&nbsp; Keybd_Event(VK_MENU,0,KEYEVENTF_KEYUP,0);<br><br>Or try this one:<br>&nbsp;&nbsp;&nbsp; ShellExecute(hinstance,'open',PChar(Edit1.Text),nil,nil,SW_SHOWNORMAL);<br>&nbsp;&nbsp;&nbsp; sleep(2000);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Keybd_Event(VK_CONTROL,0,0,0);<br>&nbsp;&nbsp;&nbsp; Keybd_Event(Ord('P'),MapVirtualKey(Ord('P'), 0),0,0);<br>&nbsp;&nbsp;&nbsp; Keybd_Event(Ord('P'),MapVirtualKey(Ord('P'), 0),KEYEVENTF_KEYUP,0);<br>&nbsp;&nbsp;&nbsp; Keybd_Event(VK_CONTROL,0,KEYEVENTF_KEYUP,0);<br><br>Cheers, Ingo<br><br><br>]]>
   </description>
   <pubDate>Mon, 03 Jan 2011 08:56:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7411.html#7411</guid>
  </item> 
  <item>
   <title><![CDATA[Javascript to auto-print on open : I&amp;#039;m having trouble finding...]]></title>
   <link>http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7410.html#7410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1098">Eric24</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 03 Jan 11 at 5:04AM<br /><br />I'm having trouble finding the appropriate Javascript to add to the document (via SetOpenActionJavaScript, presumably) to get Acrobat Reader (etc.) to automatically print the document when it's opened. Of course, I realize that it won't actually print the document "silently", but it seems like it should be possible to get it to launch the user's print dialog.]]>
   </description>
   <pubDate>Mon, 03 Jan 2011 05:04:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/javascript-to-autoprint-on-open_topic1697_post7410.html#7410</guid>
  </item> 
 </channel>
</rss>