summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2017-10-02 16:32:25 +0100
committerChris Liddell <chris.liddell@artifex.com>2017-10-03 08:42:11 +0100
commit5751e508f72238c1fcaad1a4c284aa875542dd70 (patch)
tree18ba7d1806e664a939609f6397a6f4b9c1a4d00c
parent3c2974bcd2e638be13c0ec814342a1a35ca0872b (diff)
downloadghostpdl-5751e508f72238c1fcaad1a4c284aa875542dd70.tar.gz
PDF interpreter - fix default /Decode for Lab images
When we get an image with no /Decode array we create a default one for it by looking at the image colour space. For Lab we use the /Range array, but unfortunately this only covers the a and b channels, not the L. However, L always ranges from 0 - 100 so here we just pull the Range array apart, add in that range, and create a new array for the /Decode.
-rw-r--r--Resource/Init/pdf_draw.ps2
1 files changed, 1 insertions, 1 deletions
diff --git a/Resource/Init/pdf_draw.ps b/Resource/Init/pdf_draw.ps
index 2443bd1fa..68a56a367 100644
--- a/Resource/Init/pdf_draw.ps
+++ b/Resource/Init/pdf_draw.ps
@@ -1418,7 +1418,7 @@ end
/CIEBasedABC { 1 get /RangeABC knownoget not { //01_3 } if } bind
/CalGray { pop //01_1 } bind
/CalRGB { pop //01_3 } bind
- /Lab { 1 get /Range knownoget not { [-100 100 -100 100] } if } bind
+ /Lab { 1 get /Range knownoget not { [-100 100 -100 100] } {aload pop 0 100 6 2 roll 6 array astore}ifelse } bind
/ICCBased {
1 oget dup /Range knownoget {
exch pop