Print Page | Close Window

Page Orientation problem

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1758
Printed Date: 13 May 25 at 4:17PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Page Orientation problem
Posted By: Totolik
Subject: Page Orientation problem
Date Posted: 06 Mar 11 at 3:32PM
I have a problem with QP.PageWidth and PageHeight methods in VB. They seem to be switched one with another. For example when I render the page and it appears in Landscape , but PageWidth always gives me less value than PageHeight. What might be a problem?



Replies:
Posted By: Ingo
Date Posted: 06 Mar 11 at 5:02PM
Hi!

Please read in the online-refernce here:
http://www.quickpdflibrary.com/help/quickpdf/MeasurementAndCoordinateUnits.php
...and have a look at this function SetOrigin:
http://www.quickpdflibrary.com/help/quickpdf/SetOrigin.php

Cheers and welcome here,
Ingo


Posted By: Totolik
Date Posted: 06 Mar 11 at 7:13PM
Ingo, after reading those topics you mentioned I'm still in a dark. I might explain problem not clear - basically I have a document with height 612 points and width of 754 points. It appears landscape after rendering. But QP.PageWidth returns 612 while QP.PageHeight returns 754. I appear as pure bug to me or there is some secrete auto-rotation protocol in place.


Posted By: Ingo
Date Posted: 06 Mar 11 at 8:54PM
So it was first created as portrait and later rotated.
So check if it's rotated... and if "yes" then change the values.
Use GetPageContent and "see" if there's "rotate"...

Cheers, Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk