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 - SetOrigin
  FAQ FAQ  Forum Search   Register Register  Login Login

SetOrigin

 Post Reply Post Reply
Author
Message
darkv View Drop Down
Team Player
Team Player
Avatar

Joined: 17 Jan 11
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote darkv Quote  Post ReplyReply Direct Link To This Post Topic: SetOrigin
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
darkv View Drop Down
Team Player
Team Player
Avatar

Joined: 17 Jan 11
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote darkv Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

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