CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Basic description of common features a printing device/printing driver can provide. More...
Data Fields | |
const char * | domain_name |
enum caps_ppd_common_features | common_features |
enum caps_ppd_paper_types | paper_type |
enum caps_ppd_paper_leading_edges | default_leading_edges |
enum caps_ppd_color_formats | supported_color_formats |
enum caps_ppd_color_formats | default_color_format |
size_t | resolution_count |
size_t | default_resolution |
const struct caps_ppd_resolution * | resolutions |
size_t | options_count |
const struct caps_ppd_option * | options |
size_t | selection_count |
const struct caps_ppd_selection ** | selections |
const struct caps_ppd_media_size * | media_coverage |
const struct caps_ppd_media_margins * | media_margins |
size_t | custom_media_count |
const struct caps_ppd_custom_medium * | custom_media |
const char * | default_paper_name |
Used by the dynamic PPD file generator and to register at the printing coordinator
If the caller provides translated strings, it can set domain_name to its own domain name. In this case libcapsppd
tries to translate the description entry into the local language.
libcapsppd
brings its own national language translation for some generic strings. So, the caller don't need to translate all strings, only its own very specific ones. const char* domain_name |
Used to translate PPD description strings in the specified domain, can be NULL
enum caps_ppd_common_features common_features |
Or-ed list of basic common printer device features
LIBCAPS_GA_DUPLEX: indicates the printer can print in duplex in hardware.
LIBCAPS_GA_SINGLE_TRAY: many printing devices have one paper tray only. And thus, can provide exactly one printing medium only. If a printing device uses this bit, there will be no printing media selection in the (dynamically generated) PPD. The libcapsppd
library instead adds a single printing media entry in this case. default_paper_name is used as the loaded paper in this single tray.
LIBCAPS_GA_MANUAL_FEED: this definiton is set, if the printing device has a manual printing media feed. In this case the min/max. printing media description in media_coverage this manual feed can handle is used to add all media which fits into this size.
LIBCAPS_GA_CUSTOM_MEDIA: if this definition is set, the PPD generator will not add any kind of standard media format names and sizes to the PPD. It is up to the printing provider doing so. This flag is intended for label printers which use most of the time very specific media formats including dedicated product names for them. custom_media_count and custom_media must be defined in this case.
LIBCAPS_GA_CUTTER: if this definition is set, the PPD generator will add a generic selection to enable the user to make use of a cutter the printer device provides. If the printer device provides more capabilities than enabling/disabling the cutter, the driver must add selections to cover these additional features.
enum caps_ppd_paper_types paper_type |
Currently available printing medium type
enum caps_ppd_paper_leading_edges default_leading_edges |
Define this value only to make the PPD generator happy and provide some value to clients via the PPD. The real value is medium specific (think about printers with more than one paper tray).
If undefined, it defaults to LIBCAPS_PLE_SHORT
enum caps_ppd_color_formats supported_color_formats |
Or-ed list of supported colour formats
enum caps_ppd_color_formats default_color_format |
Default colour format from the list in supported_color_formats
size_t resolution_count |
The count of entries in resolutions
Refer resolutions for details
size_t default_resolution |
The default entry in resolutions
Refer resolutions for details
const struct caps_ppd_resolution* resolutions |
Supported printing resolutions
List of resolutions, the printer can deal with. Must have at least one entry.
const struct caps_ppd_option* options |
Optional.
Additional printing device/printing driver specific PPD entries, which are not PPD selections.
size_t selection_count |
The count of entries in selections
Refer selections for details
const struct caps_ppd_selection** selections |
Optional.
Additional PPD selections this printing driver provides to the user
const struct caps_ppd_media_size* media_coverage |
This entry defines the minimal and maximal physical limits of media sizes the printing device can deal with, due to its mechanics and/or print head.
If LIBCAPS_GA_SINGLE_TRAY
const struct caps_ppd_media_margins* media_margins |
This entry defines the margins the printer device cannot print to. Most of the time these margins depends on the selected medium, but only one generic setting can be defined here and is used for all.
It is used to define the imageable area the printer device can print to on each generic medium format.
size_t custom_media_count |
Optional.
This member is used in conjunction with custom_media and the flag LIBCAPS_GA_CUSTOM_MEDIA. Read about details in the custom_media description
const struct caps_ppd_custom_medium* custom_media |
Optional.
If LIBCAPS_GA_CUSTOM_MEDIA
Example:
const char* default_paper_name |
libpaper
in this case (refer the command paperconf -d for details).