RTTSoftware Support Forum

PDF-ShellTools => Ideas/Suggestions => Topic started by: nightslayer23 on July 01, 2020, 02:24:20 AM

Title: Script to check individual files for color space RGB v CMYK or MIX
Post by: nightslayer23 on July 01, 2020, 02:24:20 AM
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.
Title: Re: Script to check individual files for color space RGB v CMYK or MIX
Post by: RTT on July 02, 2020, 01:09:12 AM
How do you do check that currently?
Title: Re: Script to check individual files for color space RGB v CMYK or MIX
Post by: nightslayer23 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.
Title: Re: Script to check individual files for color space RGB v CMYK or MIX
Post by: RTT 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.