ICEpdf
  1. ICEpdf
  2. PDF-705

Smooth scaling tries to scale 0x0 images.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.0.5
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any
    • Salesforce Case Reference:

      Description

      The PDF in question contains several 1x1 images that when processed by the smoothScaled image reference results in an illegal argument exception when 0x0 gets passed as parameters. The root of the issue is that we do a 1x 0.99 and cast to an int which results in zero.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #39464 Fri Dec 20 04:07:22 MST 2013 patrick.corless PDF-705 updated the scaling to avoid a around down to zero issue with small images.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/SmoothScaledImageReference.java
        Patrick Corless created issue -
        Hide
        Patrick Corless added a comment -

        Updated the scaling multiplication to make sure the ceilling is used to avoid any issue when casting from double to int.

        Show
        Patrick Corless added a comment - Updated the scaling multiplication to make sure the ceilling is used to avoid any issue when casting from double to int.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Arran Mccullough made changes -
        Salesforce Case Reference 5007000000YYzzpAAD
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: