HPInc / jipp

A Java-compatible implementation of IPP
MIT License
153 stars 42 forks source link

Support PWG-Raster printers without job-pages-per-set support #109

Closed GladeDiviney closed 3 years ago

GladeDiviney commented 3 years ago

When delivering raster data to printers that support PWG raster but do not support IPP job-pages-per-set, it's necessary to add a blank page at the end of each odd-numbered two-sided document.

For example, when printing a 3-page two-sided face-up job, the printer must deliver pages in this order b 3 2 1 so that the result is face up with page one at the top:

+---+---+  +---+---+
|   |   |  |   |   |  
| b | 3 |  | 2 | 1 |
|   |   |  |   |   |
+---+---+  +---+---+

A printer that understands job-pages-per-set knows a blank page must be added to pad the 3 page document, so jipp-pdl omits it. But for a printer that does NOT support job-pages-per-set, jipp-pdl must provide a blank raster.

There is no API to supply this so jipp-pdl should provide one.

GladeDiviney commented 3 years ago

It's published, let me know if you run into any difficulties!