Hi,
I run up against this particular dead end every few years but never quite solve it. I wonder if anyone has any clever ideas?
I have an InDesign file and I want to know what plates will be printed. That's to say, if exported the file as a PDF (for print) and looked in Output Preview, I'd want to know which separations actually have anything on them. That last bit is the problem.
I've tried reading the Colorants field in the XMP using exiftool, but it doesn't seem to contain CMYK inks other than, confusingly, black.
I've tried using AppleScript to get the documents inks, but if there is any CMYK color (e.g. just cyan) in the document then it always reports cyan, magenta, yellow and black - even if there's nothing on those separations.
So, does anyone have a better idea? I'd ideally like to do it by parsing the InDesign file in Obj-C, without opening the document. But if I have to open it in InDesign and read it in AppleScript then so be it.
I've attached a sample InDesign and PDF file. I'd want to get the result:
Cyan
Magenta
Test Swatch
...for this file.
I'll be very grateful for any ideas anyone may have! I'm stuck!
s.
For the record, my previous solution involved outputting postscript then poking around in it's contents. It worked but actually generating the postscript took forever with big documents.
I run up against this particular dead end every few years but never quite solve it. I wonder if anyone has any clever ideas?
I have an InDesign file and I want to know what plates will be printed. That's to say, if exported the file as a PDF (for print) and looked in Output Preview, I'd want to know which separations actually have anything on them. That last bit is the problem.
I've tried reading the Colorants field in the XMP using exiftool, but it doesn't seem to contain CMYK inks other than, confusingly, black.
I've tried using AppleScript to get the documents inks, but if there is any CMYK color (e.g. just cyan) in the document then it always reports cyan, magenta, yellow and black - even if there's nothing on those separations.
So, does anyone have a better idea? I'd ideally like to do it by parsing the InDesign file in Obj-C, without opening the document. But if I have to open it in InDesign and read it in AppleScript then so be it.
I've attached a sample InDesign and PDF file. I'd want to get the result:
Cyan
Magenta
Test Swatch
...for this file.
I'll be very grateful for any ideas anyone may have! I'm stuck!
s.
For the record, my previous solution involved outputting postscript then poking around in it's contents. It worked but actually generating the postscript took forever with big documents.