Print Page | Close Window

Q: Meaning of Origin

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=509
Printed Date: 19 May 24 at 1:06PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Q: Meaning of Origin
Posted By: ukobsa
Subject: Q: Meaning of Origin
Date Posted: 19 Sep 06 at 5:28AM
Hi,

I have a pdf document with some very interesting values for mediabox, artbox and trimbox:

/MediaBox [ -90 -216 702 1008 ]
/TrimBox [ -90 -216 702 1008 ]
/ArtBox [ 0.499 -193.6718 613.2822 970.6782 ]

My question is: what is the meaning of Origin in this case?

if I start with Origin = poLeftBottom (default) and switch Origin to poLeftTop this results in a mediabox of
[-90, 216, 702, 1440]
as Top and Bottom are calculated as PageHeight - OriginalTop (OriginalBottom). But this values doesn't make very much sense for me.
This calculation only makes sense when mediabox starts with Left = 0 and Bottom = 0, so that the origin is always the according edgepoint of the mediabox.

But what to do in the above example. How should box coordinates be calculated when a origin switch occurs?

Thanks,
Uli




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