Compare commits

..

No commits in common. "e2aa5e5aca6a070aefc12ef810595d3f938dba42" and "8839129d6b1b90eb612beef7213a470c9bb0452e" have entirely different histories.

View file

@ -826,9 +826,7 @@ class pdfdoc(object):
elif color == Colorspace.CMYK or color == Colorspace["CMYK;I"]:
iccpdict[PdfName.N] = 4
elif color == Colorspace.P:
# Only the png format can have an icc profile as well as a
# color palette. A png palette is always RGB.
iccpdict[PdfName.N] = 3
raise Exception("Cannot have Palette images with ICC profile")
colorspace = [PdfName.ICCBased, iccpdict]
# either embed the whole jpeg or deflate the bitmap representation