[
https://issues.apache.org/jira/browse/PDFBOX-4597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16890134#comment-16890134
]
Gili commented on PDFBOX-4597:
------------------------------
[~mkl]
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?
It occurs to me that users can use this information to create their own mapping
from that number to a multiple of 90 degrees and knowing the exact angle would
calculate the distance between two lines of text.
With PDFBOX-1912 in the works, it seems increasingly likely that documents will
contain text with arbitrary angles of rotation and users will want to process
the document accordingly (relative to the exact text angle). Also, with OCR
documents I suspect that you will need a different angle per letter (not per
word, line or document) because I've personally scanned some documents where
the angle changed over the course of a line because the scanned paper was
warped/folded slightly.
> 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: [email protected]
For additional commands, e-mail: [email protected]