Comment 54 for bug 282186

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Printing a PostScript program with "-o document-format=application/vnd.cups-postscript" is only an interim solution for the time being as long as the rasterizing process (printer driver, PostScript printer) can still be done with PostScript input. Ass son as the PDF workflow gets common and drivers come up which take only PDF as input thios approach will stop working.

The real solution is a utility which generates a test page dependent on paper size, margins, color/bw, resolution, ... and perhaps even allows to choose between PostScript and PDF output. This could be used by all printer setup tools.

The tool could even be a CUPS filter which has "application/testpage" as input format and "application/pdf" as output format. The input file (which is recogized by a *.types rule) could simply contain nothing more than a magic string:

### TESTPAGE ###

The test page is generated then based on PPD defaults and command line options. The content of the input file is ignored, the file serves only to trigger test page printing.

Printer setup tools then simply do something like "echo '### TESTPAGE ###' | lpr -P <printer>" to print a test page.