← 返回命令列表

Linux command

ppdmerge 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Merge PPD files

ppdmerge -o [output.ppd] [file1.ppd] [file2.ppd]

Merge multiple language versions

ppdmerge -o [combined.ppd] [en.ppd] [de.ppd] [fr.ppd]

说明

ppdmerge merges multiple PPD (PostScript Printer Description) files into a single multi-language PPD file. This is primarily used to combine localized versions of a printer driver so that a single PPD file supports multiple languages, with CUPS selecting the appropriate translation based on the user's locale. The input files should be variants of the same printer definition differing only in their translated strings. The merged output contains all language variants, reducing the number of PPD files that need to be distributed and installed. ppdmerge does not check whether the merged PPD files are for the same device; merging different device PPDs will yield unpredictable results.

参数

-o _FILE_
Output file name. If not specified, the merged PPD file is written to standard output.

FAQ

What is the ppdmerge command used for?

ppdmerge merges multiple PPD (PostScript Printer Description) files into a single multi-language PPD file. This is primarily used to combine localized versions of a printer driver so that a single PPD file supports multiple languages, with CUPS selecting the appropriate translation based on the user's locale. The input files should be variants of the same printer definition differing only in their translated strings. The merged output contains all language variants, reducing the number of PPD files that need to be distributed and installed. ppdmerge does not check whether the merged PPD files are for the same device; merging different device PPDs will yield unpredictable results.

How do I run a basic ppdmerge example?

Run `ppdmerge -o [output.ppd] [file1.ppd] [file2.ppd]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _FILE_ do in ppdmerge?

Output file name. If not specified, the merged PPD file is written to standard output.