ICEpdf
  1. ICEpdf
  2. PDF-712

Spike in memory consumption from 5.0.1 to 5.0.4

    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

      Description

      A user has reported that that memory consumption from ICEPdf 5.0.1 to 5.0.4 has doubled when loading the following PDF document. There is no report of how they are measuring the consumption but they are however seeing a out of memory error in 5.0.4.

      This issue needs further investigation.

        Activity

        Hide
        Patrick Corless added a comment -

        PDF-712 test file.

        Show
        Patrick Corless added a comment - PDF-712 test file.
        Hide
        Patrick Corless added a comment -

        The memory size change is due to PDF-595 which was added in 5.0.3. The fix makes sure the the base image matches the size of the image mask. The sample file in question does not render correctly in 5.0.2 and earlier, the image rendered appears much larger then it should. The reason for this is the image mask is quite a bit larger then the base image.

        I'm going to update the ImageUtility so that there is choice about quality over memory.

        org.icepdf.core.imageScale.quality=true
        Default behavior, image will be scaled to the largest of the two images which should give higher quality output.
        org.icepdf.core.imageScale.quality=false
        Configurable, image will be scaled to the smallest of the two images which will save memory but the rendered output will be of lower quality

        Show
        Patrick Corless added a comment - The memory size change is due to PDF-595 which was added in 5.0.3. The fix makes sure the the base image matches the size of the image mask. The sample file in question does not render correctly in 5.0.2 and earlier, the image rendered appears much larger then it should. The reason for this is the image mask is quite a bit larger then the base image. I'm going to update the ImageUtility so that there is choice about quality over memory. org.icepdf.core.imageScale.quality=true Default behavior, image will be scaled to the largest of the two images which should give higher quality output. org.icepdf.core.imageScale.quality=false Configurable, image will be scaled to the smallest of the two images which will save memory but the rendered output will be of lower quality
        Hide
        Patrick Corless added a comment -

        The system property is "org.icepdf.core.imageMaskScale.quality" true|false. If set to false the mask will be scaled to the smaller image size and the image will be rendered at a lower quality but will use less memory.

        Show
        Patrick Corless added a comment - The system property is "org.icepdf.core.imageMaskScale.quality" true|false. If set to false the mask will be scaled to the smaller image size and the image will be rendered at a lower quality but will use less memory.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: