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

OutOfMemory on reading FlateFilter images in PDF

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.7.0, 2.0.0
    • Fix Version/s: None
    • Component/s: Parsing, Rendering
    • Labels:
      None

      Description

      I had set JAVA VM parameter -Xmx1048m

      Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
      at org.apache.pdfbox.io.RandomAccessBuffer.expandBuffer(RandomAccessBuffer.java:151)
      at org.apache.pdfbox.io.RandomAccessBuffer.write(RandomAccessBuffer.java:131)
      at org.apache.pdfbox.io.RandomAccessFileOutputStream.write(RandomAccessFileOutputStream.java:108)
      at java.io.OutputStream.write(OutputStream.java:58)
      at org.apache.pdfbox.filter.FlateFilter.decode(FlateFilter.java:129)
      at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:279)
      at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:221)
      at org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:156)
      at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:214)
      at org.apache.pdfbox.pdmodel.common.PDStream.getByteArray(PDStream.java:468)
      at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:183)

        Attachments

        1. 40376536.PDF
          5.03 MB
          philip huang

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                szqed philip huang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: