CAPS Universe documentation
1.0.4
All you need to know to be successful
|
QL8 label printer family specific driver adaptions. More...
Data Structures | |
struct | ql8_printer_name_to_id |
Variables | |
static const struct ql8_printer_name_to_id | ql8_supported_printers [] |
static const struct caps_ppd_resolution | ql8_driver_supported_resolutions [] |
static struct caps_ppd_custom_medium | ql8_label_medium |
static struct caps_ppd_base | ql8_printer_desc |
const struct caps_generic_driver | caps_ql_driver |
struct caps_arg_parser_list | ql_parser_list |
|
static |
Read in the lower angle from the INI to detect a red dot
[in] | t1 | Full job description |
An angle above this value will be dropped
|
static |
Read in the higher angle from the INI to detect a red dot
[in] | t1 | Full job description |
An angle below this value will be dropped
|
static |
Read the lower saturation from the INI to detect a red dot
[in] | t1 | Full job description |
If the angle defines a red, a saturation below this value will be dropped.
|
static |
Read the lower value from the INI to detect a red dot
[in] | t1 | Full job description |
If the angle defines a red, a saturation below this value will be dropped.
|
static |
Read in the required values to detect red dots in an input RGB raster
[in] | t1 | Full job description |
|
static |
Retrieve an internal printer device ID from the INI file settings in section 'info' and key 'device'
[in] | t1 | Full driver description |
ID | Printer ID |
CAPS_BRLABEL_UNKNOWN | Unsupported printer detected, or section 'info' and key 'device' is missing. |
If the section 'info' and/or key 'device' is missing, it sounds like a reasonable issue with the setup
|
static |
Setup the local selections in the printer description
[in] | t1 | Full driver description |
Separate function to change settings on demand at run-time (cassette change for example)
|
static |
Adapt some settings related to the used medium format (size and orientation)
[in,out] | t1 | Full job description |
[in] | status | The status report from the QL5 printer |
Positive | Printer description has changed |
0 | Everything seems fine |
|
static |
Adapt the margins to the used medium format
[in,out] | t1 | Full job description |
Your printable area on this label is 61 mm wide and has a length of 100 mm. The size of this label after the printer has spit it out is 62 mm wide and has a length of 106 mm.
Pre-cut labels are a bit more complicated. The printers have some annoying behaviours, which we must consider to get an expected result.
First we must create a label of the exact size of the pre-cut labels of our DK roll. Since the printer adds some margins by itself, we now need to define exact margins. We need to know, the printer will always add 3 mm at the top and the bottom of each label. So it depends on the orientation of our label, where we need to honor these margins.
If we use a pre-cut label DK roll oriented in portrait, the 3 mm margins are at the short edges.
For DK rolls oriented in landscape, the 3mm margins are at their long edges.
|
static |
Called, whenever an update of the label cassette is detected
[in] | t1 | Full driver description |
Positive | Printer description has changed |
0 | Everything seems fine |
-EINVAL | Unkown/unsupported printer, driver cannot deal with it |
|
static |
Called from the libcapsdriver framework when the printer driver starts up
|
static |
Called from the libcapsdriver framework if the job is finished
|
static |
Called from the libcapsdriver framework if the page raster is ready to print
|
static |
Called from the libcapsdriver framework if the next page should be rasterized
|
static |
Called from the libcapsdriver framework if a new print job starts
|
static |
|
static |
Called from libcapsdriver if there is a correct point of time to check the printer's status
The printer signals an "out of paper" if the cover is opened. In this case we should mark the driver as outdated, e.g. invalidate ql8_drv::probe_done. When the cover is closed again, we can re-configure the driver to the real used cassette.
|
static |
[in] | drvi | The libcapsdriver handle |
[in] | d | The private parameter from the caps_drv_run() call |
Used to allocate some driver specific memory.
|
static |
The list of printers this driver supports for Brother QL8 label printers
|
static |
The QL8xx familiy of printers supports two resolutions in vertical direction
|
static |
The custom medium description for the autodetected labels
Since the printer reports the values of its loaded cassette, we can adapt this structure at run-time.
|
static |
const struct caps_generic_driver caps_ql_driver |
struct caps_arg_parser_list ql_parser_list |