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!
![]() |
GetPageText |
Post Reply ![]() |
Author | |
jmontoya ![]() Beginner ![]() Joined: 21 Jul 10 Location: Barcelona Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3530 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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