Skip to content

Commit 26dd9d7

Browse files
Merge pull request #34 from zdohnal/add_new_mediasizes
Add new PWG media sizes
2 parents b2cfcab + c0c9885 commit 26dd9d7

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ libcups v3.0b1 (Month DD, YYYY)
2020
`ippexeprinter`, and other tools (Issue #14)
2121
- Added a roll to the default color ippeveprinter printer.
2222
- Added new DNS-SD API (Issue #19)
23+
- Added new PWG media sizes.
2324
- Added, modernized, and promoted the localization interfaces to public API
2425
(Issue #24)
2526
- Added public JSON API (Issue #31)

cups/pwg-media.c

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ static pwg_media_t const cups_pwg_media[] =
8686
_PWG_MEDIA_MM("iso_b9_44x62mm", "iso-b9", "ISOB9", 44, 62),
8787
_PWG_MEDIA_MM("iso_b8_62x88mm", "iso-b8", "ISOB8", 62, 88),
8888
_PWG_MEDIA_MM("iso_b7_88x125mm", "iso-b7", "ISOB7", 88, 125),
89+
/* iso_id-3 is iso_b7_88x125mm. */
8990
_PWG_MEDIA_MM("iso_b6_125x176mm", "iso-b6", "ISOB6", 125, 176),
9091
_PWG_MEDIA_MM("iso_b6c4_125x324mm", NULL, "125x324mm", 125, 324),
9192
_PWG_MEDIA_MM("iso_b5_176x250mm", "iso-b5", "ISOB5", 176, 250),
@@ -202,12 +203,18 @@ static pwg_media_t const cups_pwg_media[] =
202203
_PWG_MEDIA_IN("na_arch-c_18x24in", "arch-c", "ARCHC", 18, 24),
203204
_PWG_MEDIA_IN("na_d_22x34in", "d", "AnsiD", 22, 34),
204205
_PWG_MEDIA_IN("na_arch-d_24x36in", "arch-d", "ARCHD", 24, 36),
206+
_PWG_MEDIA_IN("na_arch-e2_26x38in", NULL, "26x38", 26, 38),
207+
_PWG_MEDIA_IN("na_arch-e3_27x39in", NULL, "27x39", 27, 39),
205208
_PWG_MEDIA_IN("na_wide-format_30x42in", NULL, "30x42", 30, 42),
206209
_PWG_MEDIA_IN("na_e_34x44in", "e", "AnsiE", 34, 44),
207210
_PWG_MEDIA_IN("na_arch-e_36x48in", "arch-e", "ARCHE", 36, 48),
208211
_PWG_MEDIA_IN("na_f_44x68in", NULL, "AnsiF", 44, 68),
209212

210213
// Other English Standard Sheet Media Sizes
214+
_PWG_MEDIA_IN("oe_12x16_12x16in", NULL, "12x16", 12, 16),
215+
_PWG_MEDIA_IN("oe_14x17_14x17in", NULL, "14x17", 14, 17),
216+
_PWG_MEDIA_IN("oe_18x22_18x22in", NULL, "18x22", 18, 22),
217+
_PWG_MEDIA_IN("oe_a2plus_17x24in", NULL, "17x24", 17, 24),
211218
_PWG_MEDIA_IN("oe_business-card_2x3.5in", NULL, "2x3.5", 2, 3.5),
212219
_PWG_MEDIA_IN("oe_photo-10r_10x12in", NULL, "10x12", 10, 12),
213220
_PWG_MEDIA_IN("oe_photo-12r_12x15in", NULL, "12x15", 12, 15),
@@ -221,18 +228,25 @@ static pwg_media_t const cups_pwg_media[] =
221228
_PWG_MEDIA_IN("oe_photo-30r_30x40in", NULL, "30x40", 30, 40),
222229
_PWG_MEDIA_IN("oe_photo-l_3.5x5in", NULL, "3.5x5", 3.5, 5),
223230
_PWG_MEDIA_IN("oe_photo-s8r_8x12in", NULL, "8x12", 8, 12),
224-
_PWG_MEDIA_IN("oe_photo-s10r_10x15in", NULL, "10x15", 10, 15),
231+
/* oe_photo-s10r is na_10x15_10x15in. */
225232
_PWG_MEDIA_IN("oe_square-photo_4x4in", NULL, "4x4", 4, 4),
226233
_PWG_MEDIA_IN("oe_square-photo_5x5in", NULL, "5x5", 5, 5),
227234

228235
// Other Metric Standard Sheet Media Sizes
236+
_PWG_MEDIA_MM("om_16k_184x260mm", NULL, "184x260mm", 184, 260),
237+
_PWG_MEDIA_MM("om_16k_195x270mm", NULL, "195x270mm", 195, 270),
238+
_PWG_MEDIA_MM("om_business-card_55x85mm", NULL, "55x85mm", 55, 85),
239+
_PWG_MEDIA_MM("om_business-card_55x91mm", NULL, "55x91mm", 55, 91),
240+
_PWG_MEDIA_MM("om_card_54x86mm", NULL, "54x86mm", 54, 86),
229241
_PWG_MEDIA_MM("om_dai-pa-kai_275x395mm", NULL, "275x395mm", 275, 395),
242+
_PWG_MEDIA_MM("om_dsc-photo_89x119mm", NULL, "89x119mm", 89, 119),
230243
_PWG_MEDIA_MM("om_folio_210x330mm", "folio", "Folio", 210, 330),
231244
_PWG_MEDIA_MM("om_folio-sp_215x315mm", NULL, "FolioSP", 215, 315),
232245
_PWG_MEDIA_MM("om_invite_220x220mm", NULL, "EnvInvite", 220, 220),
233246
_PWG_MEDIA_MM("om_italian_110x230mm", NULL, "EnvItalian", 110, 230),
234247
_PWG_MEDIA_MM("om_juuro-ku-kai_198x275mm", NULL, "198x275mm", 198, 275),
235-
_PWG_MEDIA_MM("om_large-photo_200x300", NULL, "200x300mm", 200, 300),
248+
_PWG_MEDIA_MM("om_large-photo_200x300mm", NULL, "200x300mm", 200, 300),
249+
_PWG_MEDIA_MM("om_medium-photo_130x180mm", NULL, "130x180mm", 130, 180),
236250
_PWG_MEDIA_MM("om_pa-kai_267x389mm", NULL, "267x389mm", 267, 389),
237251
_PWG_MEDIA_MM("om_photo-30x40_300x400mm", NULL, "300x400mm", 300, 400),
238252
_PWG_MEDIA_MM("om_photo-30x45_300x450mm", NULL, "300x450mm", 300, 450),
@@ -241,6 +255,7 @@ static pwg_media_t const cups_pwg_media[] =
241255
_PWG_MEDIA_MM("om_photo-50x75_500x750mm", NULL, "500x750mm", 500, 750),
242256
_PWG_MEDIA_MM("om_photo-50x76_500x760mm", NULL, "500x760mm", 500, 760),
243257
_PWG_MEDIA_MM("om_photo-60x90_600x900mm", NULL, "600x900mm", 600, 900),
258+
/* om_postfix is iso_c6c5_114x229mm. */
244259
_PWG_MEDIA_MM("om_small-photo_100x150mm", NULL, "100x150mm", 100, 150),
245260
_PWG_MEDIA_MM("om_square-photo_89x89mm", NULL, "89x89mm", 89, 89),
246261
_PWG_MEDIA_MM("om_wide-photo_100x200mm", NULL, "100x200mm", 100, 200),
@@ -249,11 +264,14 @@ static pwg_media_t const cups_pwg_media[] =
249264
_PWG_MEDIA_MM("prc_1_102x165mm", NULL, "EnvPRC1", 102, 165),
250265
_PWG_MEDIA_MM("prc_16k_146x215mm", NULL, "PRC16K", 146, 215),
251266
_PWG_MEDIA_MM("prc_2_102x176mm", NULL, "EnvPRC2", 102, 176),
267+
/* prc_3 is iso_b6_125x176mm. */
252268
_PWG_MEDIA_MM("prc_32k_97x151mm", NULL, "PRC32K", 97, 151),
253269
_PWG_MEDIA_MM("prc_4_110x208mm", NULL, "EnvPRC4", 110, 208),
270+
/* prc_5 is iso_dl_110x220mm. */
254271
_PWG_MEDIA_MM("prc_8_120x309mm", NULL, "EnvPRC8", 120, 309),
255272
_PWG_MEDIA_MM("prc_6_120x320mm", NULL, NULL, 120, 320),
256273
_PWG_MEDIA_MM("prc_7_160x230mm", NULL, "EnvPRC7", 160, 230),
274+
/* prc_10 is iso_c3_324x458mm. */
257275

258276
// Chinese Standard Sheet Media Inch Sizes
259277
_PWG_MEDIA_IN("roc_16k_7.75x10.75in", NULL, "roc16k", 7.75, 10.75),

0 commit comments

Comments
 (0)