<?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 : Change paper size problem</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 : Change paper size problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 00:17:43 +0000</pubDate>
  <lastBuildDate>Wed, 20 Oct 2010 14:04:58 +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=1582</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[Change paper size problem : To acoomplish what you&amp;#039;re...]]></title>
   <link>http://www.quickpdf.org/forum/change-paper-size-problem_topic1582_post7083.html#7083</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 1582<br /><strong>Posted:</strong> 20 Oct 10 at 2:04PM<br /><br /><div>To acoomplish what you're trying to do you'll need to use the custom printer functions.</div><div><br></div><div>NewCustomPrinter</div><div><a href="http://www.quickpdflibrary.com/help/quickpdf/NewCustomPrinter.php" target="_blank">http://www.quickpdflibrary.com/help/quickpdf/NewCustomPrinter.php</a></div><div><br></div><div>SetupCustomPrinter</div><div><a href="http://www.quickpdflibrary.com/help/quickpdf/SetupCustomPrinter.php" target="_blank">http://www.quickpdflibrary.com/help/quickpdf/SetupCustomPrinter.php</a></div><div><br></div><div>Some info on the custom printer functions here:</div><div><br></div><div><a href="http://help.quickpdflibrary.com/questi&#111;ns/53/how-do-i-use-the-setupcustomprinter-functi&#111;n" target="_blank">http://help.quickpdflibrary.com/questions/53/how-do-i-use-the-setupcustomprinter-function</a></div><div><br></div><div>And here is some JScript sample code which demonstrates how to use the functions:</div><div><br></div><div>--------------------------------------------------------</div><div>/* Create a custom printer and specify your own settings &nbsp;*/</div><div><br></div><div>// Load a sample file from the input folder</div><div><br></div><div>QP.LoadFromFile(GetInputFolder() + "JavaScript.pdf");&nbsp;</div><div><br></div><div>// Create the custom printer</div><div><br></div><div>CustomPrinter = QP.NewCustomPrinter("Microsoft XPS Document Writer");</div><div><br></div><div>// Setup the settings for the customer printer</div><div><br></div><div>// Medium quality</div><div><br></div><div>QP.SetupCustomPrinter(CustomPrinter, 5, 2);&nbsp;</div><div><br></div><div>// Monochrome</div><div><br></div><div>QP.SetupCustomPrinter(CustomPrinter, 6, 1);&nbsp;</div><div><br></div><div>// Horizontal Duplex</div><div><br></div><div>QP.SetupCustomPrinter(CustomPrinter, 7, 3);</div><div><br></div><div>// Configure print options</div><div><br></div><div>iPrintOptions = QP.PrintOptions(0, 0, "Printing Sample");</div><div><br></div><div>// Print the current document to the default printing&nbsp;</div><div>// using the options as configured above</div><div><br></div><div>QP.PrintDocument(CustomPrinter, 1, 1, iPrintOptions);</div><div>--------------------------------------------------------</div><div><br></div><div>So you need to setup the printer and the paper size for your customer printer before you call the PrintDocument function.</div>]]>
   </description>
   <pubDate>Wed, 20 Oct 2010 14:04:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/change-paper-size-problem_topic1582_post7083.html#7083</guid>
  </item> 
  <item>
   <title><![CDATA[Change paper size problem : Hello,  In my application I need...]]></title>
   <link>http://www.quickpdf.org/forum/change-paper-size-problem_topic1582_post7003.html#7003</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1414">mythcyrax</a><br /><strong>Subject:</strong> 1582<br /><strong>Posted:</strong> 29 Sep 10 at 11:11AM<br /><br /><P>&nbsp;Hello,</P><P>&nbsp;&nbsp;&nbsp; In my application I need to print PDF documents on different paper sizes (A1, A3, A4...). The problem is that I cannot change the printer's default paper size. What am I doing wrong?</P><DIV></DIV><DIV></DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>void</FONT></FONT><FONT size=2> QuickPDF_Print()</P><P>{</P><P>QuickPDFAX0721.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>PDFLibrary</FONT></FONT><FONT size=2> qp = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> QuickPDFAX0721.</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>PDFLibrary</FONT></FONT><FONT size=2>();</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> result = qp.UnlockKey(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"my key..."</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (result == 1)</P><P>{</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Load the document that you want to print into memory</P></FONT></FONT><FONT size=2><P>qp.LoadFromFile(Filename);</P><P>qp.SetPageSize("A4"); </P><DIV><P></P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Set the paramters for the PrintDocument function</DIV></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> PrinterName = PrintingOptions.Printer;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> StartPage = 1; </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Set first page number</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> EndPage = qp.PageCount(); </FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Set last page number</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Set the paramters for the PrintOptions function</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> PageScaling = 1;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> AutoRotateCenter = 1;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> Title = Filename;</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Assign the options for printing to an int variable</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>int</FONT></FONT><FONT size=2> Options = qp.PrintOptions(PageScaling, AutoRotateCenter, Title);</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// Print the document with the required paramters and options specified</P></FONT></FONT><FONT size=2><P>qp.PrintDocument(PrinterName, StartPage, EndPage, Options);</P><P>}</P><P>}</P></FONT>]]>
   </description>
   <pubDate>Wed, 29 Sep 2010 11:11:06 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/change-paper-size-problem_topic1582_post7003.html#7003</guid>
  </item> 
 </channel>
</rss>