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

DrawPrintTextLocations with incorrect coordinates when cropbox

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Text extraction
    • None

    Description

      PrintTextLocations brings different locations when there is a (smaller) cropBox. This can be seen with the digitalcorpora file 011939.pdf, where the cropbox has x and y = 9.

      BT
      /F3 1 Tf
      10 0 0 10 280.0398 724.3551 Tm
      0 0 0 0.7 k
      (RESEARCH) Tj
      ET
      

      1.8:

      String[271.0398,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]R
      String[275.6798,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=3.7000122]E
      String[279.37982,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]S
      String[284.01984,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=3.7000122]E
      String[287.71985,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]A
      String[292.35986,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]R
      String[296.99988,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]C
      String[301.6399,40.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]H
      

      2.0:

      String[280.0398,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]R
      String[284.6798,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=3.7000122]E
      String[288.37982,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]S
      String[293.01984,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=3.7000122]E
      String[296.71985,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]A
      String[301.35986,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]R
      String[305.99988,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]C
      String[310.6399,31.644897 fs=1.0 xscale=10.0 height=6.2 space=2.3200002 width=4.6400146]H
      

      Attachments

        1. 011939.pdf
          79 kB
          Tilman Hausherr

        Activity

          People

            Unassigned Unassigned
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: