<?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 : Create button to print PDF page</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 : Create button to print PDF page]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 09:17:05 +0000</pubDate>
  <lastBuildDate>Wed, 03 Apr 2013 20:41:01 +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=2587</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[Create button to print PDF page :  Hi Tom!Well done. It will help...]]></title>
   <link>http://www.quickpdf.org/forum/create-button-to-print-pdf-page_topic2587_post10677.html#10677</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2587<br /><strong>Posted:</strong> 03 Apr 13 at 8:41PM<br /><br />Hi Tom!<br><br>Well done. It will help other users, too.<br>So i've put it in the samples section.<br>Thanks a lot to your contribution.<br><br>Cheers and welcome here,<br>Ingo<br><br><span style="font-size:10px"><br /><br />Edited by Ingo - 03 Apr 13 at 8:41PM</span>]]>
   </description>
   <pubDate>Wed, 03 Apr 2013 20:41:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/create-button-to-print-pdf-page_topic2587_post10677.html#10677</guid>
  </item> 
  <item>
   <title><![CDATA[Create button to print PDF page : I&amp;#039;ve done, here is the code:void...]]></title>
   <link>http://www.quickpdf.org/forum/create-button-to-print-pdf-page_topic2587_post10675.html#10675</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1730">tado</a><br /><strong>Subject:</strong> 2587<br /><strong>Posted:</strong> 03 Apr 13 at 5:57PM<br /><br />I've done, here is the code:<div><br></div><div><div>void AddPrintButton(QuickPDFAX0813.PDFLibrary qp, string buttonName, int pageNumber)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (pageNumber &gt; 0)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetOrigin(1);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //set the page where the button appear</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SelectPage(pageNumber);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //get the size of the button</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var buttonWidth = qp.GetTextWidth(buttonName);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var buttonLocation = (qp.PageWidth()) - (buttonWidth) - 30;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var fieldIndex = qp.NewFormField(buttonName, 2); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldPrintable(fieldIndex, 0);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldBounds(fieldIndex, buttonLocation, 70, buttonWidth, 20);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldFont(fieldIndex, qp.GetFormFontCount());</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldTextSize(fieldIndex, 10);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldBorderColor(fieldIndex, 1, 0, 0);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldBorderStyle(fieldIndex, 1, 0, 0, 0);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldColor(fieldIndex, 1, 0, 0);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldCaption(fieldIndex, buttonName);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldValue(fieldIndex, "");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.SetFormFieldHighlightMode(fieldIndex, 3);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qp.FormFieldJavaScriptAction(fieldIndex, "U", "this.print({" +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "bUI: false," +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "bSilent: true," +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "bShrinkToFit: true," +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "nStart: " + (pageNumber - 1).ToString() + "," +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "nEnd: " + (pageNumber - 1).ToString() + "});"); &nbsp; &nbsp;// have -1 because the Acrobat Javascript PDF start page from 0</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div></div>]]>
   </description>
   <pubDate>Wed, 03 Apr 2013 17:57:10 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/create-button-to-print-pdf-page_topic2587_post10675.html#10675</guid>
  </item> 
  <item>
   <title><![CDATA[Create button to print PDF page :  Hi,I&amp;#039;m using QuickPDF version...]]></title>
   <link>http://www.quickpdf.org/forum/create-button-to-print-pdf-page_topic2587_post10672.html#10672</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1730">tado</a><br /><strong>Subject:</strong> 2587<br /><strong>Posted:</strong> 02 Apr 13 at 8:40PM<br /><br /><span style=": rgb251, 251, 253;">Hi,</span><div style=": rgb251, 251, 253;">I'm using QuickPDF version 8.13 with C# to print PDF file to printer.&nbsp;</div><div style=": rgb251, 251, 253;">Is there any way to add the Print button to page 3 (for ex), and then when user open the PDF they can print out page 3 by clicking to that button.</div><div style=": rgb251, 251, 253;"><br></div><div style=": rgb251, 251, 253;">Thanks</div><div style=": rgb251, 251, 253;">Tom</div><span style="font-size:10px"><br /><br />Edited by tado - 02 Apr 13 at 8:40PM</span>]]>
   </description>
   <pubDate>Tue, 02 Apr 2013 20:40:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/create-button-to-print-pdf-page_topic2587_post10672.html#10672</guid>
  </item> 
 </channel>
</rss>