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 technique?
I think you could give a try to PDFBox
In this example they extract an.icc (color profile) so may be what you are looking for.
How do you extract color profiles from a PDF file using pdfbox (or other open source Java lib)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.