<?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 : SetPageContentFromString doesn&#039;t work</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 : SetPageContentFromString doesn&#039;t work]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 30 Apr 2026 14:53:24 +0000</pubDate>
  <lastBuildDate>Fri, 19 Jul 2024 13:18: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=4040</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[SetPageContentFromString doesn&#039;t work : I&amp;#039;ve experimented with filtering...]]></title>
   <link>http://www.quickpdf.org/forum/setpagecontentfromstring-doesnt-work_topic4040_post16367.html#16367</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3377">ClarryG</a><br /><strong>Subject:</strong> 4040<br /><strong>Posted:</strong> 19 Jul 24 at 1:18PM<br /><br /><div>I've experimented with filtering some content in streams. I've tried with both Get/SetPageContentFromString and Get/SetContentStreamFromString. I get the content OK, but even if I don't change it, just set it back, the page gets mangled. It looks like the page shrunk and is rendered in something like a 50th size. Just a mess of black "lines" in the lower left corner, about 1 by 2 centimeters.</div><div><br></div><div>An experimental method to draw on a newly created page:<br><br><div><font face="Courier New, Courier, mono"><span style="white-space: pre;">	</span>int nCS = QP.NewContentStream();</font></div><div><span style="white-space: normal;"><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>QP.SelectContentStream(nCS);</font></span></div><div><span style="white-space: normal;"><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>QP.SetContentStreamFromString(sRawPDF);</font></span></div><div><font face="Courier New, Courier, mono"><br></font></div><div><span style="white-space: normal;"><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>Render();</font></span></div><div><br></div></div><div>with sRawPDF being</div><div><br></div><div><div><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">	</span>268.8066 424.4088 m</div><div><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">	</span>271.8255 420.2306 l</div><div><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">	</span>S</div></div><div><br></div><div>which is a snippet i found <a href="https://developers.foxit.com/developer-hub/&#100;ocument/how-to-quickly-draw-many-paths-in-your-pdf-files/" target="_blank" rel="nofollow">here</a>.</div><div><br></div><div><br></div><div>It's supposed to draw a line, and it does. But just something like half a centimeter long in the lower right corner.</div><div><br></div><div>I've experimented with SetScale,&nbsp;SetMeasurementUnits and such, but with any changes to the output.</div><div><br></div><div>I'm using a quite old version (16.11), but I hope (don't think) that shouldn't matter.</div><div><br></div><div>Anyone, any ideas?</div>]]>
   </description>
   <pubDate>Fri, 19 Jul 2024 13:18:17 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setpagecontentfromstring-doesnt-work_topic4040_post16367.html#16367</guid>
  </item> 
 </channel>
</rss>