Author Topic: Script to check individual files for color space RGB v CMYK or MIX  (Read 183 times)

0 Members and 1 Guest are viewing this topic.

nightslayer23

  • Newbie
  • *
  • Posts: 69
Hi again,

looking for a script for checking files for what colorspace the file is in, CMYK, RGB or a mix of both, then adding that information to a custom handle in metadata.

RTT

  • Administrator
  • *****
  • Posts: 857
How do you do check that currently?

nightslayer23

  • Newbie
  • *
  • Posts: 69
you need to open them in acrobat and check for CMYK elements and RGB elements in the output preview.

RTT

  • Administrator
  • *****
  • Posts: 857
The Acrobat "convert colors" tool, in its "document colors" section, list the color spaces used by the document so probably a faster way to get this information?
Anyway, PDF-ShellTools doesn't have, currently, functionality to get this.
I also don't see in the Acrobat automation API's such functionality. Its Javascript API has a colorConvertPage method, that can be used to convert page object between color spaces, but I don't see any method to report the color space used by page objects.