[ 
https://issues.apache.org/jira/browse/PDFBOX-4597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16890184#comment-16890184
 ] 

Michael Klink commented on PDFBOX-4597:
---------------------------------------

{quote}[~cowwoc]Is it possible to add a method that would return the actual 
angle of transformation, even if it isn't a multiple of 90 degrees?{quote}

Well, the code for that is trivial (apply the matrix to (1,0,1) and (0,0,1) and 
calculate the atan of the difference; if you are more interested in uprightness 
and less in actual text direction, probably add 180° in case of a negative 
determinant), so anyone can create code to that effect. Whether a change of the 
API is desired, I cannot tell.

{quote}With PDFBOX-1912 in the works{quote}

Well, it is IN PROGRESS since May *2014*, and the latest commit to that project 
was in October 2014... Or do you have other activity information with more 
recent dates?

> TextPosition.getX() vs getXDirAdj()
> -----------------------------------
>
>                 Key: PDFBOX-4597
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4597
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Documentation, Text extraction
>    Affects Versions: 2.0.15
>            Reporter: Gili
>            Priority: Major
>         Attachments: rot90.pdf
>
>
> Please explain the difference between "page rotation adjusted coordinates" 
> and "text direction adjusted coordinates" as referenced by the TextPosition 
> class. You can add an explanation (ideally a visual one) to the class or 
> method Javadoc.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to