Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 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
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   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
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   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
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   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
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

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