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

0 Members and 1 Guest are viewing this topic.

nightslayer23

  • Newbie
  • *
  • Posts: 98
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: 918
Re: Script to check individual files for color space RGB v CMYK or MIX
« Reply #1 on: July 02, 2020, 01:09:12 AM »
How do you do check that currently?

nightslayer23

  • Newbie
  • *
  • Posts: 98
Re: Script to check individual files for color space RGB v CMYK or MIX
« Reply #2 on: July 07, 2020, 04:45:29 AM »
you need to open them in acrobat and check for CMYK elements and RGB elements in the output preview.

RTT

  • Administrator
  • *****
  • Posts: 918
Re: Script to check individual files for color space RGB v CMYK or MIX
« Reply #3 on: July 10, 2020, 02:44:24 PM »
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.