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!
![]() |
SetOrigin |
Post Reply
|
| Author | |
darkv
Team Player
Joined: 17 Jan 11 Status: Offline Points: 38 |
Post Options
Thanks(0)
Quote Reply
Topic: SetOriginPosted: 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 |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
darkv
Team Player
Joined: 17 Jan 11 Status: Offline Points: 38 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store