Skip to main content
Tweeted twitter.com/StackMma/status/761101832370348033
added 88 characters in body
Source Link
Russ Lyons
  • 548
  • 2
  • 13

If I create a figure using the CMYK color space, it views on screen as RGB. It also exports as RGB. I want an eps file, but I also tried pdf and jpg. Example:

p = Graphics[{CMYKColor[1, 0, 1, 0], Rectangle[]}]
Export["testp.eps",p]

If you look in the eps file, you find the line

0 0.999985 0 rg

where earlier rg has been defined as

/rg { setrgbcolor } bind def

If the line were changed to

1 0 1 0 setcmykcolor

then it would be correct.

How do I get it to export as CMYK?

If I create a figure using the CMYK color space, it views on screen as RGB. It also exports as RGB. I want an eps file, but I also tried pdf and jpg. Example:

p = Graphics[{CMYKColor[1, 0, 1, 0], Rectangle[]}]
Export["testp.eps",p]

If you look in the eps file, you find the line

0 0.999985 0 rg

where earlier rg has been defined as

/rg { setrgbcolor } bind def

How do I get it to export as CMYK?

If I create a figure using the CMYK color space, it views on screen as RGB. It also exports as RGB. I want an eps file, but I also tried pdf and jpg. Example:

p = Graphics[{CMYKColor[1, 0, 1, 0], Rectangle[]}]
Export["testp.eps",p]

If you look in the eps file, you find the line

0 0.999985 0 rg

where earlier rg has been defined as

/rg { setrgbcolor } bind def

If the line were changed to

1 0 1 0 setcmykcolor

then it would be correct.

How do I get it to export as CMYK?

made the question explicit in the post, not merely the title
Source Link
Russ Lyons
  • 548
  • 2
  • 13

If I create a figure using the CMYK color space, it views on screen as RGB. It also exports as RGB. I want an eps file, but I also tried pdf and jpg. Example:

p = Graphics[{CMYKColor[1, 0, 1, 0], Rectangle[]}]
Export["testp.eps",p]

If you look in the eps file, you find the line

0 0.999985 0 rg

where earlier rg has been defined as

/rg { setrgbcolor } bind def

How do I get it to export as CMYK?

If I create a figure using the CMYK color space, it views on screen as RGB. It also exports as RGB. I want an eps file, but I also tried pdf and jpg. Example:

p = Graphics[{CMYKColor[1, 0, 1, 0], Rectangle[]}]
Export["testp.eps",p]

If you look in the eps file, you find the line

0 0.999985 0 rg

where earlier rg has been defined as

/rg { setrgbcolor } bind def

If I create a figure using the CMYK color space, it views on screen as RGB. It also exports as RGB. I want an eps file, but I also tried pdf and jpg. Example:

p = Graphics[{CMYKColor[1, 0, 1, 0], Rectangle[]}]
Export["testp.eps",p]

If you look in the eps file, you find the line

0 0.999985 0 rg

where earlier rg has been defined as

/rg { setrgbcolor } bind def

How do I get it to export as CMYK?

Source Link
Russ Lyons
  • 548
  • 2
  • 13

How to export CMYK in eps?

If I create a figure using the CMYK color space, it views on screen as RGB. It also exports as RGB. I want an eps file, but I also tried pdf and jpg. Example:

p = Graphics[{CMYKColor[1, 0, 1, 0], Rectangle[]}]
Export["testp.eps",p]

If you look in the eps file, you find the line

0 0.999985 0 rg

where earlier rg has been defined as

/rg { setrgbcolor } bind def