PDF is straightforward to convert to PostScript and back; since PostScript would contain plain text metadata that might make it easier to do this. The psutils package has a psselect command that will break a PostScript file into individual pages. Then you could somehow detect color on each page and send it to the right place.

On Fri, 14 May 2010, Alan Bromborsky wrote:

How does one from a program determine which pages of a pdf file contain colored objects (python would be preferred). I am trying to print the black and white pages to a laserjet and the colored pages to a inkjet since the inkjet is much slower than the laserjet for two sided printing.


Reply via email to