<?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 : pageWidth, DAGetPageWidth results</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 : pageWidth, DAGetPageWidth results]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 19:31:13 +0000</pubDate>
  <lastBuildDate>Mon, 17 Jun 2013 13:27:54 +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=2671</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[pageWidth, DAGetPageWidth results : Hello Andrew, Ingo,thank you for...]]></title>
   <link>http://www.quickpdf.org/forum/pagewidth-dagetpagewidth-results_topic2671_post10952.html#10952</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2404">ginidat</a><br /><strong>Subject:</strong> 2671<br /><strong>Posted:</strong> 17 Jun 13 at 1:27PM<br /><br />Hello Andrew, Ingo,<br><br>thank you for help!<br><br>Now it works.<br>I think my fault was not to use the function "DAFindPage".<br><br>Thank's again!<br><br>Ginidat<br>]]>
   </description>
   <pubDate>Mon, 17 Jun 2013 13:27:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pagewidth-dagetpagewidth-results_topic2671_post10952.html#10952</guid>
  </item> 
  <item>
   <title><![CDATA[pageWidth, DAGetPageWidth results :   You need to be using the following...]]></title>
   <link>http://www.quickpdf.org/forum/pagewidth-dagetpagewidth-results_topic2671_post10951.html#10951</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2671<br /><strong>Posted:</strong> 15 Jun 13 at 8:44AM<br /><br /><div><br></div><div>You need to be using the following code. &nbsp;As Ingo mentions the DA functions should only be used with other DA functions. &nbsp;</div><div><br></div><div>&nbsp; fh := QP.DAOpenFile(fn, '');</div><div>&nbsp; ph := QP.DAFindPage(fh, 1);</div><div><span style="line-height: 1.4;">&nbsp; width := QP.DAGetPageWidth(fh, ph);</span></div><div><br></div><div>You might find it easier to use the non-DA functions which also support much more functionality.</div><div><br></div><div>&nbsp; rey := QP.LoadFromFile(fn, '');</div><div><span style="line-height: 1.4;">&nbsp; if (ret = 1) then</span></div><div>&nbsp; begin</div><div>&nbsp; &nbsp; QP.SelectPage(1);</div><div>&nbsp; &nbsp; QP.SetMeasurementUnits(2);</div><div>&nbsp; &nbsp; pageWidth := QP.PageWidth();</div><div>&nbsp; end;</div><div><br></div><div>Also by default QPL always has a single 1 page document loaded in memory and this is why QP.PageWidth is returning 8.5.</div><div><br></div><div>You might find it useful to read parts of the Developer Guide PDF that comes with QPL.</div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Sat, 15 Jun 2013 08:44:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pagewidth-dagetpagewidth-results_topic2671_post10951.html#10951</guid>
  </item> 
  <item>
   <title><![CDATA[pageWidth, DAGetPageWidth results : Hi Gini!Please keep in mind never...]]></title>
   <link>http://www.quickpdf.org/forum/pagewidth-dagetpagewidth-results_topic2671_post10950.html#10950</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2671<br /><strong>Posted:</strong> 14 Jun 13 at 5:31PM<br /><br />Hi Gini!<div><br></div><div>Please keep in mind never mix da- and non-da-functions.</div><div>A DALoad... isn't a real load so the non-da-function PageWidt won't get a correct result.</div><div><br></div><div>Cheers and welcome here,</div><div>Ingo</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 14 Jun 2013 17:31:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pagewidth-dagetpagewidth-results_topic2671_post10950.html#10950</guid>
  </item> 
  <item>
   <title><![CDATA[pageWidth, DAGetPageWidth results : Hello all!I&amp;#039;ve problems to...]]></title>
   <link>http://www.quickpdf.org/forum/pagewidth-dagetpagewidth-results_topic2671_post10949.html#10949</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2404">ginidat</a><br /><strong>Subject:</strong> 2671<br /><strong>Posted:</strong> 14 Jun 13 at 5:24PM<br /><br />Hello all!<br><br>I've problems to get the page width and height of different existing documents<br>of different page sizes (as Adobe Reader confirms).<br><br><br>Using PageWidth (with measure unit "Inch") I allways get 8.5<br>Using DAGetPageWidth I allways get 0.0<br><br>maybe there is something wrong in my code (Delphi XE2):<br><br><table width="99%"><tr><td><pre class="BBcode"><br>handle := fPDFLib.DAOpenFileReadOnly( fn, '' );<br>fPDFLib.SetMeasurementUnits( 2 );<br>if ( fPDFLib.SelectPage( 1 ) = 1 ) then<br>&nbsp;&nbsp; docWidth := fPDFLib.PageWidth;<br><br>OR<br>docWidth := fPDFLib.DAGetPageWidth( handle, 1 );<br><br></pre></td></tr></table><br><br>Have anyone an idea what is going wrong?<br><br>Thank's!<br>Cheers, Ginidat<br>]]>
   </description>
   <pubDate>Fri, 14 Jun 2013 17:24:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/pagewidth-dagetpagewidth-results_topic2671_post10949.html#10949</guid>
  </item> 
 </channel>
</rss>