Check whether the black channel is present on all sides

Post Reply
JaDe0051
Newbie
Posts: 7
Joined: Wed Mar 06, 2024 1:54 pm

Check whether the black channel is present on all sides

Post by JaDe0051 »

Hello everyone,
Maybe someone can help me. I need a preflight that I want to use in Enfocus Switch via PitStop Server. It should check whether all pages in the PDF contain the black channel. If the black channel is missing on a page in the PDF, a warning message should be generated. I want to check documents with and without spot colors, and the warning should only be generated if the black channel is missing on one of the pages in the PDF. Does anyone have any idea how I can solve this?
freddyp
Advanced member
Posts: 1159
Joined: Thu Feb 09, 2012 3:53 pm

Re: Check whether the black channel is present on all sides

Post by freddyp »

Run a Preflight Profile with the "Inks" checkbox in the General tab checked. Alternatively, run an Action List with the Action "Gather ink info". Choose "XML" as the report format and send the result along a "Data with Log" connection. The now has a dataset that contains the report and logs the ink usage for the complete document and also per page. This is the most reliable method because it will detect missing black also when there are CMYK objects that have an empty black and CMYK images with an empty black channel, etc.

Next you can build a condition that compares the number of pages that contain black as per the report with the number of pages of the document. If they are not equal it means there are pages that do not contain black.

The left-hand side of the condition is:
[Metadata.Integer:Dataset="Log",Model="XML",Path="count(/EnfocusReport/InkInfo/PageInkInfo/Ink[@name='Black'])"]
the right-hand side is:
[Stats.NumberOfPages]
If you choose the operator "equals" then jobs will black on all pages will follow that connection.

The condition on the other connection is of course "All other jobs".
JaDe0051
Newbie
Posts: 7
Joined: Wed Mar 06, 2024 1:54 pm

Re: Check whether the black channel is present on all sides

Post by JaDe0051 »

Hi, freddyp, thank you so much, this works perfectly! You saved my day. :D
JaDe0051
Newbie
Posts: 7
Joined: Wed Mar 06, 2024 1:54 pm

Re: Check whether the black channel is present on all sides

Post by JaDe0051 »

I think this will not work with PitStop. In PitStop if found no way.
Last edited by JaDe0051 on Fri Nov 07, 2025 10:52 am, edited 1 time in total.
freddyp
Advanced member
Posts: 1159
Joined: Thu Feb 09, 2012 3:53 pm

Re: Check whether the black channel is present on all sides

Post by freddyp »

JaDe0051 wrote: Fri Nov 07, 2025 8:14 am Hi badmoth, ich think this will not work with PitStop. In PitStop there is no way to check if the black channel is missing. We also have the callas PDF-Toolbox, there is an easy way to check if the black channel is missing.
I removed the post from this badmoth user because it was a bot. Take care when you see posts from a first-time user that also contain links as was the case here.

Checking if the black channel is missing with PitStop:
Select color (black)
Log selection - Log a message when no objects are selected

This is just one method, there are others. Take care not to make bold statements if you do not know the product (well enough).
JaDe0051
Newbie
Posts: 7
Joined: Wed Mar 06, 2024 1:54 pm

Re: Check whether the black channel is present on all sides

Post by JaDe0051 »

Hi freddyp, ok, sorry. I have updates my Post. :)
Post Reply