You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2013/04/10 19:12:18 UTC

[jira] [Closed] (PDFBOX-1547) TextPosition.getX() and getY() do not work properly with CropBox

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

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

    
> 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.8.1
>
>         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