SetOrigin
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=1831
Printed Date: 17 Jan 26 at 12:40AM Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com
Topic: SetOrigin
Posted By: darkv
Subject: SetOrigin
Date Posted: 18 May 11 at 5:34PM
Does the SetOrigin can be used before extracting text, or is it just useful before writing text?
I read text, and want to get coordinates relative to TopLeft.
Seems that SetOrigin does not have effect when retrieving coordinates
Can someone confirm (or not)
Thanks in advance Eric
|
Replies:
Posted By: Ingo
Date Posted: 18 May 11 at 10:20PM
Hi Eric!
SetOrigin has no affect regarding textextraction and there's no need to 'cause you can use the options 3 and 4 to get the position data. So you know where's your extracted data from. The first row at the top is always the one with the highest value (in pixel / psunits). So row number 125 (for example) is pretty below and 852 is the highest while using format DIN A4.
Cheers, Ingo
|
Posted By: darkv
Date Posted: 19 May 11 at 1:32AM
Ingo,
Thanks for your reply, which confirms my thought.
I currently used option3 and it seems that origin is bottom right, regarding position i retrieved and text place in the file.
Does it mean i have to call getorigin before to be sure how the document origin was set? or is text extraction still referring to bottom right?
Thanks again
Cheers Eric
|
Posted By: Ingo
Date Posted: 19 May 11 at 7:28AM
Hi Eric!
Testextraction from pdf means last in - first out. So you'll get the last line at first. Page by page. If the whole page is written in pdf and at the end the author inserts one word in the first line this word was the last which was inserted but it's the first which will be extracted 'cause it's the last content on the page. With the coordinates you have to rearrange the content...
Cheers, Ingo
|
|