<?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 : memoryStream, dll version, viewing PDF&#039;s</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 : memoryStream, dll version, viewing PDF&#039;s]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 17:34:53 +0000</pubDate>
  <lastBuildDate>Tue, 01 Nov 2011 22:40:09 +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=2023</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[memoryStream, dll version, viewing PDF&#039;s :   Fixed: The following code...]]></title>
   <link>http://www.quickpdf.org/forum/memorystream-dll-version-viewing-pdfs_topic2023_post8601.html#8601</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1743">greenley</a><br /><strong>Subject:</strong> 2023<br /><strong>Posted:</strong> 01 Nov 11 at 10:40PM<br /><br />Fixed: The following code works, maybe it can help someone else.<br><br>I always search first. I have searched and tried a number of methods before I posted, using dll version with C++ Builder 6.<br><br>My latest attempt is:<br>&nbsp;&nbsp;&nbsp;&nbsp; // above is code that creates a pdf<br>&nbsp;&nbsp;&nbsp;&nbsp; TMemoryStream *pMS = new TMemoryStream;<br>&nbsp;&nbsp;&nbsp;&nbsp; string memStr = QP.SaveToString();<br>&nbsp;&nbsp;&nbsp;&nbsp; int i = memStr.length();<br>&nbsp;&nbsp;&nbsp;&nbsp; pMS-&gt;Write(memStr.c_str(),memStr.length());<br>&nbsp;&nbsp;&nbsp;&nbsp; // saving stream to file to test before trying opening stream in WPViewPDF<br>&nbsp;&nbsp;&nbsp;&nbsp; pMS-&gt;SaveToFile(L"junk.pdf");&nbsp;&nbsp; // files does not open, acrobat says is corrupt,<br>&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; // both have same size (6072 bytes)<br>&nbsp;&nbsp;&nbsp;&nbsp; QP.SaveToFile(L"junk1.pdf");&nbsp;&nbsp;&nbsp; // file is valid and opens in acrobat<br><br>I am sure it is a foolish error, but I just can't seem to find it. junk1.pdf opens fine, but junk.pdf does not, something is getting scrambled in the SaveToString -&gt; Write to Stream -&gt; Stream SaveToFile, i does show the correct length of 6072.<br><br>Bill Greenley<br><span style="font-size:10px"><br /><br />Edited by greenley - 02 Nov 11 at 1:47AM</span>]]>
   </description>
   <pubDate>Tue, 01 Nov 2011 22:40:09 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memorystream-dll-version-viewing-pdfs_topic2023_post8601.html#8601</guid>
  </item> 
  <item>
   <title><![CDATA[memoryStream, dll version, viewing PDF&#039;s : Hi Bill!If you want these things...]]></title>
   <link>http://www.quickpdf.org/forum/memorystream-dll-version-viewing-pdfs_topic2023_post8597.html#8597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2023<br /><strong>Posted:</strong> 01 Nov 11 at 9:35PM<br /><br />Hi Bill!<br><br>If you want these things why not search for them?<br>Try this with Google ...<br>Delphi String to Stream<br>... and you'll get enough inspirations ;-)<br><br>Cheers and welcome here,<br>Ingo<br>]]>
   </description>
   <pubDate>Tue, 01 Nov 2011 21:35:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memorystream-dll-version-viewing-pdfs_topic2023_post8597.html#8597</guid>
  </item> 
  <item>
   <title><![CDATA[memoryStream, dll version, viewing PDF&#039;s : Using dll evaluation version 8.12...]]></title>
   <link>http://www.quickpdf.org/forum/memorystream-dll-version-viewing-pdfs_topic2023_post8595.html#8595</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1743">greenley</a><br /><strong>Subject:</strong> 2023<br /><strong>Posted:</strong> 01 Nov 11 at 8:44PM<br /><br />Using dll evaluation version 8.12 with C++ Builder 6, want to save pdf stream to use WPViewPDF component to open from stream to avoid creating a temp file. dll version does not support SaveToStream, WPViewPDF only opens from Stream or File. Suggestions? Is it possible to SaveToString, convert that to Stream and then open from Stream? If so, how? Is there a better answer for viewing the&nbsp; pdf's, I want to avoid temp files, not require adobe, and give option to save or print pdf from the viewer.<br>Thanks<br>Bill Greenley<br>]]>
   </description>
   <pubDate>Tue, 01 Nov 2011 20:44:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/memorystream-dll-version-viewing-pdfs_topic2023_post8595.html#8595</guid>
  </item> 
 </channel>
</rss>