[
https://issues.apache.org/jira/browse/PDFBOX-4126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16375675#comment-16375675
]
Tilman Hausherr commented on PDFBOX-4126:
-----------------------------------------
https://stackoverflow.com/questions/21561909/finding-angle-from-transform-matrix
> TextPosition exact angle position
> ---------------------------------
>
> Key: PDFBOX-4126
> URL: https://issues.apache.org/jira/browse/PDFBOX-4126
> Project: PDFBox
> Issue Type: Improvement
> Components: Text extraction
> Affects Versions: 2.0.8
> Reporter: Alexandre
> Priority: Minor
> Attachments: test_rotation.pdf
>
>
> Dear Apache contributors,
> Is there an efficient way to get the exact angle in radians or degrees of a
> TextPosition, not only the ranges (0, 90, 180, 270). Basically, what we have
> currently uses the following information.
>
> {code:java}
> float a = textMatrix.getScaleY();
> float b = textMatrix.getShearY();
> float c = textMatrix.getShearX();
> float d = textMatrix.getScaleX();
> {code}
> Hagd, A.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]