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

Printing a PDF with an image inside show black.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.8.5, 2.0.0
    • Component/s: Rendering
    • Labels:
    • Environment:
      Windows XP SP3 32 bit
      Java 1.6.0_27

      Description

      I have a PDF with a image inside.
      When i print the PDF the image show corrupted similar a black area.
      In the java console:

      25-oct-2011 13:12:39 org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap getRGBImage
      GRAVE: java.io.StreamCorruptedException: Error: data is null
      java.io.StreamCorruptedException: Error: data is null
      at org.apache.pdfbox.filter.LZWFilter.decode(LZWFilter.java:82)
      at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:301)
      at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:229)

        Attachments

        1. stream2.lzw
          0.7 kB
          Tilman Hausherr
        2. stream.lzw
          0.9 kB
          Tilman Hausherr
        3. stream.decoded
          29 kB
          Tilman Hausherr
        4. pdfbox-1147.pdf-1.png
          213 kB
          Tilman Hausherr
        5. p1logo.pdf
          7 kB
          Rafa Hernandez

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                rafher Rafa Hernandez
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: