|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!this.colorSpaces.isEmpty() || (parent != null && !parent.colorSpaces.isEmpty())) { |
|
|
if (!this.colorSpaces.isEmpty() || (parent != null && !parent.colorSpaces.isEmpty())) { |
|
|
PDFDictionary dict = new PDFDictionary(this); |
|
|
|
|
|
|
|
|
PDFDictionary dict = (PDFDictionary)this.get("ColorSpace"); |
|
|
|
|
|
if (dict == null) { |
|
|
|
|
|
dict = new PDFDictionary(this); |
|
|
|
|
|
} |
|
|
if (parent != null) { |
|
|
if (parent != null) { |
|
|
for (PDFColorSpace colorSpace : parent.colorSpaces.values()) { |
|
|
for (PDFColorSpace colorSpace : parent.colorSpaces.values()) { |
|
|
dict.put(colorSpace.getName(), colorSpace); |
|
|
dict.put(colorSpace.getName(), colorSpace); |