Summary: | devn_get_params returns mostly incorrect values | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Ray Johnston <ray.johnston> |
Component: | Color | Assignee: | Default assignee <ghostpdl-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sphinx.pinastri |
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Customer: | Word Size: | --- |
Description
Ray Johnston
2013-01-17 14:19:19 UTC
Do we have a test file that has a CRD so that we can exercise this bit of code? I think since we have gone to a pure ICC workflow this bit of code could probably be removed. This seems to work now. The following program
/dump { % dict /key -> dict
dup ==only ( ) =only
2 copy known { 2 copy get == pop }{(none)== } ifelse
} bind def
/params {
currentpagedevice
{/Separations/ProcessColorModel/SeparationColorNames/SeparationOrder
/PageSpotColors/CRDDefault} //dump forall pop
} bind def
params
<< /SeparationColorNames [/Cyan/Magenta/Yellow/Black/Pink/Rainbow]
/SeparationOrder 1 index
/PageSpotColors 2
>> setpagedevice
params
showpage
Prints
~/ghostpdl/debugbin/gs -q -sDEVICE=tiffsep -o a.tiff devn.ps
/Separations false
/ProcessColorModel /DeviceCMYK
/SeparationColorNames []
/SeparationOrder []
/PageSpotColors -1
/CRDDefault (none)
/Separations false
/ProcessColorModel /DeviceCMYK
/SeparationColorNames [/Cyan /Magenta /Yellow /Black /Pink /Rainbow]
/SeparationOrder [/Cyan /Magenta /Yellow /Black /Pink /Rainbow]
/PageSpotColors 2
/CRDDefault (none)
Closing as per Peter's comment #2 |