Book Image

CUPS Administrative Guide

By : Ankur Shah
Book Image

CUPS Administrative Guide

By: Ankur Shah

Overview of this book

Table of Contents (16 chapters)
CUPS Administrative Guide
Credits
About the Author
Acknowledgement
About the Reviewer
Preface

Overview of Filter in CUPS


In mime.convs, many combinations can be used besides those mentioned earlier. You can also plug in your own filter. However, it needs to be compiled as per the CUPS requirements, and correct lines should be specified in the mime.types and mime.convs files.

While creating our own filter, let's assume that we have the filenames stdin as input and stdout as output. These files will use the following arguments:

  • Printer: It defines the name of the printer queue that is normally the name of the filter being run.

  • Job: The job ID in numeric value stands for the job being printed.

  • User: It uses the string from the originating-user-name attribute.

  • Title:It takes the string from the job-name attribute.

  • Copies:It uses the numeric value from the number-copies attribute.

  • Options: It uses the job options.

  • Filename: This argument is optional. If we do not specify the print request file, it takes and filters data through stdin. In most cases, it is easy to write a simple wrapper script...