Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1547

TextPosition.getX() and getY() do not work properly with CropBox

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.1
    • None
    • None

    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?

      Attachments

        1. redig_test_crop3.pdf
          10 kB
          Juraj Lonc

        Activity

          People

            lehmi Andreas Lehmkühler
            chupacabras Juraj Lonc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: