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

PDOutputIntent has N=3 (RGB) hardcoded

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.10, 2.0.0
    • Fix Version/s: 1.8.11, 2.0.0
    • Component/s: PDModel
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: