<?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 : Set the current transformation matrix</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 : Set the current transformation matrix]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 23:32:14 +0000</pubDate>
  <lastBuildDate>Thu, 19 Dec 2013 13:42:32 +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=2798</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[Set the current transformation matrix : Tony,The SetContentStreamFromString...]]></title>
   <link>http://www.quickpdf.org/forum/set-the-current-transformation-matrix_topic2798_post11400.html#11400</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2798<br /><strong>Posted:</strong> 19 Dec 13 at 1:42PM<br /><br /><div>Tony,</div><div><br></div>The SetContentStreamFromString will replace the entire content stream contents so yes the 'q' is needed and the call to SaveState should be removed. &nbsp;The 'Q' is appended correctly with the QP.LoadState call and should be used to balance out the initial 'q' - savestate operator.<div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Thu, 19 Dec 2013 13:42:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/set-the-current-transformation-matrix_topic2798_post11400.html#11400</guid>
  </item> 
  <item>
   <title><![CDATA[Set the current transformation matrix : Thanks for that.I had to repla...]]></title>
   <link>http://www.quickpdf.org/forum/set-the-current-transformation-matrix_topic2798_post11399.html#11399</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1162">tonyedgecombe</a><br /><strong>Subject:</strong> 2798<br /><strong>Posted:</strong> 19 Dec 13 at 1:14PM<br /><br />Thanks for that.<br /><br />I had to replace:<br /><table width="99%"><tr><td><pre class="BBcode">QP.SetContentStreamFromString(' 10 0 0 10 141.7323 572.5984 cm ');</pre></td></tr></table><br />with<br /><table width="99%"><tr><td><pre class="BBcode">QP.SetContentStreamFromString(' q 10 0 0 10 141.7323 572.5984 cm ');</pre></td></tr></table><br /><br />The SaveState method wasn't inserting the q operator, I'm not sure if this is because I'm doing something wrong or if it's a bug.<br /><br />Tony]]>
   </description>
   <pubDate>Thu, 19 Dec 2013 13:14:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/set-the-current-transformation-matrix_topic2798_post11399.html#11399</guid>
  </item> 
  <item>
   <title><![CDATA[Set the current transformation matrix : Basically the Draw functions add...]]></title>
   <link>http://www.quickpdf.org/forum/set-the-current-transformation-matrix_topic2798_post11398.html#11398</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2798<br /><strong>Posted:</strong> 18 Dec 13 at 8:57AM<br /><br /><div>Basically the Draw functions add drawing commands to the end of the currently select contentstream. &nbsp;You can use feature to create your own content stream, see the transformation matrix and start using it.</div><div><br></div>The quickest and easiest might be to use the following functions.<div><br></div><div>QP.NewContentStream</div><div><br></div><div>QP.SaveState &nbsp; &nbsp;// saves the current drawing state including transformation matrix.</div><div><br></div><div>QP.SetContentStreamFromString('&nbsp;<span style="line-height: 1.4;">10 0 0 10 141.7323 572.5984 cm ');</span></div><div><br></div><div>.... do your drawing here. &nbsp;Can use any QPL drawing function but it will be affected by the transformation matrix of cours.</div><div><br></div><div>QP.LoadState &nbsp; &nbsp;// restores to original transformation matrix.</div><div><br></div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Wed, 18 Dec 2013 08:57:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/set-the-current-transformation-matrix_topic2798_post11398.html#11398</guid>
  </item> 
  <item>
   <title><![CDATA[Set the current transformation matrix : Is there a way to set the current...]]></title>
   <link>http://www.quickpdf.org/forum/set-the-current-transformation-matrix_topic2798_post11397.html#11397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1162">tonyedgecombe</a><br /><strong>Subject:</strong> 2798<br /><strong>Posted:</strong> 17 Dec 13 at 12:52PM<br /><br />Is there a way to set the current transformation matrix so that all subsequent drawing operations are transformed.]]>
   </description>
   <pubDate>Tue, 17 Dec 2013 12:52:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/set-the-current-transformation-matrix_topic2798_post11397.html#11397</guid>
  </item> 
 </channel>
</rss>