[ 
https://issues.apache.org/jira/browse/PDFBOX-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Lehmkühler resolved PDFBOX-1547.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.9.0
         Assignee: Andreas Lehmkühler

You are right, we have to use the cropbox instead of the mediabox. The 
PDGraphicsState already uses the cropbox. I've fixed that in revision 1461796.

Thanks for the report and the pointer!
                
> TextPosition.getX() and getY() do not work properly with CropBox
> ----------------------------------------------------------------
>
>                 Key: PDFBOX-1547
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1547
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Juraj Lonc
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.9.0
>
>         Attachments: redig_test_crop3.pdf
>
>
> TextPosition.getX() and getY() are supposed to calculate position relative to 
> upper left corner of page.
> When PDF contains CropBox then these functions return incorrect values. 
> CropBox is ignored.
> Text is relative to CropBox coordinates but calculations are made only with 
> pageWidth and pageHeight, and that is wrong.
> "page" in function description means MediaBox or CropBox?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to