<?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 : Rendering large pdf</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 : Rendering large pdf]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 03:54:15 +0000</pubDate>
  <lastBuildDate>Mon, 12 Mar 2012 12:43:43 +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=2184</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[Rendering large pdf : 10600 x 23600 pixels is a very...]]></title>
   <link>http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9308.html#9308</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2184<br /><strong>Posted:</strong> 12 Mar 12 at 12:43PM<br /><br />10600 x 23600 pixels is a very large PDF file and QPL initially tries to render this at 24 bpp which requires 868MB. &nbsp;A 32bit EXE cannot safely handle this amount of memory.<div><br></div><div>The 64bit version of Quick PDF Library would be much better suited to this type of processing.</div><div><br></div><div>Andrew.</div><div><br></div><div><br><div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Mon, 12 Mar 2012 12:43:43 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9308.html#9308</guid>
  </item> 
  <item>
   <title><![CDATA[Rendering large pdf : Thanks Werner, yes, the right...]]></title>
   <link>http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9305.html#9305</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1850">ADev</a><br /><strong>Subject:</strong> 2184<br /><strong>Posted:</strong> 12 Mar 12 at 8:14AM<br /><br />Thanks Werner,<br />yes, the right direction :)<br /><br />After further experiments, I came to satisfactory results:<br />pseudocode:<br /><br /> if RenderPageToFile=False then<br /> if (pdf_page has only one img) and (img.size=pdf_page.size &#091;points&#093;) then<br /> begin<br />&nbsp;&nbsp;&nbsp;&nbsp;extract img (SaveImageListItemDataToFile)<br />&nbsp;&nbsp;&nbsp;&nbsp;LoadBigImg to TBitmap with resize to 72 dpi (without resizing is memory problem) <br />&nbsp;&nbsp;&nbsp;&nbsp;Analyze TBitmap<br /> end<br /><br />To load jpg with resize I'm found function:<br /><br />function ResizeImage(sInImage, sOutImage: string; iHeight, iWidth: integer): boolean;<br />var JpgImg : TJpegImage;<br />&nbsp;&nbsp;&nbsp;BmpImg : TBitmap;<br />&nbsp;&nbsp;&nbsp;Rectangle: TRect;<br />begin<br />&nbsp;&nbsp;&nbsp;try<br />&nbsp;&nbsp;&nbsp;&nbsp;JpgImg := TJpegImage.Create;<br />&nbsp;&nbsp;&nbsp;&nbsp;BmpImg := TBitmap.Create;<br />&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;JpgImg.LoadFromFile(sInImage);<br />&nbsp;&nbsp;&nbsp;&nbsp;Rectangle := Rect(0, 0, iWidth, iHeight);<br />&nbsp;&nbsp;&nbsp;&nbsp;with BmpImg do<br />&nbsp;&nbsp;&nbsp;&nbsp;begin<br />&nbsp;&nbsp;&nbsp;&nbsp;Width := iWidth;<br />&nbsp;&nbsp;&nbsp;&nbsp;Height := iHeight;<br />&nbsp;&nbsp;&nbsp;&nbsp;<strong>Canvas.StretchDraw(Rectangle, JpgImg);</strong><br />&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt; Analyze TBitmap here  or BmpImg.SaveToFile &lt;&lt;<br />&nbsp;&nbsp;&nbsp;&nbsp;end;<br />&nbsp;&nbsp;&nbsp;&nbsp;finally<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />//&nbsp;&nbsp;&nbsp;&nbsp;JpgImg.Assign(BmpImg);<br />//&nbsp;&nbsp;&nbsp;&nbsp;JpgImg.SaveToFile(sOutImage);<br />&nbsp;&nbsp;&nbsp;&nbsp;JpgImg.Free;<br />&nbsp;&nbsp;&nbsp;&nbsp;BmpImg.Free;<br />&nbsp;&nbsp;&nbsp;&nbsp;end;<br />&nbsp;&nbsp;&nbsp;Result := True;<br />&nbsp;&nbsp;&nbsp;end;<br /> <br />Yes, I used scanline method to analyze TBitmap.<br />If extracted image is jpeg image, for scanline important is also TBitmap.PixelFormat:=pf24bit; (oryginally assigned jpg has 32bit and white color has (255,0,255) r,g,b values )<br /><br />I think that the problem is already solved, a little round,<br />partially pdf page rendering/rasterizing would be better.<br />Thank you for your interest, Werner<br /><br />Regards,<br />Adam<br /><br />]]>
   </description>
   <pubDate>Mon, 12 Mar 2012 08:14:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9305.html#9305</guid>
  </item> 
  <item>
   <title><![CDATA[Rendering large pdf :  Hi,I think you need for analyzing...]]></title>
   <link>http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9304.html#9304</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1569">edvoigt</a><br /><strong>Subject:</strong> 2184<br /><strong>Posted:</strong> 11 Mar 12 at 3:02PM<br /><br />Hi,<br><br>I think you need for analyzing a bitmap. In Delphi it is easy to convert a JPG to BMP:<br><br><font face="Courier New, Courier, mono">var<br>&nbsp; jpg: TJPEGimage;<br>&nbsp; bmp: TBitmap;<br>begin<br>&nbsp; jpg := TJPEGimage.Create;<br>&nbsp; jpg.LoadFromFile('E:\Projekt7\PDF_Investigator\test2.jpg');<br>&nbsp; bmp := TBitmap.Create;<br>&nbsp; bmp.Assign(jpg);<br>&nbsp; jpg.Free;<br></font><br>The Assign does the job, but it takes in your case on my PC 20 sec.<br><br>For analize you have to walk over the scanlines:<br><br><font face="Courier New, Courier, mono">type<br>&nbsp; TRGBTriple = packed record&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // short the names<br>&nbsp;&nbsp;&nbsp; b: byte; g: byte; r: byte;<br>&nbsp; end;<br>&nbsp; TRGBArray = array&#091;0..0&#093; OF TRGBTriple; // for easier access<br>var<br>&nbsp; i, j,<br>&nbsp; Row: ^TRGBArray;<br>begin<br>&nbsp; for j:=0 to BMP.Height-1<br>&nbsp; do begin&nbsp; // from top to bottom of BMP<br>&nbsp;&nbsp;&nbsp; Row := bmp.Scanline&#091;j&#093;;<br>&nbsp;&nbsp;&nbsp; for i:=0 to BMP.Width-1 // every pixel in line is a TRGBTriple<br>&nbsp;&nbsp;&nbsp; do begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (Row&#091; i&#093;.r&lt;255) or (Row&#091; i&#093;.g&lt;255) or (Row&#091; i&#093;.b&lt;255)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then begin // Pixel&#091; i,j&#093; is not white<br>// here you are outside of white borders<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br>&nbsp;&nbsp;&nbsp; end;<br>&nbsp; end;</font><br><br>The code snippets are working but free of errorhandling!<br><br>On big images you'll get memory-problems. One idea against is to try to handle only part of the images. But I see no way to get for example only a top bar of a image, which is a little more than the assumed top border. All I tested in this background was running out of memory on other places. The jpg is as such in the PDF, so QPL makes no conversion.<br><br><br>Only two small steps, but in the right direction?<br><br>Werner<br><span style="font-size:10px"><br /><br />Edited by edvoigt - 13 Mar 12 at 6:00PM</span>]]>
   </description>
   <pubDate>Sun, 11 Mar 2012 15:02:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9304.html#9304</guid>
  </item> 
  <item>
   <title><![CDATA[Rendering large pdf : Sorry for post under post, but...]]></title>
   <link>http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9302.html#9302</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1850">ADev</a><br /><strong>Subject:</strong> 2184<br /><strong>Posted:</strong> 09 Mar 12 at 7:13PM<br /><br />Sorry for post under post,<br />but there is hope, my workaround idea,<br />After some experiments on this (and another) sample, I got one of the idea:<br />QPL has functions for separate bitmap from pdf file (in my example this image is only one graphical object in pdf file)<br />My idea is functions GetPageImageList, SaveImageListItemDataToFile use, works ok).<br />This function extract image (jpg) from this pdf file, but this jpg also big image for pixel analyse.<br />I have to deal with large format scan and print (A0+ 300dpi)<br /><br />Does anyone have experience with the analyse of large jpg files in Delphi (scan jpg format and analyze pixels?)<br /><br />Only what I want, its detect "inked area" (for crop white margins on pdf file).<br /><br />Im sorry for my poor english,<br /><br />Regards,<br />Adam<span style="font-size:10px"><br /><br />Edited by ADev - 09 Mar 12 at 7:34PM</span>]]>
   </description>
   <pubDate>Fri, 09 Mar 2012 19:13:10 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9302.html#9302</guid>
  </item> 
  <item>
   <title><![CDATA[Rendering large pdf : Welcome, I&amp;#039;m trying to render...]]></title>
   <link>http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9295.html#9295</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1850">ADev</a><br /><strong>Subject:</strong> 2184<br /><strong>Posted:</strong> 08 Mar 12 at 3:17PM<br /><br />Welcome,<br />I'm trying to render large pdf to bmp, 72 (or 36) dpi by RenderPageToFile, DARenderPageToFile or other render method (also stream).<br />Functions always return 1 (all ok), but result bmp file has only white pixels (bmp page is white). Size (pixels) of bmp is correct, filesize is also ok. Other test: CapturePage and DrawCapturedPage works ok.  <br />I prepared sample pdf file (from tif to pdf conversion - <br /><a href="http://ge.tt/1xKLujE/v/0?c" target="_blank">test2</a> 2MB  ).<br />Sometimes there are large area documents (scanned engineering documentation, for example 900x2000mm 300 dpi).<br /><br />Any idea how to convert this large pdf to bmp file by QPL library?<br /><br />I'm trying QPL Delphi dcu v8.13, Windows7x32, 4GB RAM.<br /><br />Adam<br /><br />Edit1:<br />Test with QPL 8.14b3 <br />after DARenderPageToFile, DARenderPageToStream<br />Delphi5 say error: "Out of memory while expanding memory Stream"<br /><br />Edit2<br />Delphi2006 say: in clas EOutOfMemory: "Out of memory"<br />Why? Other viewers and libraries can rasterize this file, slow, but rasterize.<br />Im know, this is only user-user forum, and library has only 3MB.<br />QPL is look good, composition (DrawCapturedPage) is very, very fast.<br />Only rendering.. Rendering for smaller area pdf (e.g, A1 format) is good, but greater has some problems.<br /><br />Regards<br /><span style="font-size:10px"><br /><br />Edited by ADev - 08 Mar 12 at 11:28PM</span>]]>
   </description>
   <pubDate>Thu, 08 Mar 2012 15:17:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/rendering-large-pdf_topic2184_post9295.html#9295</guid>
  </item> 
 </channel>
</rss>