CUPS Banner Page Prints as Text, not a Banner

Solution Verified - Updated -

Issue

  • I tried using the following article to create a customized CUPS banner page: How can I create my own custom banner page when using CUPS in RHEL 6?. Unfortunately, when I select my custom CUPS banner page, the job never prints and OS reports the job was aborted. The banner file I created is:

    #CUPS-BANNER
    
    Show job-id
    

    What prints is the actual text #CUPS-BANNER and Show job-id and not the actual Job ID.

  • When a banner page is selected and set as part of the print jobs, the actual named variables in the banner configuration file (/usr/share/cups/banners/standard) are printed as the banner output. That is, the literal configuration file itself is printed, and not as a separate page to the print job, but as a header.

  • All our printers are confgured as raw printers. When we try to print a CUPS test page, the following is printed on the printer:

    #PDF-BANNER
    Template default-testpage.pdf
    Show printer-name printer-info printer-location printer-make-and-model printer-driver-name printer-driver-version paper-size imageable-area job-id options time-at-creation time-at-processing
    

Environment

  • Red Hat Enterprise Linux (RHEL) 6, 7, 8
  • Common Unix Printing System (CUPS) 1.4.2, 1.6.3, 2.2.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content