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

Juraj Lonc updated PDFBOX-1547:
-------------------------------

    Description: 
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?


  was:
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.

"page" in function description means MediaBox or CropBox?


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