The papersize describes the dimensions of a paper.
More...
The papersize describes the dimensions of a paper.
◆ stp_papersize_type_t
Enumerator |
---|
PAPERSIZE_TYPE_STANDARD | Standard paper size.
|
PAPERSIZE_TYPE_ENVELOPE | Envelope.
|
◆ stp_papersize_unit_t
Units of measurement.
Enumerator |
---|
PAPERSIZE_ENGLISH_STANDARD | English/Imperial units.
|
PAPERSIZE_METRIC_STANDARD | Metric units.
|
PAPERSIZE_ENGLISH_EXTENDED | English/Imperial units (optional paper, not displayed by default).
|
PAPERSIZE_METRIC_EXTENDED | Metric units (optional paper, not displayed by default).
|
◆ stp_default_media_size()
Get the default paper dimensions for the current configuration.
The default is derived from the PageSize parameter if set, otherwise the default page size for the printer is used. If no value can be determined, 1x1 will be returned.
- Parameters
-
v | the Gutenprint vars object |
width | pointer to storage that the width will be returned in. |
height | pointer to storage that the height will be returned in. |
◆ stp_describe_papersize()
Get a papersize by name.
- Parameters
-
v | the Gutenprint vars object |
name | the short unique name of the paper. |
- Returns
- a static pointer to the papersize, or NULL on failure.