.. /* * This file is part of the SavaPage project . * Copyright (c) 2026 Datraverse B.V. * Author: Rijk Ravestein. * * SPDX-FileCopyrightText: (c) 2020 Datraverse B.V. * SPDX-License-Identifier: CC-BY-SA-4.0 * * For more information, please contact Datraverse B.V. at this * address: info@datraverse.com */ .. _app-ppd-ext-rules: PPD Rules --------- .. contents:: |RST_TABLE_OF_CONTENTS| :depth: 1 :local: Sometimes, simple one-to-one PPD to IPP mappings do not suffice to get the right options to the PPD driver. In that case PPD rules can be of help. PPD rules take independent IPP (or PDF document) options as input, and return dependent PPD (or CUPS) options. .. _app-ppd-ext-rules-generic: Generic PPD Rules ~~~~~~~~~~~~~~~~~ .. contents:: :depth: 1 :local: Generic PPD Rules add, assign or substitute PPD option values. .. _app-ppd-ext-rules-generic-extra: SPExtra ^^^^^^^ The ``SPExtra`` rule adds one or more PPD options to a print request, depending on one or more IPP options. The rule is formatted like this: .. callout:: .. code-block:: text *SPExtra//: \ # <1> /[!] ... \ # <2> *