This might be asking alot. I've been looking everywhere for some sort of tool (command line, Python, whatever) one could use to check whether CMYK objects that are not 100% black are set to overprint in a PDF. I'd just like to flag them.
I don't have $500 to burn on Callas - it's hard to believe that for as long as PDF, UNIX and Prepress has been around, there's so few open source tools to use for preflighting. (Unless you know of one!)
My question is one of plan of attack. I'd like some expert advice on what direction I can take.
My research has yielded:
XMP Metadata: I ran exiftool -v on a file with color set to overprint, and it returned a "HasVisibleOverprint" tag that was set to true. I have not been able to duplicate this, even on the same file! That tag seems to have disappeared, and I have no idea why I saw it in the first place (what I did different). Exiftool also lists 'ExtGState' - which has 'OP, OPM and op' values. But, will these values change if, for example, black text is set to overprint (as is default in InDesign)? Would it be worth my time to learn enough C++ to use XMP SDK?
GhostScript: I believe this can also do what I need - however there's a decent learning curve here. I don't mind taking the time to wrap my mind around this solution, but I'd like to know if GhostScript can even accomplish my task. I got close looking at the 'tiff32nc' device, and found this question interesting CMYK Overprinting and Knockout in Ghostscript.
PDFBox: This may be able to do what I need, but again, big learning curve as I don't know alot of Java. I've got some Python under my belt though. - and again, can this even do what I'm trying to do?
muPDF: This one was interesting, when I ran mutool trace overprint.pdf, this printed out what appears to be style information for the objects on the page. There are tags like <fill_text colorspace="Separation" color="1" matrix="1 0 0 -1 0 401.995">
What does that color
describe?
Am I in the weeds? Does anybody know if what I'm trying to do is possible? I'd like to be nudged in a direction - though if anyone can offer some insight, it's always welcome!