<?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 : Images to 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 : Images to PDF]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 23 Jul 2026 20:23:44 +0000</pubDate>
  <lastBuildDate>Mon, 10 Oct 2011 19:21:56 +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=1989</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[Images to PDF : Thank you for your help, That...]]></title>
   <link>http://www.quickpdf.org/forum/images-to-pdf_topic1989_post8468.html#8468</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1726">pshay543</a><br /><strong>Subject:</strong> 1989<br /><strong>Posted:</strong> 10 Oct 11 at 7:21PM<br /><br />Thank you for your help,&nbsp; That pointed me in the right direction.&nbsp; <DIV>&nbsp;</DIV><DIV>However, I still had some issues so I converted pixels to millimeters and calculated the size that way.&nbsp; Although now I think the issue was not related to the scaling of the image but to the loading an image from a stream.&nbsp; This seems to place the image directly on the page per my new post about same image drawn on a page with different sizes. </DIV><DIV>&nbsp;</DIV><DIV>Thank you,</DIV><DIV>Paul</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 10 Oct 2011 19:21:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/images-to-pdf_topic1989_post8468.html#8468</guid>
  </item> 
  <item>
   <title><![CDATA[Images to PDF : This code should be pretty close...]]></title>
   <link>http://www.quickpdf.org/forum/images-to-pdf_topic1989_post8464.html#8464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 1989<br /><strong>Posted:</strong> 10 Oct 11 at 1:11PM<br /><br /><span ="Apple-style-span" style=": rgb251, 251, 253; "><div><div>This code should be pretty close to what you are looking for.</div><div><br></div><div>&nbsp; QP.SetPageSize("Letter");</div><div><br></div><div>&nbsp; if (QP.ImageHorizontalResolution() != 0)</div><div>&nbsp; &nbsp; &nbsp; return; &nbsp; // Error....</div><div><br></div><div>&nbsp; double ImageWidthInPoints = QP.ImageWidth() / QP.ImageHorizontalResolution() * 72.0; // assumming dpi units</div><div>&nbsp; double ImageHeightInPoints = QP.ImageHeight() / QP.ImageVerticalResolution() * 72.0;</div><div><br></div><div>&nbsp; double scale = Math.Max(ImageWidthInPoints / QP.PageWidth(), ImageHeightInPoints / QP.PageHeight());</div><div>&nbsp;&nbsp;</div><div>&nbsp; QP.SetOrigin(1);</div><div>&nbsp; QP.DrawImage(0,0,ImageWidthInPoints / scale, ImageHeightInPoints / scale);</div></div><div><br></div><div><br></div></span>]]>
   </description>
   <pubDate>Mon, 10 Oct 2011 13:11:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/images-to-pdf_topic1989_post8464.html#8464</guid>
  </item> 
  <item>
   <title><![CDATA[Images to PDF : I need to convert Images to PDF....]]></title>
   <link>http://www.quickpdf.org/forum/images-to-pdf_topic1989_post8457.html#8457</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1726">pshay543</a><br /><strong>Subject:</strong> 1989<br /><strong>Posted:</strong> 07 Oct 11 at 3:31PM<br /><br />I need to convert Images to PDF.&nbsp;&nbsp; The graphic library I use supports more graphics than the quickpdf library so I load the images into the graphic library, save the image out to a stream in Bitmap format, and then use quickPDF's addimagefromStream to load the image to the pdf page.&nbsp; The issue I'm having is that the image appears to be blurred and not sized properly.&nbsp;&nbsp; I assume I must resize the image or set the DPI or something to get this to work correctly but I do not know the approach to take. <DIV>&nbsp;</DIV><DIV>My Code is as follows:&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>// Load an Image into the Graphic component</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyImageSB.Clear;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyImageSB.LoadFromFile(sImageFiles&#091;iImageFileCount&#093;, i);</DIV><DIV>&nbsp;</DIV><DIV>// Save the Image to the stream </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyScrollBox.SaveToStream(ms, 'BMP');</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ms.Position := 0;</DIV><DIV>&nbsp;</DIV><DIV>// Select the proper page of the PDF document and add the Image from the stream</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdflibrary.SelectPage(iImageCounter);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iImageID := pdflibrary.AddImageFromStream(MS, 0);</DIV><DIV>&nbsp;</DIV><DIV>// Get the width and Height of the Image</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iWidth := PDFLibrary.ImageWidth;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IHeight:= PDFLibrary.ImageHeight;<BR></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDFLibrary.SetPageSize('Letter');</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDFLibrary.SetOrigin(1);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDFLibrary.CompressImages(1);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pdfLibrary.SelectImage(iImageID);</DIV><DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ((iWidth &lt; PDFLibrary.PageWidth) and (iHeight &lt; PDFLibrary.PageHeight)) then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iImageID := pdflibrary.DrawImage(0, 0, iWidth, iHeight)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iImageID := pdflibrary.DrawImage(0, 0, PDFLibrary.PageWidth, PDFLibrary.PageHeight);<BR><BR></DIV><DIV>If I preview the PDF the images do not seem to be properly displayed.&nbsp; I have tried setting the&nbsp;measurement units&nbsp;but that seemed to make it worse.</DIV><DIV>&nbsp;</DIV><DIV>I've been testing with the following image sizes:</DIV><DIV>One image is 200x64 and with the setMeasurementUnits(1) it draws at almost the full page.&nbsp; </DIV><DIV>Another Image is 500x470 </DIV><DIV>&nbsp;</DIV><DIV>The last image is a TIFF File that is 8.5 x 11 inch printout (1728x2178)</DIV><DIV>&nbsp;</DIV><DIV>Any help would be appreciated on how to make the images size properly when adding to the PDF and keep the correct aspect ratio.&nbsp;&nbsp; For the 200x64 image if I view the PDF at 100% the image appears to be double the size compared to previewing the image within windows. </DIV><DIV>&nbsp;</DIV><DIV>If someone could point me in the right direction that would be great. </DIV><DIV>&nbsp;</DIV><DIV>Thank you,</DIV><DIV>Paul</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 07 Oct 2011 15:31:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/images-to-pdf_topic1989_post8457.html#8457</guid>
  </item> 
 </channel>
</rss>