ICEpdf
  1. ICEpdf
  2. PDF-1006

Page.getPageBoundary() defaults to MEDIABOX instead of CROPBOX in case of bad usage

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.2
    • Fix Version/s: 6.1.3
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      ICEpdf 6.1.2 Pro
      Java SE 8u92 x64
      Windows 10 x64

      Description

      Comments in org.icepdf.core.pobjects.Page indicate that getPageBoundary(...) is supposed to check CROPBOX boundary in case of bad usage, but it actually always returns MEDIABOX: http://sventon.icesoft.org/svn/repos/repo/show/icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Page.java?revision=HEAD#L1200

      If the intended behavior was to fall back to CROPBOX, then code and documentation can be adjusted so: https://gist.github.com/fragmer/ba470cb0f523eba63d53a7f9230e2dfa/revisions

      Otherwise, if the intended behavior was to fall back to MEDIABOX, then code and documentation can be adjusted so: https://gist.github.com/fragmer/09a58e5f50906afc88d6d889f2c46d63/revisions

      (I know this is a pretty small problem, but it's also very easy to fix :))

        Activity

        Matvei Stefarov created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.2 [ 12974 ]
        Patrick Corless made changes -
        Fix Version/s 6.1.3 [ 13086 ]
        Fix Version/s 6.2 [ 12974 ]
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Matvei Stefarov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: