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

PDFToImage create blank pages: llegalArgumentException: Width (2480) and height (0) must be > 0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.0
    • None
    • None

    Description

      PDFToImage create blank pages.
      You can find this PDF file here: http://acl.ldc.upenn.edu/C/C90/C90-3003.pdf

      Exception is:

      java.lang.IllegalArgumentException: Width (2480) and height (0) must be > 0
      at java.awt.image.SampleModel.<init>(Unknown Source)
      at java.awt.image.MultiPixelPackedSampleModel.<init>(Unknown Source)
      at java.awt.image.MultiPixelPackedSampleModel.<init>(Unknown Source)
      at java.awt.image.Raster.createPackedRaster(Unknown Source)
      at java.awt.image.Raster.createPackedRaster(Unknown Source)
      at java.awt.image.IndexColorModel.createCompatibleWritableRaster(Unknown Source)
      at org.apache.pdfbox.pdmodel.graphics.xobject.PDCcitt.getRGBImage(PDCcitt.java:134)
      at org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:78)
      at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:551)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:274)
      at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:251)
      at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:225)
      at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:107)
      at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:722)
      at org.apache.pdfbox.util.PDFImageWriter.writeImage(PDFImageWriter.java:135)
      at org.apache.pdfbox.PDFToImage.main(PDFToImage.java:231)
      at org.apache.pdfbox.PDFBox.main(PDFBox.java:58)

      Attachments

        Activity

          People

            lehmi Andreas Lehmkühler
            hanna.grochowska hanna grochowska
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: