Print Page | Close Window

Is Origin per-page or per-document?

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=2233
Printed Date: 13 Aug 25 at 5:25PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Is Origin per-page or per-document?
Posted By: cscooper
Subject: Is Origin per-page or per-document?
Date Posted: 13 Apr 12 at 6:12PM
When I call SetOrigin(), what is the scope of the change - am I changing the origin for the current stream, the current page, or the entire document?

Thanks,
Chris




Replies:
Posted By: fargburger
Date Posted: 13 Apr 12 at 6:14PM
I'm using it in Delphi XE2 and setting it once per document.


Posted By: edvoigt
Date Posted: 13 Apr 12 at 9:38PM
Hi,

the reference guide says: "Sets the origin for all subsequent drawing operations."

Beware:
There is nothing written about pages. Setorigin has no effects for content, which is made before this setting, independed how did make it. It gives QP only an advise, how are coordinates in following function calls to be interpreted.

And so it is valid over page boundaries, until you set the origin new.

In the background has QP much more to do. If you are interested to understand what, look at "4.2.3 Transformation Matrices" in Adobes PDF-Spec.

Werner



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