ICEpdf
  1. ICEpdf
  2. PDF-808

java.lang.IllegalArgumentException: Raster ByteInterleavedRaster

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.1.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      When rendering the provided PDF in 5.1.0 certain images are not rendered and the following errors are displayed:

      WARNING: Error loading image: 17 0R Image stream= {Type=XObject, Interpolate=true, Filter=DCTDecode, Length=18 0R, ColorSpace=28 0R, Height=1344, Width=2640, Subtype=Image, BitsPerComponent=8} 17 0R
      java.lang.IllegalArgumentException: Raster ByteInterleavedRaster: width = 2640 height = 1344 #numDataElements 3 dataOff[0] = 0 is incompatible with ColorModel ColorModel: #pixelBits = 8 numComponents = 1 color space = java.awt.color.ICC_ColorSpace@2d24e320 transparency = 1 has alpha = false isAlphaPre = false
      at java.awt.image.BufferedImage.<init>(Unknown Source)
      at icepdf.ak.c(Unknown Source)
      at icepdf.aj.a(Unknown Source)
      at icepdf.aj.a(Unknown Source)
      at icepdf.aj.a(Unknown Source)
      at icepdf.gh.h(Unknown Source)
      at icepdf.gh.call(Unknown Source)
      at icepdf.gd.d(Unknown Source)
      at icepdf.fp.a(Unknown Source)
      at icepdf.gd.a(Unknown Source)
      at icepdf.if.a(Unknown Source)
      at icepdf.hf.a(Unknown Source)
      at icepdf.bl.a(Unknown Source)
      at icepdf.bl.a(Unknown Source)
      at icepdf.qk.a(Unknown Source)
      at icepdf.qk.a(Unknown Source)
      at icepdf.qp.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #42637 Thu Sep 25 11:22:48 MDT 2014 patrick.corless PDF-808 added correct wraster builing routine for a jpg that was flaged as gray but has 3 bands.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #42636 Thu Sep 25 11:15:59 MDT 2014 patrick.corless PDF-808 addition WeakHashMap for imagepool and inline image pools to improve memory management and decresae time garbage collecting.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/ImagePool.java
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: