<?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 : Page Orientation</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 : Page Orientation]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 11:22:49 +0000</pubDate>
  <lastBuildDate>Fri, 09 Apr 2010 07:13:28 +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=1405</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[Page Orientation : Ingo thanks for your help.You&amp;#039;ve...]]></title>
   <link>http://www.quickpdf.org/forum/page-orientation_topic1405_post6352.html#6352</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1293">Jimeni</a><br /><strong>Subject:</strong> 1405<br /><strong>Posted:</strong> 09 Apr 10 at 7:13AM<br /><br />Ingo thanks for your help.<br><br>You've pointed me in the right direction. It turns out the pages have been rotated and saved, the program is picking out the original orientation rather than the current view.<br><br>I can see how much they have been rotated using the PageRotation function and then find a way to correct the problem.<br><br>Once again thanks for your help and your English is great, so no problems there!<br><br>Regards<br><br>Jim<br>]]>
   </description>
   <pubDate>Fri, 09 Apr 2010 07:13:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/page-orientation_topic1405_post6352.html#6352</guid>
  </item> 
  <item>
   <title><![CDATA[Page Orientation : Hi!You should use SetOrigin to...]]></title>
   <link>http://www.quickpdf.org/forum/page-orientation_topic1405_post6351.html#6351</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1405<br /><strong>Posted:</strong> 09 Apr 10 at 6:59AM<br /><br />Hi!<br><br>You should use SetOrigin to tell the system where you want to begin (top left, bottom right, ...).<br>A document can be created  in portrait-format and later changed to landscape (then it's rotated). Then you begin to draw in this document and all positions are the other way round (you must change your thinking in this case ;-)&nbsp;&nbsp;&nbsp; If you want to write on a document rotated with 180 degree your top left should be top right and so on ...<br>Even if you don't understand my "german english" you should understand now where's the problem in this case ;-)<br>Here's the complete user reference:<br>http://www.quickpdflibrary.com/help/quickpdf/FunctionGroups.php<br>Please read my post in the general section (...the first steps...).<br><br>Cheers and welcome here,<br>Ingo<br><br>&nbsp;<br>]]>
   </description>
   <pubDate>Fri, 09 Apr 2010 06:59:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/page-orientation_topic1405_post6351.html#6351</guid>
  </item> 
  <item>
   <title><![CDATA[Page Orientation :  I&amp;#039;m not sure its a code...]]></title>
   <link>http://www.quickpdf.org/forum/page-orientation_topic1405_post6349.html#6349</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1293">Jimeni</a><br /><strong>Subject:</strong> 1405<br /><strong>Posted:</strong> 09 Apr 10 at 6:42AM<br /><br /><i><b>I'm not sure its a code issue as it works fine in most PDFs but my code is below:</b></i><br><br>$qp-&gt;SetMeasurementUnits(1); /* Set as measured in mm */<br>echo $r = $qp-&gt;LoadFromFile($FilePath);<br><br>$intPageCount = 1;<br>for ( $qp-&gt;SelectPage($intPageCount); $intPageCount &lt;= $qp-&gt;PageCount; $intPageCount ++) { /* Loop through all pages in doc */<br>&nbsp;&nbsp;&nbsp; $qp-&gt;SelectPage($intPageCount); <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; $pageheight&nbsp; = $qp-&gt;PageHeight;<br>&nbsp;&nbsp;&nbsp; $pagewidth = $qp-&gt;PageWidth;<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; $myheight = (($pageheight/2) - ($pageheight * .05)); /* Define center - 5% of height to accomodate angle */<br>&nbsp;&nbsp;&nbsp; $mywidth = ($pagewidth/2);<br>&nbsp;&nbsp;&nbsp; $WatermarkSize = ( ($myheight + $mywidth) / strLen($Watermark) ); /* This should calc the correct text size relative to the document and amount of text */<br>&nbsp;&nbsp;&nbsp; $EPCNTextSize = ( ($myheight + $mywidth) / 60 );<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; $qp-&gt;SetTextAlign(1);/* Align text center */<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; $qp-&gt;SetTransparency(70);<br>&nbsp;&nbsp;&nbsp; $qp-&gt;SetTextSize($WatermarkSize);<br>&nbsp;&nbsp;&nbsp; echo $r = $qp-&gt;DrawRotatedText($mywidth, $myheight, 45, $Watermark); /* Draw Watermark at center */<br>&nbsp;&nbsp;&nbsp; $qp-&gt;SetTextAlign(2); /* Align text right */<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; $qp-&gt;SetTransparency(0);<br>&nbsp;&nbsp;&nbsp; $qp-&gt;SetTextSize($EPCNTextSize);<br>&nbsp;&nbsp;&nbsp; echo $r = $qp-&gt;DrawText($pagewidth -20, 1, "Open EPCN Number: " . $EPCN); /* Draw EPCN at bottom right with 20 padding */<br><br>}<br><br>$result = $qp-&gt;SaveToFile($OutputPath);<br>if ($result == 1)<br>{<br>&nbsp;&nbsp;&nbsp; header("Location: /Output/MyTest2.pdf");<br>}<br>else<br>{<br>&nbsp;&nbsp;&nbsp; echo "File could not be saved to disk.";<br>&nbsp;&nbsp;&nbsp; echo "&lt;br /&gt;&lt;br /&gt;";<br>}<br>$qp = null;<br><span style="font-size:10px"><br /><br />Edited by Jimeni - 09 Apr 10 at 6:42AM</span>]]>
   </description>
   <pubDate>Fri, 09 Apr 2010 06:42:27 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/page-orientation_topic1405_post6349.html#6349</guid>
  </item> 
  <item>
   <title><![CDATA[Page Orientation : Hi all,This is my first post.I...]]></title>
   <link>http://www.quickpdf.org/forum/page-orientation_topic1405_post6348.html#6348</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1293">Jimeni</a><br /><strong>Subject:</strong> 1405<br /><strong>Posted:</strong> 09 Apr 10 at 6:40AM<br /><br />Hi all,<br>This is my first post.<br><br>I am having an issue when using DrawText and DrawRotatedText with certain PDFs. How does the tool determine the page orientation?<br>With certain PDFs its drawing the text in the wrong place, it seems to think that a landscape image is portrait and so draws the text that should be along the bottom along the left hand side.<br><br>I've checked the PDF and I cant see what is different in it that might be causing this. Out of five images two have placed the text in the incorrect rotation and position.<br><br>Anyone have any ideas why this might be? How does it calculate what the bottom of the image is?<br><br>I'd post examples but unfortunately I'm working with classified documents.<br><br>Thanks in advance,<br><br>Jim<br>]]>
   </description>
   <pubDate>Fri, 09 Apr 2010 06:40:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/page-orientation_topic1405_post6348.html#6348</guid>
  </item> 
 </channel>
</rss>