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

PDPattern.getCOSObject() always returns null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      None

      Description

      As reported by Clifford in the mailing list:

      PDPage page = new PDPage();
      PDColorSpace cs = PDColorSpace.create(COSName.PATTERN,page.getResources());
      System.out.println(cs.getCOSObject());
      

      this outputs null because the array field is not initialized.

      The PDF specification has this:

      A colour space shall be defined by an array object whose first element is a name object identifying the colour space family. The remaining array elements, if any, are parameters that further characterize the colour space; their number and types vary according to the particular family. For families that do not require parameters, the colour space may be specified simply by the family name itself instead of an array.

        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: