<?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 : PDF-Preview with RenderPageToStream</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 : Sample Code : PDF-Preview with RenderPageToStream]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 11 May 2026 23:34:29 +0000</pubDate>
  <lastBuildDate>Mon, 10 Aug 2015 20:51:00 +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=1044</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[PDF-Preview with RenderPageToStream : Hi Howard,often the architect...]]></title>
   <link>http://www.quickpdf.org/forum/pdfpreview-with-renderpagetostream_topic1044_post12642.html#12642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1044<br /><strong>Posted:</strong> 10 Aug 15 at 8:51PM<br /><br />Hi Howard,<div><br></div><div>often the architect plans are completely embedded in the pdf and shown with the pdf dimension settings. So it could be more senseful to extract the image with "SaveImageListItemDataToFile" out of the pdf to have the full quality...</div><div><br></div><div>Cheers, Ingo</div>]]>
   </description>
   <pubDate>Mon, 10 Aug 2015 20:51:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pdfpreview-with-renderpagetostream_topic1044_post12642.html#12642</guid>
  </item> 
  <item>
   <title><![CDATA[PDF-Preview with RenderPageToStream : I realize this is an old post,...]]></title>
   <link>http://www.quickpdf.org/forum/pdfpreview-with-renderpagetostream_topic1044_post12635.html#12635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1532">HNRSoftware</a><br /><strong>Subject:</strong> 1044<br /><strong>Posted:</strong> 09 Aug 15 at 3:06PM<br /><br />I realize this is an old post, but your example is very useful.&nbsp; I am dealing with a pdf file from an Architect containing a lot of 11"x17" drawings and diagrams that need to be extracted to a more useful size.&nbsp; QuickPDF is doing a great job with this, but I am now trying to design a more general version of the same exercise.&nbsp; What I am finding is that any particular page in the pdf can take 1-20 seconds to render to a useful resolution.&nbsp; I notice that you recommend less than 300 dpi, but in my case, 600dpi and&nbsp; higher can be useful and/or necessary, and works just fine.&nbsp; We need to be able to examine details in the drawings by using the computer screen as a magnifying glass.&nbsp; In detail, this is working fine, but I am having trouble estimating how long a render will take.&nbsp; I will probably solve this by designing a cache system and accept the delay for the first render of a page, and then it will speed up for subsequent displays/zooms.&nbsp; I am fascinated by the situation that individual pdf pages are in the several hundred kilobyte range, but that jpg (or a variety of other file formats) renderings are in the multiple megabytes. &nbsp; As always, thanks for the useful forum.&nbsp; Howard Richoux<br>]]>
   </description>
   <pubDate>Sun, 09 Aug 2015 15:06:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pdfpreview-with-renderpagetostream_topic1044_post12635.html#12635</guid>
  </item> 
  <item>
   <title><![CDATA[PDF-Preview with RenderPageToStream : Hi All!This sample for the function...]]></title>
   <link>http://www.quickpdf.org/forum/pdfpreview-with-renderpagetostream_topic1044_post4913.html#4913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1044<br /><strong>Posted:</strong> 26 Mar 09 at 2:29AM<br /><br />Hi All!<br><br>This sample for the function RenderPageToStream you<br>can use as a starting point for a small pdf-viewer.<br>In this case you have to set a variable for "dpi" to<br>have zoom-functionality and for "page" (to have forward-<br>and previous-functions). This could it be in the first<br>step for you.<br><br>If you want to split a big pdf-document into single<br>pages you can use a similar variant of my sample with<br>the function RenderDocumentToFile.<br><br>For this sample you need a form-, image-, fileload-<br>and button-component - That's all. <br><br>The sample is written in Delphi/Pascal but i think it's<br>readable enough to use it in any other language.<br><br>Cheers, Ingo<br>&nbsp;<br><br><br>unit Unit1;<br><br>interface<br><br>uses<br>&nbsp; Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,<br>&nbsp; StdCtrls, Buttons, ExtCtrls, jpeg, QuickPDF0712;<br><br>// . . .<br><br>var<br>&nbsp; Form1: TForm1;<br>&nbsp; fstring, s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : String;<br>&nbsp; page, pagecount : Integer;<br>&nbsp; QP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : TQuickPDF0712;<br>&nbsp; Test_Stream&nbsp;&nbsp;&nbsp;&nbsp; : Tmemorystream;<br>&nbsp; jpg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : TJpegImage;<br><br>implementation<br><br>{$R *.DFM}<br><br>// . . .<br><br>procedure Pages(fap: String);<br>begin<br><br>&nbsp;&nbsp; jpg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; := TJpegImage.create;<br>&nbsp;&nbsp; Test_Stream := Tmemorystream.Create;<br><br>&nbsp;&nbsp; QP&nbsp; := TQuickPDF0712.Create;&nbsp; <br>&nbsp;&nbsp; try<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.UnlockKey('YourKeyShouldBeHere');<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.LoadFromFile(the_selected_pdf_document);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If ( QP.Encrypted &gt; 0 ) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Unencrypt;<br>//&nbsp;&nbsp;&nbsp; dpi=72 (you shouldn't use more than 300<br>//&nbsp;&nbsp;&nbsp; page=1 (The selected page number)<br>//&nbsp;&nbsp;&nbsp; options=1 (1=jpg ... read in the documentation) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.RenderPageToStream(72,1,1,test_stream);<br>&nbsp;&nbsp; finally<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Free;<br>&nbsp;&nbsp; end;<br>&nbsp;&nbsp; test_stream.Seek(0,0);<br>&nbsp;&nbsp; jpg.LoadFromStream (test_stream);<br>&nbsp;&nbsp; image1.Picture.Assign(jpg);<br>&nbsp;&nbsp; test_stream.Clear;<br>end;<br>&nbsp;<br>]]>
   </description>
   <pubDate>Thu, 26 Mar 2009 02:29:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pdfpreview-with-renderpagetostream_topic1044_post4913.html#4913</guid>
  </item> 
 </channel>
</rss>