<?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 : Problem using QuickPDFRenderPageToFile with PNG</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 : Problem using QuickPDFRenderPageToFile with PNG]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 27 Jul 2026 13:47:42 +0000</pubDate>
  <lastBuildDate>Mon, 11 Apr 2011 09:08:16 +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=1796</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[Problem using QuickPDFRenderPageToFile with PNG :   I am guessing the PDF developer...]]></title>
   <link>http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7778.html#7778</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 1796<br /><strong>Posted:</strong> 11 Apr 11 at 9:08AM<br /><br /><div><br></div><div>I am guessing the PDF developer of this PDF file made a wrong assumption and used&nbsp;<span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">4544 x 4064 as the width and height. &nbsp;The image in this file is actually&nbsp;</span><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">4544 x 4064 pixels in size so I am pretty sure this is why the page dimensions are wrong and why the image is so big.</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">The pageWidth/pageHeight are normally measured in points (72 points = 1 inch) and so the 4544 x 4064 needed to be scaled to points. ie. &nbsp;1090 x 975. &nbsp;This image is 300 dpi so 4544 / 300 * 92 = 1090 and 4064 / 300 * 72 = 975.</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">Using QPL to Render this file with the invalid page size consumed a 1 GB of memory. &nbsp;It did render ok on my 8GB machine. &nbsp;So some of the other ideas to render large files would be useful.</span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><br></span></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">Andrew.</span></div>]]>
   </description>
   <pubDate>Mon, 11 Apr 2011 09:08:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7778.html#7778</guid>
  </item> 
  <item>
   <title><![CDATA[Problem using QuickPDFRenderPageToFile with PNG : Pedro,Why don&amp;#039;t you use a...]]></title>
   <link>http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7777.html#7777</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1511">darkv</a><br /><strong>Subject:</strong> 1796<br /><strong>Posted:</strong> 08 Apr 11 at 11:14PM<br /><br />Pedro,<br><br>Why don't you use a Windows DC to clip your image (or a part of), and then you "band" your image to reduce the size you have to deal with (as printer does when it process a big file)<br><br>When you create the DC you can define the resolution for your device. <br><br>My fear is memory consumption for such an image, but could be a workaround.<br><br>please find below part of a vb.net code i used.<br><br>Hope this helps <br><br>Rgds<br><br><br>&nbsp;Dim bmp As New Bitmap(iPw, iPH, System.Drawing.Imaging.PixelFormat.Format32bppArgb)<br>&nbsp;gDisp = Graphics.FromImage(bmp)<br>&nbsp;hDCd = gDisp.GetHdc<br>&nbsp; '<br>&nbsp;lRtn = zPdf.RenderPageToDC(72, 1, hDCd)&nbsp;&nbsp; ' DPI settings <br><br>Ps : dont forget to ".release" and ".dispose" variables ;-)<br><br>]]>
   </description>
   <pubDate>Fri, 08 Apr 2011 23:14:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7777.html#7777</guid>
  </item> 
  <item>
   <title><![CDATA[Problem using QuickPDFRenderPageToFile with PNG : Greetings Ingo,First of all, let...]]></title>
   <link>http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7774.html#7774</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1579">PedroLamas</a><br /><strong>Subject:</strong> 1796<br /><strong>Posted:</strong> 08 Apr 11 at 10:38AM<br /><br />Greetings Ingo,<div><br></div><div>First of all, let me thank you for your reply! :)</div><div><br></div><div>I know the original page is 4544x4064, but I really need it at 150dpi because this page (and others a little less "noisy") will be used for OCR/ICR, and 150dpi is the minimum DPI's we need to get an accurate result!</div><div>The problem is that if I output it as a BMP at 150dpi, it creates a file bigger that 200Mb, as for PNG the file will be at max 10Mb!</div><div><br></div><div>I'll make a post for a bug in the official support pages (I thought this was it, though, sorry!!)</div><div><br></div><div>Regards, Pedro Lamas</div>]]>
   </description>
   <pubDate>Fri, 08 Apr 2011 10:38:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7774.html#7774</guid>
  </item> 
  <item>
   <title><![CDATA[Problem using QuickPDFRenderPageToFile with PNG : Hi Pedro!The page size from your...]]></title>
   <link>http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7772.html#7772</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1796<br /><strong>Posted:</strong> 07 Apr 11 at 6:40PM<br /><br />Hi Pedro!<br><br>The page size from your pdf is 4544 x 4064 pixels.<br>A "normal" page size is 842 x 595 means (in german DIN A4).<br>with 72 dpi the size will be the same - with 100 or 150 it will be larger.<br>Seems that the included png-routines are not made for images with a size about 1.4 x 1.6 meters ;-)<br>If you're the meaning that this is a bug you should post it at the official support pages.<br><br>Cheers, Ingo<br><br><br><br>]]>
   </description>
   <pubDate>Thu, 07 Apr 2011 18:40:43 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7772.html#7772</guid>
  </item> 
  <item>
   <title><![CDATA[Problem using QuickPDFRenderPageToFile with PNG : Greetings,I&amp;#039;m new to your...]]></title>
   <link>http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7771.html#7771</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1579">PedroLamas</a><br /><strong>Subject:</strong> 1796<br /><strong>Posted:</strong> 07 Apr 11 at 2:48PM<br /><br />Greetings,<div><br></div><div>I'm new to your forum, but the company I work on has bought and been using QuickPDF for a while now, always with full success!! :)</div><div><br></div><div>But yesterday, I came up with a problem: I have a file that I need to output its pages to PNG at 150dpi, but this seems to throw an exception (I'm using .NET 4.0 with Interop to QuickPDF 0724)</div><div><br></div><div>If I use:</div><div><br></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">QuickPDFRenderPageToFile(instanceID, 150, 1, 5, fileName); //PNG at 150dpi</font></div><div><br></div><div>this will raise an exception, but the following commands will work ok:</div><div><br></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">QuickPDFRenderPageToFile(instanceID, <font ="Apple-style-span" color="#ff0000"><b>100</b></font>, 1, 5, fileName); //PNG at 100dpi&nbsp;</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">QuickPDFRenderPageToFile(instanceID, 150, 1, <font ="Apple-style-span" color="#ff0000"><b>0</b></font>, fileName); //BMP at 150dpi</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">QuickPDFRenderPageToFile(instanceID, 150, 1, <font ="Apple-style-span" color="#ff0000"><b>1</b></font>, fileName);&nbsp;//JPEG at 150dpi</font></div><div><font ="Apple-style-span" face="'Courier New', Courier, mono">QuickPDFRenderPageToFile(instanceID, 150, 1, <font ="Apple-style-span" color="#ff0000"><b>7</b></font>, fileName);&nbsp;//TIFF at 150dpi</font></div><div><br></div><div>Can you help me with this one please? :)</div><div><br></div><div>You can get the file I'm using that gives this problem here:</div><div><a href="http://cid-b26d27fb6d61bde4.office.live.com/self.aspx/Public/d5514f41-5d7f-400a-837e-129041f480ee_001.pdf" target="_blank">http://cid-b26d27fb6d61bde4.office.live.com/self.aspx/Public/d5514f41-5d7f-400a-837e-129041f480ee^_001.pdf</a></div><div><br></div><div>Best regards and please keep up with your good work!!!</div><div><br></div><div>Pedro Lamas</div>]]>
   </description>
   <pubDate>Thu, 07 Apr 2011 14:48:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-using-quickpdfrenderpagetofile-with-png_topic1796_post7771.html#7771</guid>
  </item> 
 </channel>
</rss>