<?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 : Problem with SetRenderDCOffset</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 : Problem with SetRenderDCOffset]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 19:55:40 +0000</pubDate>
  <lastBuildDate>Tue, 29 Sep 2015 09:13:33 +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=2799</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[Problem with SetRenderDCOffset : Nevermind, it was my mistake....]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post12728.html#12728</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2778">JeffLebowski</a><br /><strong>Subject:</strong> 2799<br /><strong>Posted:</strong> 29 Sep 15 at 9:13AM<br /><br />Nevermind, it was my mistake. Got it to work :)]]>
   </description>
   <pubDate>Tue, 29 Sep 2015 09:13:33 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post12728.html#12728</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with SetRenderDCOffset : Hi,I needed exactly the same thing...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post12727.html#12727</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2778">JeffLebowski</a><br /><strong>Subject:</strong> 2799<br /><strong>Posted:</strong> 29 Sep 15 at 9:09AM<br /><br />Hi,<div><br></div><div>I needed exactly the same thing and I used&nbsp;<span style="font-size: 11px; line-height: 15.4px; : rgb251, 251, 253;">AndrewC's code (but in VBScript).</span></div><div><span style="font-size: 11px; line-height: 15.4px; : rgb251, 251, 253;">It works but only applies the offset to the first page. The other pages in the PDF remain without offset.</span></div><div><span style="font-size: 11px; line-height: 15.4px; : rgb251, 251, 253;"><br></span></div><div><span style="font-size: 11px; line-height: 15.4px; : rgb251, 251, 253;">I'm not that experienced with the quickpdf functions. Is there an easy way to add the offsetstream to each page?</span></div>]]>
   </description>
   <pubDate>Tue, 29 Sep 2015 09:09:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post12727.html#12727</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with SetRenderDCOffset : Siggel,Another option is to add...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post11435.html#11435</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2799<br /><strong>Posted:</strong> 14 Jan 14 at 11:08AM<br /><br />Siggel,<div><br></div><div>Another option is to add a transformation matrix to the start to the PDF page to give it an offset.</div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.LoadFromFile("myPDFfile.pdf", "");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.NormalizePage(0);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int c = QP.NewContentStream();</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string s = "1.05 0 0 0.5 20 200 cm "; &nbsp; // ScaleX = 1.05, ScaleY = 0.5, XOffset = 20 points, YOffset = 200 points (from bottom)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Byte&#091;&#093; bytes = encoding.GetBytes(s);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SetContentStreamFromString(bytes);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.MoveContentStream(c, 1);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SaveToFile("out.pdf");</div></div><div><br></div><div>You can always delete the added content stream after printing to restore the PDF page to its original state.</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 14 Jan 2014 11:08:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post11435.html#11435</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with SetRenderDCOffset : My full solution: when only modifying...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post11432.html#11432</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2507">siggeltheturtle</a><br /><strong>Subject:</strong> 2799<br /><strong>Posted:</strong> 13 Jan 14 at 9:16PM<br /><br />My full solution: when only modifying the crop box, I only was able to shift to the outside, but not into the page. I tried different combinations and finally ended up modifying all boxes in the same way to get the desired behavior.<br>]]>
   </description>
   <pubDate>Mon, 13 Jan 2014 21:16:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post11432.html#11432</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with SetRenderDCOffset : Siggel,The QP.SetRenderDCOffset...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post11414.html#11414</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2799<br /><strong>Posted:</strong> 29 Dec 13 at 2:19AM<br /><br /><div>Siggel,</div><div><br></div>The <span style="font-family: 'Courier New', Courier, mono; : rgb251, 251, 253;">QP.SetRenderDCOffset function is only designed to work with the RenderPageToDC function.</span><div><span style="font-family: 'Courier New', Courier, mono; : rgb251, 251, 253;"><br></span></div><div><span style="font-family: 'Courier New', Courier, mono; : rgb251, 251, 253;">One option may be to adjust the MediaBox/CropBox values to offset the whole page in order to simulate the setting of a printer margin.</span></div><div><span style="font-family: 'Courier New', Courier, mono; : rgb251, 251, 253;"><br></span></div><div><span style="font-family: 'Courier New', Courier, mono; : rgb251, 251, 253;">Andrew.</span></div><div><span style="font-family: 'Courier New', Courier, mono; : rgb251, 251, 253;"><br></span></div><div><span style="font-family: 'Courier New', Courier, mono; : rgb251, 251, 253;"><br></span></div>]]>
   </description>
   <pubDate>Sun, 29 Dec 2013 02:19:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post11414.html#11414</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with SetRenderDCOffset : Hi all,my goal is to send a pdf...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post11401.html#11401</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2507">siggeltheturtle</a><br /><strong>Subject:</strong> 2799<br /><strong>Posted:</strong> 20 Dec 13 at 12:13PM<br /><br />Hi all,<br><br>my goal is to send a pdf to a defined printer with defined settings like tray, dpi etc. One important functionality is to shift the pdf to a defined offset position in order to align it precisely for different printers.<br><br>I tried some C++ example code and everything works fine - except for the offset having no impact at all. What I did (after unlocking the library and leaving out error handling here, except for the offset the code successfully printed out the given pdf):<br><br><font face="Courier New, Courier, mono">QP.LoadFromFile(L"my.pdf", L""));<br>CustomPrinter = QP.NewCustomPrinter(L"Printername");<br>QP.SetupCustomPrinter(CustomPrinter, 5, 720) // dpi<br>...<br>iPrintOptions = QP.PrintOptions(0,0, L"Printing Sample");<br>QP.SetRenderDCOffset(50,100); // offset<br>QP.PrintDocument(CustomPrinter, 1, 1, iPrintOptions);</font><br><br>I tried the offset line at different places, but it had no impact. Am I using it in a wrong way? Or is there a completely different way for shifting the incoming pdf before printing it out?<br><br>Thanks in advance for your help,<br>siggeltheturtle<br>]]>
   </description>
   <pubDate>Fri, 20 Dec 2013 12:13:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setrenderdcoffset_topic2799_post11401.html#11401</guid>
  </item> 
 </channel>
</rss>