detect if a pdf is black and white or not in java

I have to print hundreds of single page pdf files and I wonder if I can detect if a pdf is black and white or color, I want to send black and white pdfs to a print queue and color ones to another. I'm processing these pdfs in java, can someone suggest me some packages or technique?



Read more here: https://stackoverflow.com/questions/66319831/detect-if-a-pdf-is-black-and-white-or-not-in-java

Content Attribution

This content was originally published by AndreaTaroni86 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: