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

PDOutputIntent has N=3 (RGB) hardcoded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.10, 2.0.0
    • 1.8.11, 2.0.0
    • PDModel
    • None

    Description

      This code is suspicious:

          private PDStream configureOutputProfile (PDDocument doc, InputStream colorProfile) throws IOException {
              PDStream stream = new PDStream(doc,colorProfile, false); 
              stream.getStream().setFilters(COSName.FLATE_DECODE); 
              stream.getStream().setInt( COSName.LENGTH, stream.getByteArray().length ); 
              stream.getStream().setInt(COSName.N, 3); 
              stream.addCompression(); 
              return stream;
          }
      

      N is hardcoded to 3, although it could be a CMYK profile.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: