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

Can't create PDF with DeviceN colorspace

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.8, 1.8.9, 2.0.0
    • Fix Version/s: 1.8.10, 2.0.0
    • Component/s: PDModel
    • Labels:

      Description

      Reported by Floris in the user mailing list. His PDF didn't have the attributes:

      6 0 obj
      <<
      /Cs1 /DeviceGray
      /Cs2 /DeviceN
       >>
      endobj
      

      Reasons:

      • local array overwrites base array
      • getCOSObject returns name instead of array
      • setAttributes inflates the array too much (likely accidentally introduced in rev 1429524)

      PDF after the fix:

      6 0 obj
      <<
      /Cs1 /DeviceGray
      /Cs2 [/DeviceN [/Cyan /Magenta /Yellow /Black /Orange /Green]
       /DeviceCMYK 8 0 R 9 0 R]
      >>
      endobj
      

      One of the bugs is also in the trunk, I will test this later.

        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: