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

IllegalArgumentException not catched or declared while creating ICC profile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.1
    • 1.7.0
    • PDModel
    • None

    Description

      In class org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.createColorSpace() the call to ICC_Profile.getInstance( profile ) might return an IllegalArgumentException. This exception is neither documented nor catched in this method (RuntimeException). Since method documentation states that an IOException is thrown if color space could not be created I would suggest catching IllegalArgumentException and wrap it in an IOException. I will add a patch to this issue.

      Attachments

        1. pdfbox_issue817.patch
          0.9 kB
          Timo Boehme

        Activity

          People

            lehmi Andreas Lehmkühler
            tboehme Timo Boehme
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: