From: Michael R Sweet
Date: Thu, 5 Oct 2023 15:55:02 +0000 (-0400)
Subject: Update documentation.
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af268786e973d953bacd2670e96f0cbb51ec8e4c;p=thirdparty%2Fcups.git
Update documentation.
---
diff --git a/cups/cupspm.md b/cups/cupspm.md
index c55d2f124f..d963d42a21 100644
--- a/cups/cupspm.md
+++ b/cups/cupspm.md
@@ -2,7 +2,7 @@
title: CUPS Programming Manual
author: Michael R Sweet
copyright: Copyright © 2021-2023 by OpenPrinting. All Rights Reserved.
-version: 2.4.0
+version: 2.5.0
...
> Please [file issues on GitHub](https://github.com/openprinting/cups/issues) to
@@ -158,31 +158,31 @@ The `type` and `mask` arguments are bitfields that allow the caller to filter
the destinations based on categories and/or capabilities. The destination's
"printer-type" value is masked by the `mask` value and compared to the `type`
value when filtering. For example, to only enumerate destinations that are
-hosted on the local system, pass `CUPS_PRINTER_LOCAL` for the `type` argument
-and `CUPS_PRINTER_DISCOVERED` for the `mask` argument. The following constants
+hosted on the local system, pass `CUPS_PTYPE_LOCAL` for the `type` argument
+and `CUPS_PTYPE_DISCOVERED` for the `mask` argument. The following constants
can be used for filtering:
-- `CUPS_PRINTER_CLASS`: A collection of destinations.
-- `CUPS_PRINTER_FAX`: A facsimile device.
-- `CUPS_PRINTER_LOCAL`: A local printer or class. This constant has the value 0
+- `CUPS_PTYPE_CLASS`: A collection of destinations.
+- `CUPS_PTYPE_FAX`: A facsimile device.
+- `CUPS_PTYPE_LOCAL`: A local printer or class. This constant has the value 0
(no bits set) and is only used for the `type` argument and is paired with the
- `CUPS_PRINTER_REMOTE` or `CUPS_PRINTER_DISCOVERED` constant passed in the
+ `CUPS_PTYPE_REMOTE` or `CUPS_PTYPE_DISCOVERED` constant passed in the
`mask` argument.
-- `CUPS_PRINTER_REMOTE`: A remote (shared) printer or class.
-- `CUPS_PRINTER_DISCOVERED`: An available network printer or class.
-- `CUPS_PRINTER_BW`: Can do B&W printing.
-- `CUPS_PRINTER_COLOR`: Can do color printing.
-- `CUPS_PRINTER_DUPLEX`: Can do two-sided printing.
-- `CUPS_PRINTER_STAPLE`: Can staple output.
-- `CUPS_PRINTER_COLLATE`: Can quickly collate copies.
-- `CUPS_PRINTER_PUNCH`: Can punch output.
-- `CUPS_PRINTER_COVER`: Can cover output.
-- `CUPS_PRINTER_BIND`: Can bind output.
-- `CUPS_PRINTER_SORT`: Can sort output (mailboxes, etc.)
-- `CUPS_PRINTER_SMALL`: Can print on Letter/Legal/A4-size media.
-- `CUPS_PRINTER_MEDIUM`: Can print on Tabloid/B/C/A3/A2-size media.
-- `CUPS_PRINTER_LARGE`: Can print on D/E/A1/A0-size media.
-- `CUPS_PRINTER_VARIABLE`: Can print on rolls and custom-size media.
+- `CUPS_PTYPE_REMOTE`: A remote (shared) printer or class.
+- `CUPS_PTYPE_DISCOVERED`: An available network printer or class.
+- `CUPS_PTYPE_BW`: Can do B&W printing.
+- `CUPS_PTYPE_COLOR`: Can do color printing.
+- `CUPS_PTYPE_DUPLEX`: Can do two-sided printing.
+- `CUPS_PTYPE_STAPLE`: Can staple output.
+- `CUPS_PTYPE_COLLATE`: Can quickly collate copies.
+- `CUPS_PTYPE_PUNCH`: Can punch output.
+- `CUPS_PTYPE_COVER`: Can cover output.
+- `CUPS_PTYPE_BIND`: Can bind output.
+- `CUPS_PTYPE_SORT`: Can sort output (mailboxes, etc.)
+- `CUPS_PTYPE_SMALL`: Can print on Letter/Legal/A4-size media.
+- `CUPS_PTYPE_MEDIUM`: Can print on Tabloid/B/C/A3/A2-size media.
+- `CUPS_PTYPE_LARGE`: Can print on D/E/A1/A0-size media.
+- `CUPS_PTYPE_VARIABLE`: Can print on rolls and custom-size media.
The `cb` argument specifies a function to call for every destination that is
found:
diff --git a/doc/help/api-admin.html b/doc/help/api-admin.html
index d5e9ff5ab4..aedbdc34de 100644
--- a/doc/help/api-admin.html
+++ b/doc/help/api-admin.html
@@ -499,8 +499,7 @@ being provided by the cupsEnumDests
an
-Device callback
-
+Device callback
typedef void (*cups_device_cb_t)(const char *device_class, const char *device_id, const char *device_info, const char *device_make_and_model, const char *device_uri, const char *device_location, void *user_data);
diff --git a/doc/help/api-ppd.html b/doc/help/api-ppd.html
index 8873a6cd55..b9fca20d58 100644
--- a/doc/help/api-ppd.html
+++ b/doc/help/api-ppd.html
@@ -340,43 +340,20 @@ span.string {
ppd_attr_t
ppd_choice_t
ppd_conform_t
-ppd_const_t
-ppd_coption_t
-ppd_cparam_t
-ppd_cplimit_t
-ppd_cptype_t
-ppd_cpvalue_t
ppd_cs_t
-ppd_emul_t
-ppd_file_t
-ppd_group_t
ppd_option_t
-ppd_profile_t
ppd_section_t
-ppd_size_t
ppd_status_t
ppd_ui_t
Structures
-Unions
Enumerations
- ppd_conform_e
-- ppd_cptype_e
- ppd_cs_e
- ppd_section_e
- ppd_status_e
@@ -610,7 +587,7 @@ for (attr = ppdFindAttr(ppd, "Product", NULL);
Get a list of conflicting options in a marked PPD.
-int cupsGetConflicts(ppd_file_t *ppd, const char *option, const char *choice, cups_option_t **options);
+int cupsGetConflicts(ppd_file_t *ppd, const char *option, const char *choice, cups_option_t **options);
Parameters
ppd |
@@ -677,7 +654,7 @@ file that is created and must unlink
the returned filename.
Get the PPD file for a printer on the specified
-server if it has changed.
+ server if it has changed.
http_status_t cupsGetPPD3(http_t *http, const char *name, time_t *modtime, char *buffer, size_t bufsize);
Parameters
@@ -740,7 +717,7 @@ or cupsGetServerPPD
.
Mark command-line options in a PPD file.
-int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options);
+int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options);
Parameters
ppd |
@@ -760,7 +737,7 @@ corresponding PPD options and choices.
Interpret PPD commands to create a page header.
-int cupsRasterInterpretPPD(cups_page_header2_t *h, ppd_file_t *ppd, int num_options, cups_option_t *options, cups_interpret_cb_t func);
+int cupsRasterInterpretPPD(cups_page_header2_t *h, ppd_file_t *ppd, int num_options, cups_option_t *options, cups_interpret_cb_t func);
Parameters
h |
@@ -805,7 +782,7 @@ are supported.
Resolve conflicts in a marked PPD.
-int cupsResolveConflicts(ppd_file_t *ppd, const char *option, const char *choice, int *num_options, cups_option_t **options);
+int cupsResolveConflicts(ppd_file_t *ppd, const char *option, const char *choice, int *num_options, cups_option_t **options);
Parameters
ppd |
@@ -856,9 +833,9 @@ until a non-conflicting option choice is found.
Collect all marked options that reside in the specified
-section.
+ section.
-int ppdCollect(ppd_file_t *ppd, ppd_section_t section, ppd_choice_t ***choices);
+int ppdCollect(ppd_file_t *ppd, ppd_section_t section, ppd_choice_t ***choices);
Parameters
ppd |
@@ -875,9 +852,9 @@ int ppdCollect(ppd_file_t *ppd, CUPS 1.2/macOS 10.5 ppdCollect2
Collect all marked options that reside in the
-specified section and minimum order.
+ specified section and minimum order.
-int ppdCollect2(ppd_file_t *ppd, ppd_section_t section, float min_order, ppd_choice_t ***choices);
+int ppdCollect2(ppd_file_t *ppd, ppd_section_t section, float min_order, ppd_choice_t ***choices);
Parameters
ppd |
@@ -898,9 +875,9 @@ finished with it.
Check to see if there are any conflicts among the
-marked option choices.
+ marked option choices.
-int ppdConflicts(ppd_file_t *ppd);
+int ppdConflicts(ppd_file_t *ppd);
Parameters
ppd |
@@ -913,7 +890,7 @@ int ppdConflicts(ppd_file_t *ppd);
Emit code for marked options to a file.
-int ppdEmit(ppd_file_t *ppd, FILE *fp, ppd_section_t section);
+int ppdEmit(ppd_file_t *ppd, FILE *fp, ppd_section_t section);
Parameters
ppd |
@@ -928,7 +905,7 @@ int ppdEmit(ppd_file_t *ppd, FILE *fp, CUPS 1.2/macOS 10.5 ppdEmitAfterOrder
Emit a subset of the code for marked options to a file.
-int ppdEmitAfterOrder(ppd_file_t *ppd, FILE *fp, ppd_section_t section, int limit, float min_order);
+int ppdEmitAfterOrder(ppd_file_t *ppd, FILE *fp, ppd_section_t section, int limit, float min_order);
Parameters
ppd |
@@ -954,7 +931,7 @@ When "limit" is zero, this function is identical to ppdEmit().
Emit code for marked options to a file.
-int ppdEmitFd(ppd_file_t *ppd, int fd, ppd_section_t section);
+int ppdEmitFd(ppd_file_t *ppd, int fd, ppd_section_t section);
Parameters
ppd |
@@ -969,7 +946,7 @@ int ppdEmitFd(ppd_file_t *ppd, int fd, ppdEmitJCL
Emit code for JCL options to a file.
-int ppdEmitJCL(ppd_file_t *ppd, FILE *fp, int job_id, const char *user, const char *title);
+int ppdEmitJCL(ppd_file_t *ppd, FILE *fp, int job_id, const char *user, const char *title);
Parameters
ppd |
@@ -988,7 +965,7 @@ int ppdEmitJCL(ppd_file_t *ppd, FILE *fp, int job_id,
Emit JCLEnd code to a file.
-int ppdEmitJCLEnd(ppd_file_t *ppd, FILE *fp);
+int ppdEmitJCLEnd(ppd_file_t *ppd, FILE *fp);
Parameters
ppd |
@@ -1001,7 +978,7 @@ int ppdEmitJCLEnd(ppd_file_t *ppd, FILE *fp);
Get a string containing the code for marked options.
-char *ppdEmitString(ppd_file_t *ppd, ppd_section_t section, float min_order);
+char *ppdEmitString(ppd_file_t *ppd, ppd_section_t section, float min_order);
Parameters
ppd |
@@ -1026,7 +1003,7 @@ The return string is allocated on the heap and should be freed using
CUPS 1.1.19/macOS 10.3 ppdFindAttr
Find the first matching attribute.
-ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name, const char *spec);
+ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name, const char *spec);
Parameters
ppd |
@@ -1054,7 +1031,7 @@ The return string is allocated on the heap and should be freed using
Find a custom option.
-ppd_coption_t *ppdFindCustomOption(ppd_file_t *ppd, const char *keyword);
+ppd_coption_t *ppdFindCustomOption(ppd_file_t *ppd, const char *keyword);
Parameters
ppd |
@@ -1067,7 +1044,7 @@ The return string is allocated on the heap and should be freed using
Find a parameter for a custom option.
-ppd_cparam_t *ppdFindCustomParam(ppd_coption_t *opt, const char *name);
+ppd_cparam_t *ppdFindCustomParam(ppd_coption_t *opt, const char *name);
Parameters
opt |
@@ -1080,7 +1057,7 @@ The return string is allocated on the heap and should be freed using
Return the marked choice for the specified option.
-ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd, const char *option);
+ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd, const char *option);
Parameters
ppd |
@@ -1093,7 +1070,7 @@ The return string is allocated on the heap and should be freed using
Find the next matching attribute.
-ppd_attr_t *ppdFindNextAttr(ppd_file_t *ppd, const char *name, const char *spec);
+ppd_attr_t *ppdFindNextAttr(ppd_file_t *ppd, const char *name, const char *spec);
Parameters
ppd |
@@ -1108,7 +1085,7 @@ The return string is allocated on the heap and should be freed using
Return a pointer to the specified option.
-ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *option);
+ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *option);
Parameters
ppd |
@@ -1121,7 +1098,7 @@ The return string is allocated on the heap and should be freed using
Return the first parameter for a custom option.
-ppd_cparam_t *ppdFirstCustomParam(ppd_coption_t *opt);
+ppd_cparam_t *ppdFirstCustomParam(ppd_coption_t *opt);
Parameters
opt |
@@ -1132,7 +1109,7 @@ The return string is allocated on the heap and should be freed using
Return the first option in the PPD file.
-ppd_option_t *ppdFirstOption(ppd_file_t *ppd);
+ppd_option_t *ppdFirstOption(ppd_file_t *ppd);
Parameters
ppd |
@@ -1146,9 +1123,9 @@ The return string is allocated on the heap and should be freed using
Test whether an option choice conflicts with
-an installable option.
+ an installable option.
-int ppdInstallableConflict(ppd_file_t *ppd, const char *option, const char *choice);
+int ppdInstallableConflict(ppd_file_t *ppd, const char *option, const char *choice);
Parameters
ppd |
@@ -1168,7 +1145,7 @@ on constraints against options in the "InstallableOptions" group.
Check to see if an option is marked.
-int ppdIsMarked(ppd_file_t *ppd, const char *option, const char *choice);
+int ppdIsMarked(ppd_file_t *ppd, const char *option, const char *choice);
Parameters
ppd |
@@ -1183,7 +1160,7 @@ int ppdIsMarked(ppd_file_t *ppd, const char *option, c
Localize the PPD file to the current locale.
-int ppdLocalize(ppd_file_t *ppd);
+int ppdLocalize(ppd_file_t *ppd);
Parameters
ppd |
@@ -1200,7 +1177,7 @@ localized string uses the UTF-8 character encoding.
Localize an attribute.
-ppd_attr_t *ppdLocalizeAttr(ppd_file_t *ppd, const char *keyword, const char *spec);
+ppd_attr_t *ppdLocalizeAttr(ppd_file_t *ppd, const char *keyword, const char *spec);
Parameters
ppd |
@@ -1218,9 +1195,9 @@ the given main and option keywords. If no localized version of the
attribute exists for the current locale, the unlocalized version is returned.
Get the localized version of a cupsIPPReason
-attribute.
+ attribute.
-const char *ppdLocalizeIPPReason(ppd_file_t *ppd, const char *reason, const char *scheme, char *buffer, size_t bufsize);
+const char *ppdLocalizeIPPReason(ppd_file_t *ppd, const char *reason, const char *scheme, char *buffer, size_t bufsize);
Parameters
ppd |
@@ -1247,9 +1224,9 @@ If no value of the requested scheme can be found, NULL is returned.
Get the localized version of a marker-names
-attribute value.
+ attribute value.
-const char *ppdLocalizeMarkerName(ppd_file_t *ppd, const char *name);
+const char *ppdLocalizeMarkerName(ppd_file_t *ppd, const char *name);
Parameters
ppd |
@@ -1268,7 +1245,7 @@ name can be found, NULL
is returned.
Mark all default options in the PPD file.
-void ppdMarkDefaults(ppd_file_t *ppd);
+void ppdMarkDefaults(ppd_file_t *ppd);
Parameters
ppd |
@@ -1276,9 +1253,9 @@ void ppdMarkDefaults(ppd_file_t *ppd);
---|
Mark an option in a PPD file and return the number of
-conflicts.
+ conflicts.
-int ppdMarkOption(ppd_file_t *ppd, const char *option, const char *choice);
+int ppdMarkOption(ppd_file_t *ppd, const char *option, const char *choice);
Parameters
ppd |
@@ -1293,7 +1270,7 @@ int ppdMarkOption(ppd_file_t *ppd, const char *option,
Return the next parameter for a custom option.
-ppd_cparam_t *ppdNextCustomParam(ppd_coption_t *opt);
+ppd_cparam_t *ppdNextCustomParam(ppd_coption_t *opt);
Parameters
opt |
@@ -1304,7 +1281,7 @@ int ppdMarkOption(ppd_file_t *ppd, const char *option,
Return the next option in the PPD file.
-ppd_option_t *ppdNextOption(ppd_file_t *ppd);
+ppd_option_t *ppdNextOption(ppd_file_t *ppd);
Parameters
ppd |
@@ -1319,7 +1296,7 @@ int ppdMarkOption(ppd_file_t *ppd, const char *option,
Get the page length for the given size.
-float ppdPageLength(ppd_file_t *ppd, const char *name);
+float ppdPageLength(ppd_file_t *ppd, const char *name);
Parameters
ppd |
@@ -1332,7 +1309,7 @@ float ppdPageLength(ppd_file_t *ppd, const char *name)
Get the page size record for the named size.
-ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name);
+ppd_size_t *ppdPageSize(ppd_file_t *ppd, const char *name);
Parameters
ppd |
@@ -1345,7 +1322,7 @@ float ppdPageLength(ppd_file_t *ppd, const char *name)
Return the custom page size limits.
-int ppdPageSizeLimits(ppd_file_t *ppd, ppd_size_t *minimum, ppd_size_t *maximum);
+int ppdPageSizeLimits(ppd_file_t *ppd, ppd_size_t *minimum, ppd_size_t *maximum);
Parameters
ppd |
@@ -1368,7 +1345,7 @@ If the specified PPD file does not support custom page sizes, both
Get the page width for the given size.
-float ppdPageWidth(ppd_file_t *ppd, const char *name);
+float ppdPageWidth(ppd_file_t *ppd, const char *name);
Parameters
ppd |
@@ -1399,76 +1376,21 @@ typedef struct ppd_choice_s ppd_choice_t;
typedef enum ppd_conform_e ppd_conform_t;
-
-Constraints
-
-typedef struct ppd_const_s ppd_const_t;
-
-
-Custom Option
-
-typedef struct ppd_coption_s ppd_coption_t;
-
-
-Custom Parameter
-
-typedef struct ppd_cparam_s ppd_cparam_t;
-
-
-Custom Parameter Limit
-
-typedef union ppd_cplimit_u ppd_cplimit_t;
-
-
-Custom Parameter Type
-
-typedef enum ppd_cptype_e ppd_cptype_t;
-
-
-Custom Parameter Value
-
-typedef union ppd_cpvalue_u ppd_cpvalue_t;
-
Colorspaces
typedef enum ppd_cs_e ppd_cs_t;
-
-Emulators
-
-typedef struct ppd_emul_s ppd_emul_t;
-
-
-PPD File
-
-typedef struct ppd_file_s ppd_file_t;
-
-
-Groups
-
-typedef struct ppd_group_s ppd_group_t;
-
Options
typedef struct ppd_option_s ppd_option_t;
-
-sRGB Color Profiles
-
-typedef struct ppd_profile_s ppd_profile_t;
-
Order dependency sections
typedef enum ppd_section_e ppd_section_t;
-
-Page Sizes
-
-typedef struct ppd_size_s ppd_size_t;
-
Status Codes
@@ -1521,236 +1443,12 @@ typedef enum ppd_ui_e ppd_ui_t;
---|
text[PPD_MAX_TEXT] |
Human-readable option name |
-
-Constraints
-struct ppd_const_s {
- char choice1[PPD_MAX_NAME];
- char choice2[PPD_MAX_NAME];
- char option1[PPD_MAX_NAME];
- char option2[PPD_MAX_NAME];
-};
-Members
-
-choice1[PPD_MAX_NAME] |
-First option/choice (blank for all) |
-choice2[PPD_MAX_NAME] |
-Second option/choice (blank for all) |
-option1[PPD_MAX_NAME] |
-First keyword |
-option2[PPD_MAX_NAME] |
-Second keyword |
-
-
-Custom Option
-struct ppd_coption_s {
- char keyword[PPD_MAX_NAME];
- int marked;
- ppd_option_t *option;
- cups_array_t *params;
-};
-Members
-
-keyword[PPD_MAX_NAME] |
-Name of option that is being extended... |
-marked |
-Extended option is marked |
-option |
-Option that is being extended... |
-params |
-Parameters |
-
-
-Custom Parameter
-struct ppd_cparam_s {
- ppd_cpvalue_t current;
- ppd_cplimit_t minimum, maximum;
- char name[PPD_MAX_NAME];
- int order;
- char text[PPD_MAX_TEXT];
- ppd_cptype_t type;
-};
-Members
-
-current |
-Current value |
-maximum |
-Maximum value |
-name[PPD_MAX_NAME] |
-Parameter name |
-order |
-Order (0 to N) |
-text[PPD_MAX_TEXT] |
-Human-readable text |
-type |
-Parameter type |
-
-
-Emulators
-struct ppd_emul_s {
- char name[PPD_MAX_NAME];
- char *start;
- char *stop;
-};
-Members
-
-name[PPD_MAX_NAME] |
-Emulator name |
-start |
-Code to switch to this emulation |
-stop |
-Code to stop this emulation |
-
-
-PPD File
-struct ppd_file_s {
- int accurate_screens;
- int color_device;
- ppd_cs_t colorspace;
- ppd_const_t *consts;
- int contone_only;
- float custom_margins[4];
- float custom_max[2];
- float custom_min[2];
- char **filters;
- int flip_duplex;
- char **fonts;
- ppd_group_t *groups;
- char *jcl_begin;
- char *jcl_end;
- char *jcl_ps;
- int landscape;
- char *lang_encoding;
- char *lang_version;
- int language_level;
- int manual_copies;
- char *manufacturer;
- int model_number;
- char *modelname;
- char *nickname;
- int num_consts;
- int num_filters;
- int num_fonts;
- int num_groups;
- int num_profiles;
- int num_sizes;
- char *patches;
- char *pcfilename;
- char *product;
- ppd_profile_t *profiles;
- char *protocols;
- char *shortnickname;
- ppd_size_t *sizes;
- int throughput;
- char *ttrasterizer;
- int variable_sizes;
-};
-Members
-
-accurate_screens |
-1 = supports accurate screens, 0 = not |
-color_device |
-1 = color device, 0 = grayscale |
-colorspace |
-Default colorspace |
-consts |
-UI/Non-UI constraints |
-contone_only |
-1 = continuous tone only, 0 = not |
-custom_margins[4] |
-Margins around page |
-custom_max[2] |
-Maximum variable page size |
-custom_min[2] |
-Minimum variable page size |
-filters |
-Filter strings... |
-flip_duplex DEPRECATED |
-1 = Flip page for back sides |
-fonts |
-Pre-loaded fonts |
-groups |
-UI groups |
-jcl_begin |
-Start JCL commands |
-jcl_end |
-End JCL commands |
-jcl_ps |
-Enter PostScript interpreter |
-landscape |
--90 or 90 |
-lang_encoding |
-Language encoding |
-lang_version |
-Language version (English, Spanish, etc.) |
-language_level |
-Language level of device |
-manual_copies |
-1 = Copies done manually, 0 = hardware |
-manufacturer |
-Manufacturer name |
-model_number |
-Device-specific model number |
-modelname |
-Model name (general) |
-nickname |
-Nickname (specific) |
-num_consts |
-Number of UI/Non-UI constraints |
-num_filters |
-Number of filters |
-num_fonts |
-Number of pre-loaded fonts |
-num_groups |
-Number of UI groups |
-num_profiles DEPRECATED |
-Number of sRGB color profiles |
-num_sizes |
-Number of page sizes |
-patches |
-Patch commands to be sent to printer |
-pcfilename CUPS 1.1.19/macOS 10.3 |
-PCFileName string |
-product |
-Product name (from PS RIP/interpreter) |
-profiles DEPRECATED |
-sRGB color profiles |
-protocols CUPS 1.1.19/macOS 10.3 |
-Protocols (BCP, TBCP) string |
-shortnickname |
-Short version of nickname |
-sizes |
-Page sizes |
-throughput |
-Pages per minute |
-ttrasterizer |
-Truetype rasterizer |
-variable_sizes |
-1 = supports variable sizes, 0 = doesn't |
-
Groups
struct ppd_group_s {
- char text[PPD_MAX_TEXT - PPD_MAX_NAME];
- char name[PPD_MAX_NAME];
- int num_options;
- int num_subgroups;
- ppd_option_t *options;
- struct ppd_group_s *subgroups;
};
Members
-PPD_MAX_NAME] |
-Human-readable group name |
-name[PPD_MAX_NAME] CUPS 1.1.18/macOS 10.3 |
-Group name |
-num_options |
-Number of options |
-num_subgroups |
-Number of sub-groups |
-options |
-Options |
-subgroups |
-Sub-groups (max depth = 1) |
Options
@@ -1786,122 +1484,6 @@ typedef enum ppd_ui_e ppd_ui_t;
---|
ui |
Type of UI option |
-
-sRGB Color Profiles
-struct ppd_profile_s {
- float density;
- float gamma;
- float matrix[3][3];
- char media_type[PPD_MAX_NAME];
- char resolution[PPD_MAX_NAME];
-};
-Members
-
-density |
-Ink density to use |
-gamma |
-Gamma correction to use |
-matrix[3][3] |
-Transform matrix |
-media_type[PPD_MAX_NAME] |
-Media type or "-" |
-resolution[PPD_MAX_NAME] |
-Resolution or "-" |
-
-
-Page Sizes
-struct ppd_size_s {
- float bottom;
- float left;
- float length;
- int marked;
- char name[PPD_MAX_NAME];
- float right;
- float top;
- float width;
-};
-Members
-
-bottom |
-Bottom printable margin in points |
-left |
-Left printable margin in points |
-length |
-Length of media in points |
-marked |
-Page size selected? |
-name[PPD_MAX_NAME] |
-Media size option |
-right |
-Right printable margin in points |
-top |
-Top printable margin in points |
-width |
-Width of media in points |
-
-
-
-Custom Parameter Limit
-union ppd_cplimit_u {
- float custom_curve;
- int custom_int;
- float custom_invcurve;
- int custom_passcode;
- int custom_password;
- float custom_points;
- float custom_real;
- int custom_string;
-};
-Members
-
-custom_curve |
-Gamma value |
-custom_int |
-Integer value |
-custom_invcurve |
-Gamma value |
-custom_passcode |
-Passcode length |
-custom_password |
-Password length |
-custom_points |
-Measurement value |
-custom_real |
-Real value |
-custom_string |
-String length |
-
-
-Custom Parameter Value
-union ppd_cpvalue_u {
- float custom_curve;
- int custom_int;
- float custom_invcurve;
- char *custom_passcode;
- char *custom_password;
- float custom_points;
- float custom_real;
- char *custom_string;
-};
-Members
-
-custom_curve |
-Gamma value |
-custom_int |
-Integer value |
-custom_invcurve |
-Gamma value |
-custom_passcode |
-Passcode value |
-custom_password |
-Password value |
-custom_points |
-Measurement value |
-custom_real |
-Real value |
-custom_string |
-String value |
-
Conformance Levels
@@ -1910,20 +1492,6 @@ typedef enum ppd_ui_e ppd_ui_t;
---|
PPD_CONFORM_RELAXED | Relax whitespace and control char |
PPD_CONFORM_STRICT | Require strict conformance |
-
-Custom Parameter Type
-Constants
-
-PPD_CUSTOM_CURVE | Curve value for f(x) = x^value |
-PPD_CUSTOM_INT | Integer number value |
-PPD_CUSTOM_INVCURVE | Curve value for f(x) = x^(1/value) |
-PPD_CUSTOM_PASSCODE | String of (hidden) numbers |
-PPD_CUSTOM_PASSWORD | String of (hidden) characters |
-PPD_CUSTOM_POINTS | Measurement value in points |
-PPD_CUSTOM_REAL | Real number value |
-PPD_CUSTOM_STRING | String of characters |
-PPD_CUSTOM_UNKNOWN | Unknown type (error) |
-
Colorspaces
Constants
diff --git a/doc/help/cupspm.epub b/doc/help/cupspm.epub
index 7554575775..752b4e75bc 100644
Binary files a/doc/help/cupspm.epub and b/doc/help/cupspm.epub differ
diff --git a/doc/help/cupspm.html b/doc/help/cupspm.html
index 57bcbf2dd3..ba85a94a81 100644
--- a/doc/help/cupspm.html
+++ b/doc/help/cupspm.html
@@ -9,7 +9,7 @@
-
+
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|
---|