[ https://issues.apache.org/jira/browse/PDFBOX-3600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704493#comment-15704493 ]
Yan Bing commented on PDFBOX-3600: ---------------------------------- Hi, Andreas This is Yan from Fuji Xerox, Japan. Thank you very much for your reply. I've sent this help request through the Mailing Lists ('users-subscr...@pdfbox.apache.org'). But I think they've received huge requests, so I worry about the reply to me may take too long time. My request: Get PDF’s color property to decide which printer the file should be sent to. If it contains colorful texts or images, it is sent to Color printer. If it is black, it will be sent to Monochrome Only printer. My algorithm is very simple, as follows. 1. Scan text, get color space of text. If contains DeviceRGB or DeviceCMYK, mark it color and exit. 2. If the PDF is a image PDF(raster PDF) scan the images, get color space of images. If contains DeviceRGB or DeviceCMYK, mark it color and exit. By now, I can get the color space of text, using the sample code. But I have not found a way to get the color space of image inside a PDF. I found there is also a class called "DeviceColorSpaceHelper" in Preflight component, but there is any sample code for Preflight, so I don't know usage of it. Can you help me to implement my function with PDFBox? Any help or suggestion would be highly appreciated. Regards Yan > How to use Preflight component to get PDF's colorspace > ------------------------------------------------------ > > Key: PDFBOX-3600 > URL: https://issues.apache.org/jira/browse/PDFBOX-3600 > Project: PDFBox > Issue Type: Wish > Components: Preflight > Reporter: Yan Bing > Assignee: Andreas Lehmkühler > Priority: Critical > > I want to get a PDF's color property before sending it to Color-printer or > Monochrome-Only printer in my program. > But I don't know how to implement this by Preflight component. > No samples can be found anywhere. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org