Do you own a Debenu Quick PDF Library 8 or earlier license? Upgrade to Debenu Quick PDF Library 9 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed: Is Origin per-page or per-document?
  FAQ FAQ  Forum Search   Register Register  Login Login

Is Origin per-page or per-document?

 Post Reply Post Reply
Author
Message
cscooper View Drop Down
Beginner
Beginner
Avatar

Joined: 06 Apr 12
Location: Boulder, CO
Online Status: Offline
Posts: 13
Post Options Post Options   Quote cscooper Quote  Post ReplyReply Direct Link To This Post Topic: Is Origin per-page or per-document?
    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

Back to Top
fargburger View Drop Down
Beginner
Beginner


Joined: 03 Apr 12
Location: Wisconsin
Online Status: Offline
Posts: 13
Post Options Post Options   Quote fargburger Quote  Post ReplyReply Direct Link To This Post Posted: 13 Apr 12 at 6:14PM
I'm using it in Delphi XE2 and setting it once per document.
Back to Top
edvoigt View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 Mar 11
Location: Berlin, Germany
Online Status: Offline
Posts: 110
Post Options Post Options   Quote edvoigt Quote  Post ReplyReply Direct Link To This Post 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


Edited by edvoigt - 14 Apr 12 at 4:52PM
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Copyright © 2013 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store