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

GetPageText

 Post Reply Post Reply
Author
Message
jmontoya View Drop Down
Beginner
Beginner


Joined: 21 Jul 10
Location: Barcelona
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmontoya Quote  Post ReplyReply Direct Link To This Post Topic: GetPageText
    Posted: 11 Oct 12 at 3:43PM
Hello,
I need to know text angle in getpagetext. Will it be possible to get this value in a future release?

Thanks,
Jordi

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: 11 Oct 12 at 7:56PM
Hi Jordi!

If it's the rectangle around the text you want
Then you should try option "3". Please read here:
http://www.quickpdflibrary.com/help/quickpdf/GetPageText.php

Cheers, Ingo

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 12 Oct 12 at 11:54AM
It should be possible now with option 3.  You can check the relationship of the first point returned to that of the second point.

GetPageText  - Option 3

3 = Return a CSV string for each piece of text on the page with the following
format:
Font Name, Text Color, Text Size, X1, Y1, X2, Y2, X3, Y3, X4, Y4, Text
The co-ordinates are the four points bounding the text, measured using the
units set with the SetMeasurementUnits function and the origin set with
the SetOrigin function. Co-ordinate order is anti-clockwise with the bottom
left corner first.

This is just from the top of my head so you will need to test this and correct it if I am wrong.

if (X2 > X1) the angle = 0;
if (Y2 > Y1) then angle = 90;
if (X2 < X1) then angle = 180;
if (Y2 < Y1) then angle = 270;

This of course won't work if the text is rotate 45 degrees.  It should be possible to determine the angle using trigonometry of the line (x1, Y1) - (X2, Y2).

Andrew.
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