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

An Overview of the mime.convs file


The mime.convs file contains the filters that are used to convert files from one format to another for any given MIME type. Here CUPS basically tries to construct a valid filter chain from the beginning to the end, under the directive of the PPD. Also, every filter has a virtual cost attached to it. The syntax for each rule in the file is:

super/type(Source) super/type(Destination) cost filter
  • super/type (source): The super/type field for source is a MIME type that may use a wildcard for the super-type or sub-type (for example).

  • super/type (destination): The destination field is a MIME type defined in the mime.types file.

  • Cost: The cost field defines a relative cost for the filtering operation. The value for cost ranges from 1 to 100. It is used to choose between two different sets of filters when converting a file.

  • Filter: The filter field defines the filter-program, which runs to convert the source MIME to destination MIME type. The special program "-"...