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

DeviceCMYK support in PDColorSpaceFactory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0-incubator
    • PDModel
    • None

    Description

      Running the PrintImageLocations example, causes an exception on some PDF files:

      java.io.IOException: Unknown colorspace array type:COSName

      {DeviceCMYK}

      at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpaceFactory.createColorSpace (PDColorSpaceFactory.java:107)

      One of the methods in PDColorSpaceFactory class is missing the codes that handels DeviceCMYK Colour Space.

      I attached a patch that solves the problem (I hope)

      Attachments

        1. hilel-new.patch
          0.9 kB
          Hilel New

        Activity

          People

            Unassigned Unassigned
            hilel14 Hilel New
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: