Print Page | Close Window

PageHeight, PageWidth return incorrect values

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=2910
Printed Date: 28 Jun 25 at 1:38PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PageHeight, PageWidth return incorrect values
Posted By: thieu
Subject: PageHeight, PageWidth return incorrect values
Date Posted: 02 Jun 14 at 9:33AM
Hello,

I have a PDF document which is formatted in non-standard size (480x384 for each page). When the document is loaded with QuickPDF, PageWidth and PageHeight return incorrect values: 792 for height and 612 for width. My application has to deal with PDF documents in various size but this is the first time this issue happen.
Would anybody please help me with this issue?

Thank you.



Replies:
Posted By: tfrost
Date Posted: 02 Jun 14 at 11:13AM
What do the HasPageBox and GetPageBox functions reveal to you?  The Media box or Crop box can cause the apparent page size (when viewed or printed) to be smaller than the PageWidth and PageHeight.


Posted By: thieu
Date Posted: 03 Jun 14 at 2:30AM
Thank you tfrost. GetPageBox with CropBox option returns correct value.



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