<?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 : Abstract error</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 : General Discussion : Abstract error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 07:06:29 +0000</pubDate>
  <lastBuildDate>Tue, 21 Feb 2006 09:08:48 +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=327</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[Abstract error : Hi Cpri!  Thanks for this... You...]]></title>
   <link>http://www.quickpdf.org/forum/abstract-error_topic327_post1395.html#1395</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 327<br /><strong>Posted:</strong> 21 Feb 06 at 9:08AM<br /><br />Hi Cpri!<br /><br />Thanks for this...<br />You can put it in the sample section ;-)<br /><br />Best regards,<br />Ingo<br />]]>
   </description>
   <pubDate>Tue, 21 Feb 2006 09:08:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/abstract-error_topic327_post1395.html#1395</guid>
  </item> 
  <item>
   <title><![CDATA[Abstract error : Error fixed. It was due to the...]]></title>
   <link>http://www.quickpdf.org/forum/abstract-error_topic327_post1394.html#1394</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=290">cpri</a><br /><strong>Subject:</strong> 327<br /><strong>Posted:</strong> 21 Feb 06 at 7:28AM<br /><br /><P>Error fixed. It was due to the fact that the stream wasn't at the right position.</P><P>for those who are intresseted in the code here it is (without the reg key ;-))</P><P>procedure TForm1.Button1Click(Sender: TObject);<BR>var<BR>&nbsp;QP: TiSEDQuickPDF;<BR>&nbsp;Test_Stream:Tmemorystream;<BR>&nbsp;JPEG : TJpegImage;</P><P>begin<BR>&nbsp;QP := TiSEDQuickPDF.Create;<BR>&nbsp;try</P><P>&nbsp;&nbsp; QP.UnlockKey('....');<BR>&nbsp;&nbsp; if QP.SetGDIPlusFileName('c:\winnt\system\gdiplus.dll')=0 then<BR>&nbsp;&nbsp;&nbsp; showmessage('Error');<BR>&nbsp;&nbsp; QP.DrawText(100, 500, 'Hello World!');<BR>&nbsp;&nbsp; QP.SaveToFile('c:\test.pdf');<BR>//&nbsp; QP.RenderDocumentToFile(75,1,1,1,'C:\test.jpg');<BR>&nbsp;&nbsp; Test_Stream:=Tmemorystream.Create;<BR>&nbsp;&nbsp; QP.RenderPageToStream(75,1,1,test_stream);<BR>&nbsp;&nbsp; JPEG:=TJpegImage.create;<BR>&nbsp;&nbsp; test_stream.Seek(0,0);<BR>&nbsp;&nbsp; JPEG.LoadFromStream(test_stream);<BR>&nbsp;&nbsp; image1.Top :=0;<BR>&nbsp;&nbsp; image1.Left:=0;<BR>&nbsp;&nbsp; image1.Height :=jpeg.Height ;<BR>&nbsp;&nbsp; image1.Width :=jpeg.Width;<BR>&nbsp;&nbsp; image1.Picture.Assign(Jpeg);</P><P>&nbsp;finally<BR>&nbsp;&nbsp; QP.Free;<BR>&nbsp;&nbsp; test_stream.Free ;<BR>&nbsp;&nbsp; JPEG.Free ;</P><P>&nbsp;end;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 21 Feb 2006 07:28:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/abstract-error_topic327_post1394.html#1394</guid>
  </item> 
  <item>
   <title><![CDATA[Abstract error : Ok sorry for the key. The idea...]]></title>
   <link>http://www.quickpdf.org/forum/abstract-error_topic327_post1393.html#1393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=290">cpri</a><br /><strong>Subject:</strong> 327<br /><strong>Posted:</strong> 21 Feb 06 at 6:32AM<br /><br /><P>Ok sorry for the key. The idea was to skip this line in my code when pasting it to the forum but somehow I forgot (It won't happen again I promise).</P><P>I tried the TmemoryStream. but now I got a JPEG&nbsp;error #42. (this error is raised when I try to load the jpeg into image container)</P>]]>
   </description>
   <pubDate>Tue, 21 Feb 2006 06:32:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/abstract-error_topic327_post1393.html#1393</guid>
  </item> 
  <item>
   <title><![CDATA[Abstract error : I repeat: Please remove your Reg-Key...]]></title>
   <link>http://www.quickpdf.org/forum/abstract-error_topic327_post1392.html#1392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=117">JanN</a><br /><strong>Subject:</strong> 327<br /><strong>Posted:</strong> 21 Feb 06 at 5:13AM<br /><br />I repeat: <strong>Please remove your Reg-Key from your post!</strong><br /><br /><br />Now to your problem: You should use TMemoryStream or TFileStream instead of TStream. These two do not raise that error.<br />]]>
   </description>
   <pubDate>Tue, 21 Feb 2006 05:13:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/abstract-error_topic327_post1392.html#1392</guid>
  </item> 
  <item>
   <title><![CDATA[Abstract error : Hi CPRI!  Please edit your sample... !!!...]]></title>
   <link>http://www.quickpdf.org/forum/abstract-error_topic327_post1391.html#1391</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 327<br /><strong>Posted:</strong> 21 Feb 06 at 5:04AM<br /><br />Hi CPRI!<br /><br />Please edit your sample...<br />!!! The Reg-Key !!!<br />]]>
   </description>
   <pubDate>Tue, 21 Feb 2006 05:04:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/abstract-error_topic327_post1391.html#1391</guid>
  </item> 
  <item>
   <title><![CDATA[Abstract error : I want to use quickpdf to view...]]></title>
   <link>http://www.quickpdf.org/forum/abstract-error_topic327_post1390.html#1390</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=290">cpri</a><br /><strong>Subject:</strong> 327<br /><strong>Posted:</strong> 21 Feb 06 at 2:22AM<br /><br /><P>I want to use quickpdf to view some pdf files. So the first thing I used was RenderPageToFile and then save this image as a jpg. Then using a simple image loader I load the picture into my program This works fine. The bad thing about this approach is that I have to save a image to disk. To overcome this problem I used the function RenderPageToStream. (See code)</P><P>&#091;code&#093;</P><P>procedure TForm1.Button1Click(Sender: TObject);<BR>var<BR>&nbsp;QP: TiSEDQuickPDF;<BR>&nbsp;Test_Stream:Tstream;<BR>&nbsp;JPEG : TJpegImage;</P><P>begin<BR>&nbsp;QP := TiSEDQuickPDF.Create;<BR>&nbsp;try</P><P>&nbsp;&nbsp; QP.UnlockKey('');<BR>&nbsp;&nbsp; if QP.SetGDIPlusFileName('c:\winnt\system\gdiplus.dll')=0 then<BR>&nbsp;&nbsp;&nbsp; showmessage('Error');<BR>&nbsp;&nbsp; QP.DrawText(100, 500, 'Hello World!');<BR>&nbsp;&nbsp; QP.SaveToFile('c:\test.pdf');<BR>//&nbsp; QP.RenderDocumentToFile(75,1,1,1,'C:\test.jpg');<BR>&nbsp;&nbsp; Test_Stream:=Tstream.Create;<BR>&nbsp;&nbsp; QP.RenderPageToStream(75,1,1,test_stream);<BR>&nbsp;&nbsp; JPEG:=TJpegImage.create;</P><P>&nbsp;&nbsp; JPEG.LoadFromStream(test_stream);<BR>&nbsp;&nbsp; image1.Picture.Assign(Jpeg);<BR>&nbsp;&nbsp; showmessage('done');<BR>&nbsp;finally<BR>&nbsp;&nbsp; QP.Free;<BR>&nbsp;&nbsp; test_stream.Free ;<BR>&nbsp;end;</P><P>end;</P><P>&#091;code&#093;</P><P>Now I get an "abstract error" when I tried to run the RenderPageToStream function.</P><P>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by cpri</span>]]>
   </description>
   <pubDate>Tue, 21 Feb 2006 02:22:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/abstract-error_topic327_post1390.html#1390</guid>
  </item> 
 </channel>
</rss>