<?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 : Howto transform existing pdf landscape2portrait?</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 : Howto transform existing pdf landscape2portrait?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 23:47:56 +0000</pubDate>
  <lastBuildDate>Tue, 30 Nov 2010 07:15:12 +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=1659</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[Howto transform existing pdf landscape2portrait? : Hi,Not sure if it will be helpful...]]></title>
   <link>http://www.quickpdf.org/forum/howto-transform-existing-pdf-landscape2portrait_topic1659_post7280.html#7280</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1384">Vankir</a><br /><strong>Subject:</strong> 1659<br /><strong>Posted:</strong> 30 Nov 10 at 7:15AM<br /><br />Hi,<br>Not sure if it will be helpful for you bit some PDF pages can be rotated and have Rotation attribute in PDF. In this case Adobe Acrobat shows them correctly (it applies rotation when render page as far as I understand). I use following code to Render such pages correctly.<br><br>long nDPI = _Module.GetDriverSettings()-&gt;GetPDFRenderResolution();<br>double dWidth = GetPDFLibrary()-&gt;DAGetPageWidth(m_nPDFFileRef, m_nPDFPageRef);<br>double dHeight = GetPDFLibrary()-&gt;DAGetPageHeight(m_nPDFFileRef, m_nPDFPageRef);<br>long nRotation = GetPDFLibrary()-&gt;DAPageRotation(m_nPDFFileRef, m_nPDFPageRef);<br><br>//change height and width if page is rotated<br>if(nRotation == 90 || nRotation == 270)<br>{<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; double dTmp = dWidth;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dWidth = dHeight;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dHeight = dTmp;<br>&nbsp;}<br>&nbsp;//transform width and height to inches and after that to pixels<br>&nbsp;dWidth = dWidth*nDPI/72;<br>&nbsp;dHeight = dHeight*nDPI/72;<br><br>Best regards,<br>Kirill<br>]]>
   </description>
   <pubDate>Tue, 30 Nov 2010 07:15:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/howto-transform-existing-pdf-landscape2portrait_topic1659_post7280.html#7280</guid>
  </item> 
  <item>
   <title><![CDATA[Howto transform existing pdf landscape2portrait? : Hi!It&amp;#039;s not a problem - If...]]></title>
   <link>http://www.quickpdf.org/forum/howto-transform-existing-pdf-landscape2portrait_topic1659_post7275.html#7275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1659<br /><strong>Posted:</strong> 29 Nov 10 at 11:28AM<br /><br />Hi!<br><br>It's not a problem - If the author used landscape, he wants landscape?<br>Have a look in the online reference guide.<br>There are functions to set and get the document dimensions/-formats.<br>You'll have problems if there are large images.<br>From landscape to portrait you have to capture,...<br>making smaller,... try to fit it on portrait,...<br>not an easy job.<br><br>Cheers, Ingo<br>]]>
   </description>
   <pubDate>Mon, 29 Nov 2010 11:28:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/howto-transform-existing-pdf-landscape2portrait_topic1659_post7275.html#7275</guid>
  </item> 
  <item>
   <title><![CDATA[Howto transform existing pdf landscape2portrait? : I&amp;#039;ve a pdf file, i want trasform...]]></title>
   <link>http://www.quickpdf.org/forum/howto-transform-existing-pdf-landscape2portrait_topic1659_post7274.html#7274</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1465">Giuseppe</a><br /><strong>Subject:</strong> 1659<br /><strong>Posted:</strong> 29 Nov 10 at 10:59AM<br /><br />I've a pdf file, i want trasform landscape to portrait, can i recognize this problem?]]>
   </description>
   <pubDate>Mon, 29 Nov 2010 10:59:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/howto-transform-existing-pdf-landscape2portrait_topic1659_post7274.html#7274</guid>
  </item> 
 </channel>
</rss>