foomatic-hash - Man Page

tool for scanning provided drivers for problematic PPD options and hash them using SHA-256

Synopsis

foomatic-hash --ppd <ppdfile> <scanoutput> <hashes_file>

foomatic-hash --ppd-paths <path1,path2..pathN> <scanoutput> <hashes_file>

Description

The tool scans the provided drivers for values of PPD keywords FoomaticRIPCommandLine, FoomaticRIPCommandLinePDF, and FoomaticRIPOptionSetting, puts the found values into a file for review, and prints out values hashes in hexadecimal format. The hashes are required for allowing the filter foomatic-rip to process those values.

Options

The tool foomatic-hash supports two options:

--ppd <ppdfile>

The tool scans the specific PPD file.

--ppd-paths <path1,path2..pathN>

The tool scans directories path1, path2 until pathN for values of desired PPD keyword. Paths are absolute, symlinks are ignored. Each path is divided by comma. LibPPD support is required for the functionality.

Examples

Scans PPD file test.ppd, prints found values into found_values, hash them and save them into hashed_values.

    foomatic-hash --ppd test.ppd found_values hashed_values

Scans path /etc/cups/ppd for drivers, finds values if any, puts them into found_values, and hashes them into hashed_values.

    sudo foomatic-hash --ppd-paths /etc/cups/ppd found_value hashed_values

Exit Status

Returns zero if scan happens successfully, non-zero return value for any error during the process.

See Also

foomatic-rip(1)

Referenced By

foomatic-rip(1).

2025-06-18