How to configure a print queue to send a print job to a file?

Solution Verified - Updated -


  • How to add a print queue to print job to a normal text file?
  • We need assistance creating a print queue that does not go to a printer but instead goes to a file on disk in PCL format.
  • How do I set up CUPS to print to a file, then send that output to a printer? This can be useful to create PCL formatted files from existing text files, and sending that raw PCL to a PCL compatible printer.
  • How can I change an existing print queue to send data to a file instead of to the physical printer?


  • Red Hat Enterprise Linux (RHEL), all versions
  • Common Unix Printing System (CUPS), all versions

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