pdfa: assume 3 RGB channels always

This commit is contained in:
James R. Barlow
2019-09-11 12:55:38 -07:00
parent d7b7ca0574
commit 078bc2abe9
+1 -12
View File
@@ -54,18 +54,7 @@ pdfa_def_template = u"""%!
def
[/_objdef {icc_PDFA} /type /stream /OBJ pdfmark
[{icc_PDFA}
<<
/N currentpagedevice /ProcessColorModel known {
currentpagedevice /ProcessColorModel get dup /DeviceGray eq
{pop 1} {
/DeviceRGB eq
{3}{4} ifelse
} ifelse
} {
(ERROR, unable to determine ProcessColorModel) == flush
} ifelse
>> /PUT pdfmark
[{icc_PDFA} << /N 3 >> /PUT pdfmark
[{icc_PDFA} ICCProfile /PUT pdfmark
% Define the output intent dictionary :