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!
![]() |
how to use GetOrigin function ? |
Post Reply
|
| Author | |
jdddahl
Beginner
Joined: 04 Jul 12 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: how to use GetOrigin function ?Posted: 04 Jul 12 at 10:11AM |
|
I work on a very basic module which takes PDF files on input and gets all text data in.
Fot that, I use the function DAExtractPageText Generally, it works fine, but I encountered a document with all items having negative Y coordinates. In fact, these coordinates start from the top (beeing negative) instead of the expected (positive) values described in the DAExtractPageText function. "...The co-ordinates are the four points bounding the text, measured in points (1/72 inch) with the bottom-left corner of the page as the origin...." Reading the description given with the SetOrigin function, I expected to get the same information using GetOrigin in order to use it accordingdly. For all files (even the one which gave me negative coordinates) , I always get the value "0" from GetOrigin (meaning "bottom-left") Is GetOrigin not helpful in that situation? Is there another way for knowing the coordinate system for a given PDF document we open? many thanks for help. |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 Jul 12 at 10:27AM |
|
Hi!
Perhaps this issue has additonally to do with the option "rotated"? You can check this with function "PageRotation": http://www.quickpdflibrary.com/help/quickpdf/PageRotation.php Cheers and welcome here, Ingo |
|
![]() |
|
jdddahl
Beginner
Joined: 04 Jul 12 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 Jul 12 at 1:51PM |
|
Thank you Ingo,
I've tried both: property PageRotation and function DAPageRotation => Always returning '0' as if document was not rotated. Isn't it related to the way or version the PDF file was generated with? Shouldn't GetOrigin return a consistent value anyway? main functions used are: |
|
![]() |
|
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