<?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 : SetPageDimensions</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 : SetPageDimensions]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 01:01:08 +0000</pubDate>
  <lastBuildDate>Sun, 18 Feb 2007 17:40:37 +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=642</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[SetPageDimensions : Hi Uli!I&amp;#039;ve solved it ...I...]]></title>
   <link>http://www.quickpdf.org/forum/setpagedimensions_topic642_post2982.html#2982</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 642<br /><strong>Posted:</strong> 18 Feb 07 at 5:40PM<br /><br />Hi Uli!<br><br>I've solved it ...<br>I want to convert very large images to pdf.<br>When i'm doing SetPageDimension and immediately a DrawImage behind i never got the correct&nbsp; aspect ratio.<br>Now i save the new file first with the new dimensions... then load it again doing DrawImage and it works with the correct aspect ratio.<br><br>Best regards,<br>Ingo<br>&nbsp;<br>]]>
   </description>
   <pubDate>Sun, 18 Feb 2007 17:40:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setpagedimensions_topic642_post2982.html#2982</guid>
  </item> 
  <item>
   <title><![CDATA[SetPageDimensions : Hi Uli!What you&amp;#039;re writing...]]></title>
   <link>http://www.quickpdf.org/forum/setpagedimensions_topic642_post2968.html#2968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 642<br /><strong>Posted:</strong> 16 Feb 07 at 4:12AM<br /><br />Hi Uli!<br><br>What you're writing was my first try ... and it doesn't work.<br>ImageWidth is integer and the attributes of SetPageDimensions are double so i've thought change integer to double and then it will work. But ... ;-)<br>Thanks a lot ... I'll try again.<br><br>Best regards,<br>Ingo<br><br>]]>
   </description>
   <pubDate>Fri, 16 Feb 2007 04:12:10 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setpagedimensions_topic642_post2968.html#2968</guid>
  </item> 
  <item>
   <title><![CDATA[SetPageDimensions : Ingo,I tested it on my system...]]></title>
   <link>http://www.quickpdf.org/forum/setpagedimensions_topic642_post2967.html#2967</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=370">ukobsa</a><br /><strong>Subject:</strong> 642<br /><strong>Posted:</strong> 16 Feb 07 at 3:16AM<br /><br />Ingo,<br><br>I tested it on my system (5.21) and here it works fine. But some questions on your code:<br><br>1) Why that complicated&nbsp; (and unnecessary) Int -&gt; Float conversion?<br>2) you are using MMHD and MMWS but never set it before. Shouldn't this be IWD and IHD?<br><br><br>try this to test:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>QP := TiSEDQuickPDF.Create;<br>&nbsp; try<br>&nbsp;&nbsp;&nbsp; QP.UnlockKey(YOUR_KEY);<br>&nbsp;&nbsp;&nbsp; QP.LoadFromFile('test.pdf');<br><br>&nbsp;&nbsp;&nbsp; lImage := QP.AddImageFromFile('rendered.bmp', 0);<br>&nbsp;&nbsp;&nbsp; QP.SelectImage(lImage);<br>&nbsp;&nbsp;&nbsp; border := 50;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; QP.SetPageDimensions(QP.ImageWidth + border, QP.ImageHeight + border);<br><br>&nbsp;&nbsp;&nbsp; ShowMessage(FloatToStr(QP.PageWidth));<br><br>&nbsp;&nbsp;&nbsp; QP.SaveToFile('test2.pdf');<br>&nbsp; finally<br>&nbsp;&nbsp;&nbsp; QP.Free;<br>&nbsp; end;<br></pre></td></tr></table><br><br><br>HTH,<br>Ulrich<br>]]>
   </description>
   <pubDate>Fri, 16 Feb 2007 03:16:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setpagedimensions_topic642_post2967.html#2967</guid>
  </item> 
  <item>
   <title><![CDATA[SetPageDimensions :  Hi!I&amp;#039;ve trouble with the...]]></title>
   <link>http://www.quickpdf.org/forum/setpagedimensions_topic642_post2962.html#2962</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 642<br /><strong>Posted:</strong> 15 Feb 07 at 5:07PM<br /><br />Hi!<br><br>I've trouble with the function SetPageDimensions.<br>I want to convert an image to pdf. The imagesize should be the same in pdf. So i take imagewidth and height and convert it to double fields 'cause this is necessary for SetPageDimensions. I want a border (bddou), too.<br>QP.SetPageDimensions(mmwd + bddou,mmhd + bddou);<br>In mmwd is 2500, in bddou is 50, in mmhd is 1500.<br>When i'm calling PageWidth now i get only 612 - i've thought i get 2500 ;-)<br>What's wrong? What have i forget? <br><br>Best regards,<br>Ingo<br><br>--- here's the code ---<br><br>var<br>border&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : LongInt;<br>pleft, ptop, mmwd, mmhd, iwd, ihd, bddou&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Double;<br>mmw, mmh, iw, ih, bdstr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : String;<br><br>iw&nbsp; := IntToStr(QP.ImageWidth);&nbsp; // is 2500<br>ih&nbsp; := IntToStr(QP.ImageHeight); // is 1500<br>iwd := StrToFloat(iw);<br>ihd := StrToFloat(ih);<br><br>bdstr := IntToStr(border);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // border is 50<br>bddou := StrToFloat(bdstr);<br><br>QP.SetPageDimensions(mmwd + bddou,mmhd + bddou);&nbsp; // pagewidth shall be 2500 now<br><br>ShowMessage(FloatToStr(QP.PageWidth)); // &lt;--- here is 612 now!<br><br><br><span style="font-size:10px"><br /><br />Edited by Ingo - 15 Feb 07 at 5:24PM</span>]]>
   </description>
   <pubDate>Thu, 15 Feb 2007 17:07:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setpagedimensions_topic642_post2962.html#2962</guid>
  </item> 
 </channel>
</rss>