]> git.ipfire.org Git - thirdparty/cups.git/blob - doc/help/api-raster.html
Documentation updates.
[thirdparty/cups.git] / doc / help / api-raster.html
1 <!doctype html>
2 <html>
3 <!-- SECTION: Programming -->
4 <head>
5 <title>Raster API</title>
6 <meta name="keywords" content="Programming">
7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
8 <meta name="creator" content="Mini-XML v2.11">
9 <meta name="author" content="Unknown">
10 <meta name="copyright" content="Unknown">
11 <meta name="version" content="0.0">
12 <style type="text/css"><!--
13 BODY {
14 font-family: lucida grande, geneva, helvetica, arial, sans-serif;
15 }
16
17 H1, H2, H3, H4, H5, H6, P, TD, TH {
18 font-family: lucida grande, geneva, helvetica, arial, sans-serif;
19 }
20
21 KBD {
22 font-family: monaco, courier, monospace;
23 font-weight: bold;
24 }
25
26 PRE {
27 font-family: monaco, courier, monospace;
28 }
29
30 PRE.command {
31 border: dotted thin #7f7f7f;
32 margin-left: 36pt;
33 padding: 10px;
34 }
35
36 P.compact {
37 margin: 0;
38 }
39
40 P.example {
41 font-style: italic;
42 margin-left: 36pt;
43 }
44
45 DL.man DD {
46 margin-left: 5em;
47 }
48
49 DL.man DT {
50 margin-left: 0;
51 }
52
53 PRE.man {
54 margin: 0;
55 }
56
57 PRE.example {
58 background: #eeeeee;
59 border: dotted thin #999999;
60 margin-left: 36pt;
61 padding: 10pt;
62 }
63
64 PRE.command EM, PRE.example EM {
65 font-family: lucida grande, geneva, helvetica, arial, sans-serif;
66 }
67
68 P.command {
69 font-family: monaco, courier, monospace;
70 margin-left: 36pt;
71 }
72
73 P.formula {
74 font-style: italic;
75 margin-left: 36pt;
76 }
77
78 BLOCKQUOTE {
79 background: #eeeeee;
80 border: solid thin #999999;
81 padding: 10pt;
82 }
83
84 A IMG {
85 border: none;
86 }
87
88 A:link:hover IMG {
89 background: #f0f0f0;
90 border-radius: 10px;
91 -moz-border-radius: 10px;
92 }
93
94 A:link, A:visited {
95 font-weight: inherit;
96 text-decoration: none;
97 }
98
99 A:link:hover, A:visited:hover, A:active {
100 text-decoration: underline;
101 }
102
103 SUB, SUP {
104 font-size: 50%;
105 }
106
107 TR.data, TD.data, TR.data TD {
108 margin-top: 10pt;
109 padding: 5pt;
110 border-bottom: solid 1pt #999999;
111 }
112
113 TR.data TH {
114 border-bottom: solid 1pt #999999;
115 padding-top: 10pt;
116 padding-left: 5pt;
117 text-align: left;
118 }
119
120 DIV.table TABLE {
121 border: solid thin #999999;
122 border-collapse: collapse;
123 border-spacing: 0;
124 margin-left: auto;
125 margin-right: auto;
126 }
127
128 DIV.table CAPTION {
129 caption-side: top;
130 font-size: 120%;
131 font-style: italic;
132 font-weight: bold;
133 margin-left: auto;
134 margin-right: auto;
135 }
136
137 DIV.table TABLE TD {
138 border: solid thin #cccccc;
139 padding-top: 5pt;
140 }
141
142 DIV.table TABLE TH {
143 background: #cccccc;
144 border: none;
145 border-bottom: solid thin #999999;
146 }
147
148 DIV.figure TABLE {
149 margin-left: auto;
150 margin-right: auto;
151 }
152
153 DIV.figure CAPTION {
154 caption-side: bottom;
155 font-size: 120%;
156 font-style: italic;
157 font-weight: bold;
158 margin-left: auto;
159 margin-right: auto;
160 }
161
162 TH.label {
163 text-align: right;
164 vertical-align: top;
165 }
166
167 TH.sublabel {
168 text-align: right;
169 font-weight: normal;
170 }
171
172 HR {
173 border: solid thin;
174 }
175
176 SPAN.info {
177 background: black;
178 border: thin solid black;
179 color: white;
180 font-size: 80%;
181 font-style: italic;
182 font-weight: bold;
183 white-space: nowrap;
184 }
185
186 H2 SPAN.info, H3 SPAN.info, H4 SPAN.info {
187 float: right;
188 font-size: 100%;
189 }
190
191 H1.title {
192 }
193
194 H2.title, H3.title {
195 border-bottom: solid 2pt #000000;
196 }
197
198 DIV.indent, TABLE.indent {
199 margin-top: 2em;
200 margin-left: auto;
201 margin-right: auto;
202 width: 90%;
203 }
204
205 TABLE.indent {
206 border-collapse: collapse;
207 }
208
209 TABLE.indent TD, TABLE.indent TH {
210 padding: 0;
211 }
212
213 TABLE.list {
214 border-collapse: collapse;
215 margin-left: auto;
216 margin-right: auto;
217 width: 90%;
218 }
219
220 TABLE.list TH {
221 background: white;
222 border-bottom: solid thin #cccccc;
223 color: #444444;
224 padding-top: 10pt;
225 padding-left: 5pt;
226 text-align: left;
227 vertical-align: bottom;
228 white-space: nowrap;
229 }
230
231 TABLE.list TH A {
232 color: #4444cc;
233 }
234
235 TABLE.list TD {
236 border-bottom: solid thin #eeeeee;
237 padding-top: 5pt;
238 padding-left: 5pt;
239 }
240
241 TABLE.list TR:nth-child(even) {
242 background: #f8f8f8;
243 }
244
245 TABLE.list TR:nth-child(odd) {
246 background: #f4f4f4;
247 }
248
249 DT {
250 margin-left: 36pt;
251 margin-top: 12pt;
252 }
253
254 DD {
255 margin-left: 54pt;
256 }
257
258 DL.category DT {
259 font-weight: bold;
260 }
261
262 P.summary {
263 margin-left: 36pt;
264 font-family: monaco, courier, monospace;
265 }
266
267 DIV.summary TABLE {
268 border: solid thin #999999;
269 border-collapse: collapse;
270 border-spacing: 0;
271 margin: 10px;
272 }
273
274 DIV.summary TABLE TD, DIV.summary TABLE TH {
275 border: solid thin #999999;
276 padding: 5px;
277 text-align: left;
278 vertical-align: top;
279 }
280
281 DIV.summary TABLE THEAD TH {
282 background: #eeeeee;
283 }
284
285 /* API documentation styles... */
286 div.body h1 {
287 margin: 0;
288 }
289 div.body h2 {
290 margin-top: 1.5em;
291 }
292 div.body h3, div.body h4, div.body h5 {
293 margin-bottom: 0.5em;
294 margin-top: 1.5em;
295 }
296 .class, .enumeration, .function, .struct, .typedef, .union {
297 border-bottom: solid thin #999999;
298 margin-bottom: 0;
299 margin-top: 2em;
300 }
301 .description {
302 margin-top: 0.5em;
303 }
304 code, p.code, pre, ul.code li {
305 font-family: monaco, courier, monospace;
306 font-size: 90%;
307 }
308 ul.code, ul.contents, ul.subcontents {
309 list-style-type: none;
310 margin: 0;
311 padding-left: 0;
312 }
313 ul.code li {
314 margin: 0;
315 }
316 ul.contents > li {
317 margin-top: 1em;
318 }
319 ul.contents li ul.code, ul.contents li ul.subcontents {
320 padding-left: 2em;
321 }
322 div.body dl {
323 margin-left: 0;
324 margin-top: 0;
325 }
326 div.body dt {
327 font-style: italic;
328 margin-left: 0;
329 margin-top: 0;
330 }
331 div.body dd {
332 margin-bottom: 0.5em;
333 }
334
335 /* This is just for the HTML files generated with the framedhelp target */
336 div.contents {
337 background: #e8e8e8;
338 border: solid thin black;
339 padding: 10px;
340 }
341 div.contents h1 {
342 font-size: 110%;
343 }
344 div.contents h2 {
345 font-size: 100%;
346 }
347 div.contents ul.contents {
348 font-size: 80%;
349 }
350 div.contents ul.subcontents li {
351 margin-left: 1em;
352 text-indent: -1em;
353 }
354 --></style>
355 </head>
356 <body>
357 <!--
358 Raster API documentation for CUPS.
359
360 Copyright 2008-2010 by Apple Inc.
361
362 These coded instructions, statements, and computer programs are the
363 property of Apple Inc. and are protected by Federal copyright
364 law. Distribution and use rights are outlined in the file "LICENSE.txt"
365 which should have been included with this file. If this file is
366 file is missing or damaged, see the license at "http://www.cups.org/".
367 -->
368
369 <h1 class='title'>Raster API</h1>
370
371 <div class='summary'><table summary='General Information'>
372 <thead>
373 <tr>
374 <th>Header</th>
375 <th>cups/raster.h</th>
376 </tr>
377 </thead>
378 <tbody>
379 <tr>
380 <th>Library</th>
381 <td>-lcupsimage</td>
382 </tr>
383 <tr>
384 <th>See Also</th>
385 <td>Programming: <a href='api-overview.html'>Introduction to CUPS Programming</a><br>
386 Programming: <a href='api-cups.html'>CUPS API</a><br>
387 Programming: <a href='api-cups.html'>PPD API</a><br>
388 References: <a href='spec-ppd.html'>CUPS PPD Specification</a></td>
389 </tr>
390 </tbody>
391 </table></div>
392 <div class="contents">
393 <h2 class="title">Contents</h2>
394 <ul class="contents">
395 <li><a href="#OVERVIEW">Overview</a></li>
396 <li><a href="#TASKS">Functions by Task</a><ul class="subcontents">
397 <li><a href="#OPENCLOSE">Opening and Closing Raster Streams</a></li>
398 <li><a href="#READING">Reading Raster Streams</a></li>
399 <li><a href="#WRITING">Writing Raster Streams</a></li>
400 </ul></li>
401 <li><a href="#FUNCTIONS">Functions</a><ul class="subcontents">
402 <li><a href="#cupsRasterClose">cupsRasterClose</a></li>
403 <li><a href="#cupsRasterInitPWGHeader">cupsRasterInitPWGHeader</a></li>
404 <li><a href="#cupsRasterInterpretPPD">cupsRasterInterpretPPD</a></li>
405 <li><a href="#cupsRasterOpen">cupsRasterOpen</a></li>
406 <li><a href="#cupsRasterOpenIO">cupsRasterOpenIO</a></li>
407 <li><a href="#cupsRasterReadHeader">cupsRasterReadHeader</a></li>
408 <li><a href="#cupsRasterReadHeader2">cupsRasterReadHeader2</a></li>
409 <li><a href="#cupsRasterReadPixels">cupsRasterReadPixels</a></li>
410 <li><a href="#cupsRasterWriteHeader">cupsRasterWriteHeader</a></li>
411 <li><a href="#cupsRasterWriteHeader2">cupsRasterWriteHeader2</a></li>
412 <li><a href="#cupsRasterWritePixels">cupsRasterWritePixels</a></li>
413 </ul></li>
414 <li><a href="#TYPES">Data Types</a><ul class="subcontents">
415 <li><a href="#cups_adv_t">cups_adv_t</a></li>
416 <li><a href="#cups_bool_t">cups_bool_t</a></li>
417 <li><a href="#cups_cspace_t">cups_cspace_t</a></li>
418 <li><a href="#cups_cut_t">cups_cut_t</a></li>
419 <li><a href="#cups_edge_t">cups_edge_t</a></li>
420 <li><a href="#cups_interpret_cb_t">cups_interpret_cb_t</a></li>
421 <li><a href="#cups_jog_t">cups_jog_t</a></li>
422 <li><a href="#cups_mode_t">cups_mode_t</a></li>
423 <li><a href="#cups_order_t">cups_order_t</a></li>
424 <li><a href="#cups_orient_t">cups_orient_t</a></li>
425 <li><a href="#cups_page_header2_t">cups_page_header2_t</a></li>
426 <li><a href="#cups_page_header_t">cups_page_header_t</a></li>
427 <li><a href="#cups_raster_iocb_t">cups_raster_iocb_t</a></li>
428 <li><a href="#cups_raster_t">cups_raster_t</a></li>
429 </ul></li>
430 <li><a href="#STRUCTURES">Structures</a><ul class="subcontents">
431 <li><a href="#cups_page_header2_s">cups_page_header2_s</a></li>
432 <li><a href="#cups_page_header_s">cups_page_header_s</a></li>
433 </ul></li>
434 <li><a href="#ENUMERATIONS">Enumerations</a><ul class="subcontents">
435 <li><a href="#cups_adv_e">cups_adv_e</a></li>
436 <li><a href="#cups_bool_e">cups_bool_e</a></li>
437 <li><a href="#cups_cspace_e">cups_cspace_e</a></li>
438 <li><a href="#cups_cut_e">cups_cut_e</a></li>
439 <li><a href="#cups_edge_e">cups_edge_e</a></li>
440 <li><a href="#cups_jog_e">cups_jog_e</a></li>
441 <li><a href="#cups_mode_e">cups_mode_e</a></li>
442 <li><a href="#cups_order_e">cups_order_e</a></li>
443 <li><a href="#cups_orient_e">cups_orient_e</a></li>
444 </ul></li>
445 </ul>
446 </div>
447 <div class="body">
448 <!--
449 Raster API introduction for CUPS.
450
451 Copyright 2007-2013 by Apple Inc.
452 Copyright 1997-2006 by Easy Software Products, all rights reserved.
453
454 These coded instructions, statements, and computer programs are the
455 property of Apple Inc. and are protected by Federal copyright
456 law. Distribution and use rights are outlined in the file "LICENSE.txt"
457 which should have been included with this file. If this file is
458 file is missing or damaged, see the license at "http://www.cups.org/".
459 -->
460
461 <h2 class='title'><a name="OVERVIEW">Overview</a></h2>
462
463 <p>The CUPS raster API provides a standard interface for reading and writing
464 CUPS raster streams which are used for printing to raster printers. Because the
465 raster format is updated from time to time, it is important to use this API to
466 avoid incompatibilities with newer versions of CUPS.</p>
467
468 <p>Two kinds of CUPS filters use the CUPS raster API - raster image processor
469 (RIP) filters such as <code>pstoraster</code> and <code>cgpdftoraster</code>
470 (macOS) that produce CUPS raster files and printer driver filters that
471 convert CUPS raster files into a format usable by the printer. Printer
472 driver filters are by far the most common.</p>
473
474 <p>CUPS raster files (<code>application/vnd.cups-raster</code>) consists of
475 a stream of raster page descriptions produced by one of the RIP filters such as
476 <var>pstoraster</var>, <var>imagetoraster</var>, or
477 <var>cgpdftoraster</var>. CUPS raster files are referred to using the
478 <a href='#cups_raster_t'><code>cups_raster_t</code></a> type and are
479 opened using the <a href='#cupsRasterOpen'><code>cupsRasterOpen</code></a>
480 function. For example, to read raster data from the standard input, open
481 file descriptor 0:</p>
482
483 <pre class="example">
484 #include &lt;cups/raster.h&gt;
485
486 <a href="#cups_raster_t">cups_raster_t</a> *ras = <a href="#cupsRasterOpen">cupsRasterOpen</a>(0, CUPS_RASTER_READ);
487 </pre>
488
489 <p>Each page of data begins with a page dictionary structure called
490 <a href="#cups_page_header2_t"><code>cups_page_header2_t</code></a>. This
491 structure contains the colorspace, bits per color, media size, media type,
492 hardware resolution, and so forth used for the page.</p>
493
494 <blockquote><b>Note:</b>
495
496 <p>Do not confuse the colorspace in the page header with the PPD
497 <tt>ColorModel</tt> keyword. <tt>ColorModel</tt> refers to the general type of
498 color used for a device (Gray, RGB, CMYK, DeviceN) and is often used to
499 select a particular colorspace for the page header along with the associate
500 color profile. The page header colorspace (<tt>cupsColorSpace</tt>) describes
501 both the type and organization of the color data, for example KCMY (black
502 first) instead of CMYK and RGBA (RGB + alpha) instead of RGB.</p>
503
504 </blockquote>
505
506 <p>You read the page header using the
507 <a href="#cupsRasterReadHeader2"><code>cupsRasterReadHeader2</code></a>
508 function:</p>
509
510 <pre class="example">
511 #include &lt;cups/raster.h&gt;
512
513 <a href="#cups_raster_t">cups_raster_t</a> *ras = <a href="#cupsRasterOpen">cupsRasterOpen</a>(0, CUPS_RASTER_READ);
514 <a href="#cups_page_header2_t">cups_page_header2_t</a> header;
515
516 while (<a href="#cupsRasterReadHeader2">cupsRasterReadHeader2</a>(ras, &amp;header))
517 {
518 /* setup this page */
519
520 /* read raster data */
521
522 /* finish this page */
523 }
524 </pre>
525
526 <p>After the page dictionary comes the page data which is a full-resolution,
527 possibly compressed bitmap representing the page in the printer's output
528 colorspace. You read uncompressed raster data using the
529 <a href="#cupsRasterReadPixels"><code>cupsRasterReadPixels</code></a>
530 function. A <code>for</code> loop is normally used to read the page one line
531 at a time:</p>
532
533 <pre class="example">
534 #include &lt;cups/raster.h&gt;
535
536 <a href="#cups_raster_t">cups_raster_t</a> *ras = <a href="#cupsRasterOpen">cupsRasterOpen</a>(0, CUPS_RASTER_READ);
537 <a href="#cups_page_header2_t">cups_page_header2_t</a> header;
538 int page = 0;
539 int y;
540 char *buffer;
541
542 while (<a href="#cupsRasterReadHeader2">cupsRasterReadHeader2</a>(ras, &amp;header))
543 {
544 /* setup this page */
545 page ++;
546 fprintf(stderr, "PAGE: %d %d\n", page, header.NumCopies);
547
548 /* allocate memory for 1 line */
549 buffer = malloc(header.cupsBytesPerLine);
550
551 /* read raster data */
552 for (y = 0; y &lt; header.cupsHeight; y ++)
553 {
554 if (<a href="#cupsRasterReadPixels">cupsRasterReadPixels</a>(ras, buffer, header.cupsBytesPerLine) == 0)
555 break;
556
557 /* write raster data to printer on stdout */
558 }
559
560 /* finish this page */
561 }
562 </pre>
563
564 <p>When you are done reading the raster data, call the
565 <a href="#cupsRasterClose"><code>cupsRasterClose</code></a> function to free
566 the memory used to read the raster file:</p>
567
568 <pre class="example">
569 <a href="#cups_raster_t">cups_raster_t</a> *ras;
570
571 <a href="#cupsRasterClose">cupsRasterClose</a>(ras);
572 </pre>
573
574
575 <h2 class='title'><a name="TASKS">Functions by Task</a></h2>
576
577 <h3><a name="OPENCLOSE">Opening and Closing Raster Streams</a></h3>
578
579 <ul class="code">
580
581 <li><a href="#cupsRasterClose" title="Close a raster stream.">cupsRasterClose</a></li>
582 <li><a href="#cupsRasterOpen" title="Open a raster stream.">cupsRasterOpen</a></li>
583
584 </ul>
585
586 <h3><a name="READING">Reading Raster Streams</a></h3>
587
588 <ul class="code">
589
590 <li><a href="#cupsRasterReadHeader" title="Read a raster page header and store it in a version 1 page header structure.">cupsRasterReadHeader</a> <span class="info">Deprecated in CUPS 1.2/macOS 10.5</span></li>
591 <li><a href="#cupsRasterReadHeader2" title="Read a raster page header and store it in a version 2 page header structure.">cupsRasterReadHeader2</a></li>
592 <li><a href="#cupsRasterReadPixels" title="Read raster pixels.">cupsRasterReadPixels</a></li>
593
594 </ul>
595
596 <h3><a name="WRITING">Writing Raster Streams</a></h3>
597
598 <ul class="code">
599
600 <li><a href="#cupsRasterInterpretPPD" title="Interpret PPD commands to create a page header.">cupsRasterInterpretPPD</a></li>
601 <li><a href="#cupsRasterWriteHeader" title="Write a raster page header from a version 1 page header structure.">cupsRasterWriteHeader</a> <span class="info">Deprecated in CUPS 1.2/macOS 10.5</span></li>
602 <li><a href="#cupsRasterWriteHeader2" title="Write a raster page header from a version 2 page header structure.">cupsRasterWriteHeader2</a></li>
603 <li><a href="#cupsRasterWritePixels" title="Write raster pixels.">cupsRasterWritePixels</a></li>
604
605 </ul>
606 <h2 class="title"><a id="FUNCTIONS">Functions</a></h2>
607 <h3 class="function"><a id="cupsRasterClose">cupsRasterClose</a></h3>
608 <p class="description">Close a raster stream.</p>
609 <p class="code">
610 void cupsRasterClose (<br>
611 &#160;&#160;&#160;&#160;<a href="#cups_raster_t">cups_raster_t</a> *r<br>
612 );</p>
613 <h4 class="parameters">Parameters</h4>
614 <dl>
615 <dt>r</dt>
616 <dd class="description">Stream to close</dd>
617 </dl>
618 <h4 class="discussion">Discussion</h4>
619 <p class="discussion">The file descriptor associated with the raster stream must be closed
620 separately as needed.</p>
621 <h3 class="function"><span class="info">&#160;CUPS 2.2/macOS 10.12&#160;</span><a id="cupsRasterInitPWGHeader">cupsRasterInitPWGHeader</a></h3>
622 <p class="description">Initialize a page header for PWG Raster output.</p>
623 <p class="code">
624 int cupsRasterInitPWGHeader (<br>
625 &#160;&#160;&#160;&#160;<a href="#cups_page_header2_t">cups_page_header2_t</a> *h,<br>
626 &#160;&#160;&#160;&#160;pwg_media_t *media,<br>
627 &#160;&#160;&#160;&#160;const char *type,<br>
628 &#160;&#160;&#160;&#160;int xdpi,<br>
629 &#160;&#160;&#160;&#160;int ydpi,<br>
630 &#160;&#160;&#160;&#160;const char *sides,<br>
631 &#160;&#160;&#160;&#160;const char *sheet_back<br>
632 );</p>
633 <h4 class="parameters">Parameters</h4>
634 <dl>
635 <dt>h</dt>
636 <dd class="description">Page header</dd>
637 <dt>media</dt>
638 <dd class="description">PWG media information</dd>
639 <dt>type</dt>
640 <dd class="description">PWG raster type string</dd>
641 <dt>xdpi</dt>
642 <dd class="description">Cross-feed direction (horizontal) resolution</dd>
643 <dt>ydpi</dt>
644 <dd class="description">Feed direction (vertical) resolution</dd>
645 <dt>sides</dt>
646 <dd class="description">IPP &quot;sides&quot; option value</dd>
647 <dt>sheet_back</dt>
648 <dd class="description">Transform for back side or <code>NULL</code> for none</dd>
649 </dl>
650 <h4 class="returnvalue">Return Value</h4>
651 <p class="description">1 on success, 0 on failure</p>
652 <h4 class="discussion">Discussion</h4>
653 <p class="discussion">The &quot;media&quot; argument specifies the media to use.<br>
654 <br>
655 The &quot;type&quot; argument specifies a &quot;pwg-raster-document-type-supported&quot; value
656 that controls the color space and bit depth of the raster data.<br>
657 <br>
658 The &quot;xres&quot; and &quot;yres&quot; arguments specify the raster resolution in dots per
659 inch.<br>
660 <br>
661 The &quot;sheet_back&quot; argument specifies a &quot;pwg-raster-document-sheet-back&quot; value
662 to apply for the back side of a page. Pass <code>NULL</code> for the front side.
663
664 </p>
665 <h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="cupsRasterInterpretPPD">cupsRasterInterpretPPD</a></h3>
666 <p class="description">Interpret PPD commands to create a page header.</p>
667 <p class="code">
668 int cupsRasterInterpretPPD (<br>
669 &#160;&#160;&#160;&#160;<a href="#cups_page_header2_t">cups_page_header2_t</a> *h,<br>
670 &#160;&#160;&#160;&#160;ppd_file_t *ppd,<br>
671 &#160;&#160;&#160;&#160;int num_options,<br>
672 &#160;&#160;&#160;&#160;cups_option_t *options,<br>
673 &#160;&#160;&#160;&#160;<a href="#cups_interpret_cb_t">cups_interpret_cb_t</a> func<br>
674 );</p>
675 <h4 class="parameters">Parameters</h4>
676 <dl>
677 <dt>h</dt>
678 <dd class="description">Page header to create</dd>
679 <dt>ppd</dt>
680 <dd class="description">PPD file</dd>
681 <dt>num_options</dt>
682 <dd class="description">Number of options</dd>
683 <dt>options</dt>
684 <dd class="description">Options</dd>
685 <dt>func</dt>
686 <dd class="description">Optional page header callback (<code>NULL</code> for none)</dd>
687 </dl>
688 <h4 class="returnvalue">Return Value</h4>
689 <p class="description">0 on success, -1 on failure</p>
690 <h4 class="discussion">Discussion</h4>
691 <p class="discussion">This function is used by raster image processing (RIP) filters like
692 cgpdftoraster and imagetoraster when writing CUPS raster data for a page.
693 It is not used by raster printer driver filters which only read CUPS
694 raster data.<br>
695 <br>
696
697 <code>cupsRasterInterpretPPD</code> does not mark the options in the PPD using
698 the &quot;num_options&quot; and &quot;options&quot; arguments. Instead, mark the options with
699 <code>cupsMarkOptions</code> and <code>ppdMarkOption</code> prior to calling it -
700 this allows for per-page options without manipulating the options array.<br>
701 <br>
702 The &quot;func&quot; argument specifies an optional callback function that is
703 called prior to the computation of the final raster data. The function
704 can make changes to the <a href="#cups_page_header2_t"><code>cups_page_header2_t</code></a> data as needed to use a
705 supported raster format and then returns 0 on success and -1 if the
706 requested attributes cannot be supported.<br>
707 <br>
708
709 <code>cupsRasterInterpretPPD</code> supports a subset of the PostScript language.
710 Currently only the <code>[</code>, <code>]</code>, <code>&lt;&lt;</code>, <code>&gt;&gt;</code>, <code>{</code>,
711 <code>}</code>, <code>cleartomark</code>, <code>copy</code>, <code>dup</code>, <code>index</code>,
712 <code>pop</code>, <code>roll</code>, <code>setpagedevice</code>, and <code>stopped</code> operators
713 are supported.
714
715 </p>
716 <h3 class="function"><a id="cupsRasterOpen">cupsRasterOpen</a></h3>
717 <p class="description">Open a raster stream using a file descriptor.</p>
718 <p class="code">
719 <a href="#cups_raster_t">cups_raster_t</a> *cupsRasterOpen (<br>
720 &#160;&#160;&#160;&#160;int fd,<br>
721 &#160;&#160;&#160;&#160;<a href="#cups_mode_t">cups_mode_t</a> mode<br>
722 );</p>
723 <h4 class="parameters">Parameters</h4>
724 <dl>
725 <dt>fd</dt>
726 <dd class="description">File descriptor</dd>
727 <dt>mode</dt>
728 <dd class="description">Mode - <code>CUPS_RASTER_READ</code>,
729 <code>CUPS_RASTER_WRITE</code>,
730 <code>CUPS_RASTER_WRITE_COMPRESSED</code>,
731 or <code>CUPS_RASTER_WRITE_PWG</code></dd>
732 </dl>
733 <h4 class="returnvalue">Return Value</h4>
734 <p class="description">New stream</p>
735 <h4 class="discussion">Discussion</h4>
736 <p class="discussion">This function associates a raster stream with the given file descriptor.
737 For most printer driver filters, &quot;fd&quot; will be 0 (stdin). For most raster
738 image processor (RIP) filters that generate raster data, &quot;fd&quot; will be 1
739 (stdout).<br>
740 <br>
741 When writing raster data, the <code>CUPS_RASTER_WRITE</code>,
742 <code>CUPS_RASTER_WRITE_COMPRESS</code>, or <code>CUPS_RASTER_WRITE_PWG</code> mode can
743 be used - compressed and PWG output is generally 25-50% smaller but adds a
744 100-300% execution time overhead.</p>
745 <h3 class="function"><a id="cupsRasterOpenIO">cupsRasterOpenIO</a></h3>
746 <p class="description">Open a raster stream using a callback function.</p>
747 <p class="code">
748 <a href="#cups_raster_t">cups_raster_t</a> *cupsRasterOpenIO (<br>
749 &#160;&#160;&#160;&#160;<a href="#cups_raster_iocb_t">cups_raster_iocb_t</a> iocb,<br>
750 &#160;&#160;&#160;&#160;void *ctx,<br>
751 &#160;&#160;&#160;&#160;<a href="#cups_mode_t">cups_mode_t</a> mode<br>
752 );</p>
753 <h4 class="parameters">Parameters</h4>
754 <dl>
755 <dt>iocb</dt>
756 <dd class="description">Read/write callback</dd>
757 <dt>ctx</dt>
758 <dd class="description">Context pointer for callback</dd>
759 <dt>mode</dt>
760 <dd class="description">Mode - <code>CUPS_RASTER_READ</code>,
761 <code>CUPS_RASTER_WRITE</code>,
762 <code>CUPS_RASTER_WRITE_COMPRESSED</code>,
763 or <code>CUPS_RASTER_WRITE_PWG</code></dd>
764 </dl>
765 <h4 class="returnvalue">Return Value</h4>
766 <p class="description">New stream</p>
767 <h4 class="discussion">Discussion</h4>
768 <p class="discussion">This function associates a raster stream with the given callback function and
769 context pointer.<br>
770 <br>
771 When writing raster data, the <code>CUPS_RASTER_WRITE</code>,
772 <code>CUPS_RASTER_WRITE_COMPRESS</code>, or <code>CUPS_RASTER_WRITE_PWG</code> mode can
773 be used - compressed and PWG output is generally 25-50% smaller but adds a
774 100-300% execution time overhead.</p>
775 <h3 class="function"><span class="info">&#160;DEPRECATED&#160;</span><a id="cupsRasterReadHeader">cupsRasterReadHeader</a></h3>
776 <p class="description">Read a raster page header and store it in a
777 version 1 page header structure.</p>
778 <p class="code">
779 unsigned cupsRasterReadHeader (<br>
780 &#160;&#160;&#160;&#160;<a href="#cups_raster_t">cups_raster_t</a> *r,<br>
781 &#160;&#160;&#160;&#160;<a href="#cups_page_header_t">cups_page_header_t</a> *h<br>
782 );</p>
783 <h4 class="parameters">Parameters</h4>
784 <dl>
785 <dt>r</dt>
786 <dd class="description">Raster stream</dd>
787 <dt>h</dt>
788 <dd class="description">Pointer to header data</dd>
789 </dl>
790 <h4 class="returnvalue">Return Value</h4>
791 <p class="description">1 on success, 0 on failure/end-of-file</p>
792 <h4 class="discussion">Discussion</h4>
793 <p class="discussion">This function is deprecated. Use <a href="#cupsRasterReadHeader2"><code>cupsRasterReadHeader2</code></a> instead.<br>
794 <br>
795 Version 1 page headers were used in CUPS 1.0 and 1.1 and contain a subset
796 of the version 2 page header data. This function handles reading version 2
797 page headers and copying only the version 1 data into the provided buffer.
798
799 </p>
800 <h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="cupsRasterReadHeader2">cupsRasterReadHeader2</a></h3>
801 <p class="description">Read a raster page header and store it in a
802 version 2 page header structure.</p>
803 <p class="code">
804 unsigned cupsRasterReadHeader2 (<br>
805 &#160;&#160;&#160;&#160;<a href="#cups_raster_t">cups_raster_t</a> *r,<br>
806 &#160;&#160;&#160;&#160;<a href="#cups_page_header2_t">cups_page_header2_t</a> *h<br>
807 );</p>
808 <h4 class="parameters">Parameters</h4>
809 <dl>
810 <dt>r</dt>
811 <dd class="description">Raster stream</dd>
812 <dt>h</dt>
813 <dd class="description">Pointer to header data</dd>
814 </dl>
815 <h4 class="returnvalue">Return Value</h4>
816 <p class="description">1 on success, 0 on failure/end-of-file</p>
817 <h3 class="function"><a id="cupsRasterReadPixels">cupsRasterReadPixels</a></h3>
818 <p class="description">Read raster pixels.</p>
819 <p class="code">
820 unsigned cupsRasterReadPixels (<br>
821 &#160;&#160;&#160;&#160;<a href="#cups_raster_t">cups_raster_t</a> *r,<br>
822 &#160;&#160;&#160;&#160;unsigned char *p,<br>
823 &#160;&#160;&#160;&#160;unsigned len<br>
824 );</p>
825 <h4 class="parameters">Parameters</h4>
826 <dl>
827 <dt>r</dt>
828 <dd class="description">Raster stream</dd>
829 <dt>p</dt>
830 <dd class="description">Pointer to pixel buffer</dd>
831 <dt>len</dt>
832 <dd class="description">Number of bytes to read</dd>
833 </dl>
834 <h4 class="returnvalue">Return Value</h4>
835 <p class="description">Number of bytes read</p>
836 <h4 class="discussion">Discussion</h4>
837 <p class="discussion">For best performance, filters should read one or more whole lines.
838 The &quot;cupsBytesPerLine&quot; value from the page header can be used to allocate
839 the line buffer and as the number of bytes to read.</p>
840 <h3 class="function"><span class="info">&#160;DEPRECATED&#160;</span><a id="cupsRasterWriteHeader">cupsRasterWriteHeader</a></h3>
841 <p class="description">Write a raster page header from a version 1 page
842 header structure.</p>
843 <p class="code">
844 unsigned cupsRasterWriteHeader (<br>
845 &#160;&#160;&#160;&#160;<a href="#cups_raster_t">cups_raster_t</a> *r,<br>
846 &#160;&#160;&#160;&#160;<a href="#cups_page_header_t">cups_page_header_t</a> *h<br>
847 );</p>
848 <h4 class="parameters">Parameters</h4>
849 <dl>
850 <dt>r</dt>
851 <dd class="description">Raster stream</dd>
852 <dt>h</dt>
853 <dd class="description">Raster page header</dd>
854 </dl>
855 <h4 class="returnvalue">Return Value</h4>
856 <p class="description">1 on success, 0 on failure</p>
857 <h4 class="discussion">Discussion</h4>
858 <p class="discussion">This function is deprecated. Use <a href="#cupsRasterWriteHeader2"><code>cupsRasterWriteHeader2</code></a> instead.
859
860 </p>
861 <h3 class="function"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="cupsRasterWriteHeader2">cupsRasterWriteHeader2</a></h3>
862 <p class="description">Write a raster page header from a version 2
863 page header structure.</p>
864 <p class="code">
865 unsigned cupsRasterWriteHeader2 (<br>
866 &#160;&#160;&#160;&#160;<a href="#cups_raster_t">cups_raster_t</a> *r,<br>
867 &#160;&#160;&#160;&#160;<a href="#cups_page_header2_t">cups_page_header2_t</a> *h<br>
868 );</p>
869 <h4 class="parameters">Parameters</h4>
870 <dl>
871 <dt>r</dt>
872 <dd class="description">Raster stream</dd>
873 <dt>h</dt>
874 <dd class="description">Raster page header</dd>
875 </dl>
876 <h4 class="returnvalue">Return Value</h4>
877 <p class="description">1 on success, 0 on failure</p>
878 <h4 class="discussion">Discussion</h4>
879 <p class="discussion">The page header can be initialized using <a href="#cupsRasterInitPWGHeader"><code>cupsRasterInitPWGHeader</code></a>.
880
881 </p>
882 <h3 class="function"><a id="cupsRasterWritePixels">cupsRasterWritePixels</a></h3>
883 <p class="description">Write raster pixels.</p>
884 <p class="code">
885 unsigned cupsRasterWritePixels (<br>
886 &#160;&#160;&#160;&#160;<a href="#cups_raster_t">cups_raster_t</a> *r,<br>
887 &#160;&#160;&#160;&#160;unsigned char *p,<br>
888 &#160;&#160;&#160;&#160;unsigned len<br>
889 );</p>
890 <h4 class="parameters">Parameters</h4>
891 <dl>
892 <dt>r</dt>
893 <dd class="description">Raster stream</dd>
894 <dt>p</dt>
895 <dd class="description">Bytes to write</dd>
896 <dt>len</dt>
897 <dd class="description">Number of bytes to write</dd>
898 </dl>
899 <h4 class="returnvalue">Return Value</h4>
900 <p class="description">Number of bytes written</p>
901 <h4 class="discussion">Discussion</h4>
902 <p class="discussion">For best performance, filters should write one or more whole lines.
903 The &quot;cupsBytesPerLine&quot; value from the page header can be used to allocate
904 the line buffer and as the number of bytes to write.</p>
905 <h2 class="title"><a id="TYPES">Data Types</a></h2>
906 <h3 class="typedef"><a id="cups_adv_t">cups_adv_t</a></h3>
907 <p class="description">AdvanceMedia attribute values</p>
908 <p class="code">
909 typedef enum <a href="#cups_adv_e">cups_adv_e</a> cups_adv_t;
910 </p>
911 <h3 class="typedef"><a id="cups_bool_t">cups_bool_t</a></h3>
912 <p class="description">Boolean type</p>
913 <p class="code">
914 typedef enum <a href="#cups_bool_e">cups_bool_e</a> cups_bool_t;
915 </p>
916 <h3 class="typedef"><a id="cups_cspace_t">cups_cspace_t</a></h3>
917 <p class="description">cupsColorSpace attribute values</p>
918 <p class="code">
919 typedef enum <a href="#cups_cspace_e">cups_cspace_e</a> cups_cspace_t;
920 </p>
921 <h3 class="typedef"><a id="cups_cut_t">cups_cut_t</a></h3>
922 <p class="description">CutMedia attribute values</p>
923 <p class="code">
924 typedef enum <a href="#cups_cut_e">cups_cut_e</a> cups_cut_t;
925 </p>
926 <h3 class="typedef"><a id="cups_edge_t">cups_edge_t</a></h3>
927 <p class="description">LeadingEdge attribute values</p>
928 <p class="code">
929 typedef enum <a href="#cups_edge_e">cups_edge_e</a> cups_edge_t;
930 </p>
931 <h3 class="typedef"><a id="cups_interpret_cb_t">cups_interpret_cb_t</a></h3>
932 <p class="description">cupsRasterInterpretPPD callback function</p>
933 <p class="code">
934 typedef int (*cups_interpret_cb_t)(<a href="#cups_page_header2_t">cups_page_header2_t</a> *header, int preferred_bits);
935 </p>
936 <h3 class="typedef"><a id="cups_jog_t">cups_jog_t</a></h3>
937 <p class="description">Jog attribute values</p>
938 <p class="code">
939 typedef enum <a href="#cups_jog_e">cups_jog_e</a> cups_jog_t;
940 </p>
941 <h3 class="typedef"><a id="cups_mode_t">cups_mode_t</a></h3>
942 <p class="description">cupsRasterOpen modes</p>
943 <p class="code">
944 typedef enum <a href="#cups_mode_e">cups_mode_e</a> cups_mode_t;
945 </p>
946 <h3 class="typedef"><a id="cups_order_t">cups_order_t</a></h3>
947 <p class="description">cupsColorOrder attribute values</p>
948 <p class="code">
949 typedef enum <a href="#cups_order_e">cups_order_e</a> cups_order_t;
950 </p>
951 <h3 class="typedef"><a id="cups_orient_t">cups_orient_t</a></h3>
952 <p class="description">Orientation attribute values</p>
953 <p class="code">
954 typedef enum <a href="#cups_orient_e">cups_orient_e</a> cups_orient_t;
955 </p>
956 <h3 class="typedef"><a id="cups_page_header2_t"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span>cups_page_header2_t</a></h3>
957 <p class="description">Version 2 page header </p>
958 <p class="code">
959 typedef struct <a href="#cups_page_header2_s">cups_page_header2_s</a> cups_page_header2_t;
960 </p>
961 <h3 class="typedef"><a id="cups_page_header_t"><span class="info">&#160;DEPRECATED&#160;</span>cups_page_header_t</a></h3>
962 <p class="description">Version 1 page header </p>
963 <p class="code">
964 typedef struct <a href="#cups_page_header_s">cups_page_header_s</a> cups_page_header_t;
965 </p>
966 <h3 class="typedef"><a id="cups_raster_iocb_t">cups_raster_iocb_t</a></h3>
967 <p class="description">cupsRasterOpenIO callback function</p>
968 <p class="code">
969 typedef ssize_t (*cups_raster_iocb_t)(void *ctx, unsigned char *buffer, size_t length);
970 </p>
971 <h3 class="typedef"><a id="cups_raster_t">cups_raster_t</a></h3>
972 <p class="description">Raster stream data</p>
973 <p class="code">
974 typedef struct _cups_raster_s cups_raster_t;
975 </p>
976 <h2 class="title"><a id="STRUCTURES">Structures</a></h2>
977 <h3 class="struct"><span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span><a id="cups_page_header2_s">cups_page_header2_s</a></h3>
978 <p class="description">Version 2 page header </p>
979 <p class="code">struct cups_page_header2_s {<br>
980 &#160;&#160;&#160;&#160;unsigned AdvanceDistance;<br>
981 &#160;&#160;&#160;&#160;<a href="#cups_adv_t">cups_adv_t</a> AdvanceMedia;<br>
982 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> Collate;<br>
983 &#160;&#160;&#160;&#160;<a href="#cups_cut_t">cups_cut_t</a> CutMedia;<br>
984 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> Duplex;<br>
985 &#160;&#160;&#160;&#160;unsigned HWResolution[2];<br>
986 &#160;&#160;&#160;&#160;unsigned ImagingBoundingBox[4];<br>
987 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> InsertSheet;<br>
988 &#160;&#160;&#160;&#160;<a href="#cups_jog_t">cups_jog_t</a> Jog;<br>
989 &#160;&#160;&#160;&#160;<a href="#cups_edge_t">cups_edge_t</a> LeadingEdge;<br>
990 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> ManualFeed;<br>
991 &#160;&#160;&#160;&#160;unsigned Margins[2];<br>
992 &#160;&#160;&#160;&#160;char MediaClass[64];<br>
993 &#160;&#160;&#160;&#160;char MediaColor[64];<br>
994 &#160;&#160;&#160;&#160;unsigned MediaPosition;<br>
995 &#160;&#160;&#160;&#160;char MediaType[64];<br>
996 &#160;&#160;&#160;&#160;unsigned MediaWeight;<br>
997 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> MirrorPrint;<br>
998 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> NegativePrint;<br>
999 &#160;&#160;&#160;&#160;unsigned NumCopies;<br>
1000 &#160;&#160;&#160;&#160;<a href="#cups_orient_t">cups_orient_t</a> Orientation;<br>
1001 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> OutputFaceUp;<br>
1002 &#160;&#160;&#160;&#160;char OutputType[64];<br>
1003 &#160;&#160;&#160;&#160;unsigned PageSize[2];<br>
1004 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> Separations;<br>
1005 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> TraySwitch;<br>
1006 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> Tumble;<br>
1007 &#160;&#160;&#160;&#160;unsigned cupsBitsPerColor;<br>
1008 &#160;&#160;&#160;&#160;unsigned cupsBitsPerPixel;<br>
1009 &#160;&#160;&#160;&#160;float cupsBorderlessScalingFactor;<br>
1010 &#160;&#160;&#160;&#160;unsigned cupsBytesPerLine;<br>
1011 &#160;&#160;&#160;&#160;<a href="#cups_order_t">cups_order_t</a> cupsColorOrder;<br>
1012 &#160;&#160;&#160;&#160;<a href="#cups_cspace_t">cups_cspace_t</a> cupsColorSpace;<br>
1013 &#160;&#160;&#160;&#160;unsigned cupsCompression;<br>
1014 &#160;&#160;&#160;&#160;unsigned cupsHeight;<br>
1015 &#160;&#160;&#160;&#160;float cupsImagingBBox[4];<br>
1016 &#160;&#160;&#160;&#160;unsigned cupsInteger[16];<br>
1017 &#160;&#160;&#160;&#160;char cupsMarkerType[64];<br>
1018 &#160;&#160;&#160;&#160;unsigned cupsMediaType;<br>
1019 &#160;&#160;&#160;&#160;unsigned cupsNumColors;<br>
1020 &#160;&#160;&#160;&#160;char cupsPageSizeName[64];<br>
1021 &#160;&#160;&#160;&#160;float cupsPageSize[2];<br>
1022 &#160;&#160;&#160;&#160;float cupsReal[16];<br>
1023 &#160;&#160;&#160;&#160;char cupsRenderingIntent[64];<br>
1024 &#160;&#160;&#160;&#160;unsigned cupsRowCount;<br>
1025 &#160;&#160;&#160;&#160;unsigned cupsRowFeed;<br>
1026 &#160;&#160;&#160;&#160;unsigned cupsRowStep;<br>
1027 &#160;&#160;&#160;&#160;char cupsString[16][64];<br>
1028 &#160;&#160;&#160;&#160;unsigned cupsWidth;<br>
1029 };</p>
1030 <h4 class="members">Members</h4>
1031 <dl>
1032 <dt>AdvanceDistance </dt>
1033 <dd class="description">AdvanceDistance value in points</dd>
1034 <dt>AdvanceMedia </dt>
1035 <dd class="description">AdvanceMedia value (<a href="#cups_adv_t"><code>cups_adv_t</code></a>)</dd>
1036 <dt>Collate </dt>
1037 <dd class="description">Collated copies value</dd>
1038 <dt>CutMedia </dt>
1039 <dd class="description">CutMedia value (<a href="#cups_cut_t"><code>cups_cut_t</code></a>)</dd>
1040 <dt>Duplex </dt>
1041 <dd class="description">Duplexed (double-sided) value</dd>
1042 <dt>HWResolution[2] </dt>
1043 <dd class="description">Resolution in dots-per-inch</dd>
1044 <dt>ImagingBoundingBox[4] </dt>
1045 <dd class="description">Pixel region that is painted (points, left, bottom, right, top)</dd>
1046 <dt>InsertSheet </dt>
1047 <dd class="description">InsertSheet value</dd>
1048 <dt>Jog </dt>
1049 <dd class="description">Jog value (<a href="#cups_jog_t"><code>cups_jog_t</code></a>)</dd>
1050 <dt>LeadingEdge </dt>
1051 <dd class="description">LeadingEdge value (<a href="#cups_edge_t"><code>cups_edge_t</code></a>)</dd>
1052 <dt>ManualFeed </dt>
1053 <dd class="description">ManualFeed value</dd>
1054 <dt>Margins[2] </dt>
1055 <dd class="description">Lower-lefthand margins in points</dd>
1056 <dt>MediaClass[64] </dt>
1057 <dd class="description">MediaClass string</dd>
1058 <dt>MediaColor[64] </dt>
1059 <dd class="description">MediaColor string</dd>
1060 <dt>MediaPosition </dt>
1061 <dd class="description">MediaPosition value</dd>
1062 <dt>MediaType[64] </dt>
1063 <dd class="description">MediaType string</dd>
1064 <dt>MediaWeight </dt>
1065 <dd class="description">MediaWeight value in grams/m^2</dd>
1066 <dt>MirrorPrint </dt>
1067 <dd class="description">MirrorPrint value</dd>
1068 <dt>NegativePrint </dt>
1069 <dd class="description">NegativePrint value</dd>
1070 <dt>NumCopies </dt>
1071 <dd class="description">Number of copies to produce</dd>
1072 <dt>Orientation </dt>
1073 <dd class="description">Orientation value (<a href="#cups_orient_t"><code>cups_orient_t</code></a>)</dd>
1074 <dt>OutputFaceUp </dt>
1075 <dd class="description">OutputFaceUp value</dd>
1076 <dt>OutputType[64] </dt>
1077 <dd class="description">OutputType string</dd>
1078 <dt>PageSize[2] </dt>
1079 <dd class="description">Width and length of page in points</dd>
1080 <dt>Separations </dt>
1081 <dd class="description">Separations value</dd>
1082 <dt>TraySwitch </dt>
1083 <dd class="description">TraySwitch value</dd>
1084 <dt>Tumble </dt>
1085 <dd class="description">Tumble value</dd>
1086 <dt>cupsBitsPerColor </dt>
1087 <dd class="description">Number of bits for each color</dd>
1088 <dt>cupsBitsPerPixel </dt>
1089 <dd class="description">Number of bits for each pixel</dd>
1090 <dt>cupsBorderlessScalingFactor <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1091 <dd class="description">Scaling that was applied to page data </dd>
1092 <dt>cupsBytesPerLine </dt>
1093 <dd class="description">Number of bytes per line</dd>
1094 <dt>cupsColorOrder </dt>
1095 <dd class="description">Order of colors</dd>
1096 <dt>cupsColorSpace </dt>
1097 <dd class="description">True colorspace</dd>
1098 <dt>cupsCompression </dt>
1099 <dd class="description">Device compression to use</dd>
1100 <dt>cupsHeight </dt>
1101 <dd class="description">Height of page image in pixels</dd>
1102 <dt>cupsImagingBBox[4] <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1103 <dd class="description">Floating point ImagingBoundingBox
1104 (scaling factor not applied, left,
1105 bottom, right, top) </dd>
1106 <dt>cupsInteger[16] <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1107 <dd class="description">User-defined integer values </dd>
1108 <dt>cupsMarkerType[64] <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1109 <dd class="description">Ink/toner type </dd>
1110 <dt>cupsMediaType </dt>
1111 <dd class="description">Media type code</dd>
1112 <dt>cupsNumColors <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1113 <dd class="description">Number of color compoents </dd>
1114 <dt>cupsPageSizeName[64] <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1115 <dd class="description">PageSize name </dd>
1116 <dt>cupsPageSize[2] <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1117 <dd class="description">Floating point PageSize (scaling *
1118 factor not applied) </dd>
1119 <dt>cupsReal[16] <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1120 <dd class="description">User-defined floating-point values </dd>
1121 <dt>cupsRenderingIntent[64] <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1122 <dd class="description">Color rendering intent </dd>
1123 <dt>cupsRowCount </dt>
1124 <dd class="description">Rows per band</dd>
1125 <dt>cupsRowFeed </dt>
1126 <dd class="description">Feed between bands</dd>
1127 <dt>cupsRowStep </dt>
1128 <dd class="description">Spacing between lines</dd>
1129 <dt>cupsString[16][64] <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1130 <dd class="description">User-defined string values </dd>
1131 <dt>cupsWidth </dt>
1132 <dd class="description">Width of page image in pixels</dd>
1133 </dl>
1134 <h3 class="struct"><span class="info">&#160;DEPRECATED&#160;</span><a id="cups_page_header_s">cups_page_header_s</a></h3>
1135 <p class="description">Version 1 page header </p>
1136 <p class="code">struct cups_page_header_s {<br>
1137 &#160;&#160;&#160;&#160;unsigned AdvanceDistance;<br>
1138 &#160;&#160;&#160;&#160;<a href="#cups_adv_t">cups_adv_t</a> AdvanceMedia;<br>
1139 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> Collate;<br>
1140 &#160;&#160;&#160;&#160;<a href="#cups_cut_t">cups_cut_t</a> CutMedia;<br>
1141 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> Duplex;<br>
1142 &#160;&#160;&#160;&#160;unsigned HWResolution[2];<br>
1143 &#160;&#160;&#160;&#160;unsigned ImagingBoundingBox[4];<br>
1144 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> InsertSheet;<br>
1145 &#160;&#160;&#160;&#160;<a href="#cups_jog_t">cups_jog_t</a> Jog;<br>
1146 &#160;&#160;&#160;&#160;<a href="#cups_edge_t">cups_edge_t</a> LeadingEdge;<br>
1147 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> ManualFeed;<br>
1148 &#160;&#160;&#160;&#160;unsigned Margins[2];<br>
1149 &#160;&#160;&#160;&#160;char MediaClass[64];<br>
1150 &#160;&#160;&#160;&#160;char MediaColor[64];<br>
1151 &#160;&#160;&#160;&#160;unsigned MediaPosition;<br>
1152 &#160;&#160;&#160;&#160;char MediaType[64];<br>
1153 &#160;&#160;&#160;&#160;unsigned MediaWeight;<br>
1154 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> MirrorPrint;<br>
1155 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> NegativePrint;<br>
1156 &#160;&#160;&#160;&#160;unsigned NumCopies;<br>
1157 &#160;&#160;&#160;&#160;<a href="#cups_orient_t">cups_orient_t</a> Orientation;<br>
1158 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> OutputFaceUp;<br>
1159 &#160;&#160;&#160;&#160;char OutputType[64];<br>
1160 &#160;&#160;&#160;&#160;unsigned PageSize[2];<br>
1161 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> Separations;<br>
1162 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> TraySwitch;<br>
1163 &#160;&#160;&#160;&#160;<a href="#cups_bool_t">cups_bool_t</a> Tumble;<br>
1164 &#160;&#160;&#160;&#160;unsigned cupsBitsPerColor;<br>
1165 &#160;&#160;&#160;&#160;unsigned cupsBitsPerPixel;<br>
1166 &#160;&#160;&#160;&#160;unsigned cupsBytesPerLine;<br>
1167 &#160;&#160;&#160;&#160;<a href="#cups_order_t">cups_order_t</a> cupsColorOrder;<br>
1168 &#160;&#160;&#160;&#160;<a href="#cups_cspace_t">cups_cspace_t</a> cupsColorSpace;<br>
1169 &#160;&#160;&#160;&#160;unsigned cupsCompression;<br>
1170 &#160;&#160;&#160;&#160;unsigned cupsHeight;<br>
1171 &#160;&#160;&#160;&#160;unsigned cupsMediaType;<br>
1172 &#160;&#160;&#160;&#160;unsigned cupsRowCount;<br>
1173 &#160;&#160;&#160;&#160;unsigned cupsRowFeed;<br>
1174 &#160;&#160;&#160;&#160;unsigned cupsRowStep;<br>
1175 &#160;&#160;&#160;&#160;unsigned cupsWidth;<br>
1176 };</p>
1177 <h4 class="members">Members</h4>
1178 <dl>
1179 <dt>AdvanceDistance </dt>
1180 <dd class="description">AdvanceDistance value in points</dd>
1181 <dt>AdvanceMedia </dt>
1182 <dd class="description">AdvanceMedia value (<a href="#cups_adv_t"><code>cups_adv_t</code></a>)</dd>
1183 <dt>Collate </dt>
1184 <dd class="description">Collated copies value</dd>
1185 <dt>CutMedia </dt>
1186 <dd class="description">CutMedia value (<a href="#cups_cut_t"><code>cups_cut_t</code></a>)</dd>
1187 <dt>Duplex </dt>
1188 <dd class="description">Duplexed (double-sided) value</dd>
1189 <dt>HWResolution[2] </dt>
1190 <dd class="description">Resolution in dots-per-inch</dd>
1191 <dt>ImagingBoundingBox[4] </dt>
1192 <dd class="description">Pixel region that is painted (points, left, bottom, right, top)</dd>
1193 <dt>InsertSheet </dt>
1194 <dd class="description">InsertSheet value</dd>
1195 <dt>Jog </dt>
1196 <dd class="description">Jog value (<a href="#cups_jog_t"><code>cups_jog_t</code></a>)</dd>
1197 <dt>LeadingEdge </dt>
1198 <dd class="description">LeadingEdge value (<a href="#cups_edge_t"><code>cups_edge_t</code></a>)</dd>
1199 <dt>ManualFeed </dt>
1200 <dd class="description">ManualFeed value</dd>
1201 <dt>Margins[2] </dt>
1202 <dd class="description">Lower-lefthand margins in points</dd>
1203 <dt>MediaClass[64] </dt>
1204 <dd class="description">MediaClass string</dd>
1205 <dt>MediaColor[64] </dt>
1206 <dd class="description">MediaColor string</dd>
1207 <dt>MediaPosition </dt>
1208 <dd class="description">MediaPosition value</dd>
1209 <dt>MediaType[64] </dt>
1210 <dd class="description">MediaType string</dd>
1211 <dt>MediaWeight </dt>
1212 <dd class="description">MediaWeight value in grams/m^2</dd>
1213 <dt>MirrorPrint </dt>
1214 <dd class="description">MirrorPrint value</dd>
1215 <dt>NegativePrint </dt>
1216 <dd class="description">NegativePrint value</dd>
1217 <dt>NumCopies </dt>
1218 <dd class="description">Number of copies to produce</dd>
1219 <dt>Orientation </dt>
1220 <dd class="description">Orientation value (<a href="#cups_orient_t"><code>cups_orient_t</code></a>)</dd>
1221 <dt>OutputFaceUp </dt>
1222 <dd class="description">OutputFaceUp value</dd>
1223 <dt>OutputType[64] </dt>
1224 <dd class="description">OutputType string</dd>
1225 <dt>PageSize[2] </dt>
1226 <dd class="description">Width and length of page in points</dd>
1227 <dt>Separations </dt>
1228 <dd class="description">Separations value</dd>
1229 <dt>TraySwitch </dt>
1230 <dd class="description">TraySwitch value</dd>
1231 <dt>Tumble </dt>
1232 <dd class="description">Tumble value</dd>
1233 <dt>cupsBitsPerColor </dt>
1234 <dd class="description">Number of bits for each color</dd>
1235 <dt>cupsBitsPerPixel </dt>
1236 <dd class="description">Number of bits for each pixel</dd>
1237 <dt>cupsBytesPerLine </dt>
1238 <dd class="description">Number of bytes per line</dd>
1239 <dt>cupsColorOrder </dt>
1240 <dd class="description">Order of colors</dd>
1241 <dt>cupsColorSpace </dt>
1242 <dd class="description">True colorspace</dd>
1243 <dt>cupsCompression </dt>
1244 <dd class="description">Device compression to use</dd>
1245 <dt>cupsHeight </dt>
1246 <dd class="description">Height of page image in pixels</dd>
1247 <dt>cupsMediaType </dt>
1248 <dd class="description">Media type code</dd>
1249 <dt>cupsRowCount </dt>
1250 <dd class="description">Rows per band</dd>
1251 <dt>cupsRowFeed </dt>
1252 <dd class="description">Feed between bands</dd>
1253 <dt>cupsRowStep </dt>
1254 <dd class="description">Spacing between lines</dd>
1255 <dt>cupsWidth </dt>
1256 <dd class="description">Width of page image in pixels</dd>
1257 </dl>
1258 <h2 class="title"><a id="ENUMERATIONS">Constants</a></h2>
1259 <h3 class="enumeration"><a id="cups_adv_e">cups_adv_e</a></h3>
1260 <p class="description">AdvanceMedia attribute values</p>
1261 <h4 class="constants">Constants</h4>
1262 <dl>
1263 <dt>CUPS_ADVANCE_FILE </dt>
1264 <dd class="description">Advance the roll after this file</dd>
1265 <dt>CUPS_ADVANCE_JOB </dt>
1266 <dd class="description">Advance the roll after this job</dd>
1267 <dt>CUPS_ADVANCE_NONE </dt>
1268 <dd class="description">Never advance the roll</dd>
1269 <dt>CUPS_ADVANCE_PAGE </dt>
1270 <dd class="description">Advance the roll after this page</dd>
1271 <dt>CUPS_ADVANCE_SET </dt>
1272 <dd class="description">Advance the roll after this set</dd>
1273 </dl>
1274 <h3 class="enumeration"><a id="cups_bool_e">cups_bool_e</a></h3>
1275 <p class="description">Boolean type</p>
1276 <h4 class="constants">Constants</h4>
1277 <dl>
1278 <dt>CUPS_FALSE </dt>
1279 <dd class="description">Logical false</dd>
1280 <dt>CUPS_TRUE </dt>
1281 <dd class="description">Logical true</dd>
1282 </dl>
1283 <h3 class="enumeration"><a id="cups_cspace_e">cups_cspace_e</a></h3>
1284 <p class="description">cupsColorSpace attribute values</p>
1285 <h4 class="constants">Constants</h4>
1286 <dl>
1287 <dt>CUPS_CSPACE_ADOBERGB <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1288 <dd class="description">Red, green, blue (Adobe RGB) </dd>
1289 <dt>CUPS_CSPACE_CIELab <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1290 <dd class="description">CIE Lab </dd>
1291 <dt>CUPS_CSPACE_CIEXYZ <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1292 <dd class="description">CIE XYZ </dd>
1293 <dt>CUPS_CSPACE_CMY </dt>
1294 <dd class="description">Cyan, magenta, yellow (DeviceCMY)</dd>
1295 <dt>CUPS_CSPACE_CMYK </dt>
1296 <dd class="description">Cyan, magenta, yellow, black (DeviceCMYK)</dd>
1297 <dt>CUPS_CSPACE_DEVICE1 <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1298 <dd class="description">DeviceN, 1 color </dd>
1299 <dt>CUPS_CSPACE_DEVICE2 <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1300 <dd class="description">DeviceN, 2 colors </dd>
1301 <dt>CUPS_CSPACE_DEVICE3 <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1302 <dd class="description">DeviceN, 3 colors </dd>
1303 <dt>CUPS_CSPACE_DEVICE4 <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1304 <dd class="description">DeviceN, 4 colors </dd>
1305 <dt>CUPS_CSPACE_DEVICE5 <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1306 <dd class="description">DeviceN, 5 colors </dd>
1307 <dt>CUPS_CSPACE_DEVICE6 <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1308 <dd class="description">DeviceN, 6 colors </dd>
1309 <dt>CUPS_CSPACE_DEVICE7 <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1310 <dd class="description">DeviceN, 7 colors </dd>
1311 <dt>CUPS_CSPACE_DEVICE8 <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1312 <dd class="description">DeviceN, 8 colors </dd>
1313 <dt>CUPS_CSPACE_DEVICE9 <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1314 <dd class="description">DeviceN, 9 colors </dd>
1315 <dt>CUPS_CSPACE_DEVICEA <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1316 <dd class="description">DeviceN, 10 colors </dd>
1317 <dt>CUPS_CSPACE_DEVICEB <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1318 <dd class="description">DeviceN, 11 colors </dd>
1319 <dt>CUPS_CSPACE_DEVICEC <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1320 <dd class="description">DeviceN, 12 colors </dd>
1321 <dt>CUPS_CSPACE_DEVICED <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1322 <dd class="description">DeviceN, 13 colors </dd>
1323 <dt>CUPS_CSPACE_DEVICEE <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1324 <dd class="description">DeviceN, 14 colors </dd>
1325 <dt>CUPS_CSPACE_DEVICEF <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1326 <dd class="description">DeviceN, 15 colors </dd>
1327 <dt>CUPS_CSPACE_GMCK <span class="info">&#160;DEPRECATED&#160;</span></dt>
1328 <dd class="description">Gold, magenta, yellow, black </dd>
1329 <dt>CUPS_CSPACE_GMCS <span class="info">&#160;DEPRECATED&#160;</span></dt>
1330 <dd class="description">Gold, magenta, yellow, silver </dd>
1331 <dt>CUPS_CSPACE_GOLD <span class="info">&#160;DEPRECATED&#160;</span></dt>
1332 <dd class="description">Gold foil </dd>
1333 <dt>CUPS_CSPACE_ICC1 <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1334 <dd class="description">ICC-based, 1 color </dd>
1335 <dt>CUPS_CSPACE_ICC2 <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1336 <dd class="description">ICC-based, 2 colors </dd>
1337 <dt>CUPS_CSPACE_ICC3 <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1338 <dd class="description">ICC-based, 3 colors </dd>
1339 <dt>CUPS_CSPACE_ICC4 <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1340 <dd class="description">ICC-based, 4 colors </dd>
1341 <dt>CUPS_CSPACE_ICC5 <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1342 <dd class="description">ICC-based, 5 colors </dd>
1343 <dt>CUPS_CSPACE_ICC6 <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1344 <dd class="description">ICC-based, 6 colors </dd>
1345 <dt>CUPS_CSPACE_ICC7 <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1346 <dd class="description">ICC-based, 7 colors </dd>
1347 <dt>CUPS_CSPACE_ICC8 <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1348 <dd class="description">ICC-based, 8 colors </dd>
1349 <dt>CUPS_CSPACE_ICC9 <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1350 <dd class="description">ICC-based, 9 colors </dd>
1351 <dt>CUPS_CSPACE_ICCA <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1352 <dd class="description">ICC-based, 10 colors </dd>
1353 <dt>CUPS_CSPACE_ICCB <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1354 <dd class="description">ICC-based, 11 colors </dd>
1355 <dt>CUPS_CSPACE_ICCC <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1356 <dd class="description">ICC-based, 12 colors </dd>
1357 <dt>CUPS_CSPACE_ICCD <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1358 <dd class="description">ICC-based, 13 colors </dd>
1359 <dt>CUPS_CSPACE_ICCE <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1360 <dd class="description">ICC-based, 14 colors </dd>
1361 <dt>CUPS_CSPACE_ICCF <span class="info">&#160;CUPS 1.1.19/macOS 10.3&#160;</span></dt>
1362 <dd class="description">ICC-based, 15 colors </dd>
1363 <dt>CUPS_CSPACE_K </dt>
1364 <dd class="description">Black (DeviceK)</dd>
1365 <dt>CUPS_CSPACE_KCMY <span class="info">&#160;DEPRECATED&#160;</span></dt>
1366 <dd class="description">Black, cyan, magenta, yellow </dd>
1367 <dt>CUPS_CSPACE_KCMYcm <span class="info">&#160;DEPRECATED&#160;</span></dt>
1368 <dd class="description">Black, cyan, magenta, yellow, light-cyan, light-magenta </dd>
1369 <dt>CUPS_CSPACE_RGB </dt>
1370 <dd class="description">Red, green, blue (DeviceRGB, sRGB by default)</dd>
1371 <dt>CUPS_CSPACE_RGBA </dt>
1372 <dd class="description">Red, green, blue, alpha (DeviceRGB, sRGB by default)</dd>
1373 <dt>CUPS_CSPACE_RGBW <span class="info">&#160;CUPS 1.2/macOS 10.5&#160;</span></dt>
1374 <dd class="description">Red, green, blue, white (DeviceRGB, sRGB by default) </dd>
1375 <dt>CUPS_CSPACE_SILVER <span class="info">&#160;DEPRECATED&#160;</span></dt>
1376 <dd class="description">Silver foil </dd>
1377 <dt>CUPS_CSPACE_SRGB <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1378 <dd class="description">Red, green, blue (sRGB) </dd>
1379 <dt>CUPS_CSPACE_SW <span class="info">&#160;CUPS 1.4.5&#160;</span></dt>
1380 <dd class="description">Luminance (gamma 2.2) </dd>
1381 <dt>CUPS_CSPACE_W </dt>
1382 <dd class="description">Luminance (DeviceGray, gamma 2.2 by default)</dd>
1383 <dt>CUPS_CSPACE_WHITE <span class="info">&#160;DEPRECATED&#160;</span></dt>
1384 <dd class="description">White ink (as black) </dd>
1385 <dt>CUPS_CSPACE_YMC <span class="info">&#160;DEPRECATED&#160;</span></dt>
1386 <dd class="description">Yellow, magenta, cyan </dd>
1387 <dt>CUPS_CSPACE_YMCK <span class="info">&#160;DEPRECATED&#160;</span></dt>
1388 <dd class="description">Yellow, magenta, cyan, black </dd>
1389 </dl>
1390 <h3 class="enumeration"><a id="cups_cut_e">cups_cut_e</a></h3>
1391 <p class="description">CutMedia attribute values</p>
1392 <h4 class="constants">Constants</h4>
1393 <dl>
1394 <dt>CUPS_CUT_FILE </dt>
1395 <dd class="description">Cut the roll after this file</dd>
1396 <dt>CUPS_CUT_JOB </dt>
1397 <dd class="description">Cut the roll after this job</dd>
1398 <dt>CUPS_CUT_NONE </dt>
1399 <dd class="description">Never cut the roll</dd>
1400 <dt>CUPS_CUT_PAGE </dt>
1401 <dd class="description">Cut the roll after this page</dd>
1402 <dt>CUPS_CUT_SET </dt>
1403 <dd class="description">Cut the roll after this set</dd>
1404 </dl>
1405 <h3 class="enumeration"><a id="cups_edge_e">cups_edge_e</a></h3>
1406 <p class="description">LeadingEdge attribute values</p>
1407 <h4 class="constants">Constants</h4>
1408 <dl>
1409 <dt>CUPS_EDGE_BOTTOM </dt>
1410 <dd class="description">Leading edge is the bottom of the page</dd>
1411 <dt>CUPS_EDGE_LEFT </dt>
1412 <dd class="description">Leading edge is the left of the page</dd>
1413 <dt>CUPS_EDGE_RIGHT </dt>
1414 <dd class="description">Leading edge is the right of the page</dd>
1415 <dt>CUPS_EDGE_TOP </dt>
1416 <dd class="description">Leading edge is the top of the page</dd>
1417 </dl>
1418 <h3 class="enumeration"><a id="cups_jog_e">cups_jog_e</a></h3>
1419 <p class="description">Jog attribute values</p>
1420 <h4 class="constants">Constants</h4>
1421 <dl>
1422 <dt>CUPS_JOG_FILE </dt>
1423 <dd class="description">Move pages after this file</dd>
1424 <dt>CUPS_JOG_JOB </dt>
1425 <dd class="description">Move pages after this job</dd>
1426 <dt>CUPS_JOG_NONE </dt>
1427 <dd class="description">Never move pages</dd>
1428 <dt>CUPS_JOG_SET </dt>
1429 <dd class="description">Move pages after this set</dd>
1430 </dl>
1431 <h3 class="enumeration"><a id="cups_mode_e">cups_mode_e</a></h3>
1432 <p class="description">cupsRasterOpen modes</p>
1433 <h4 class="constants">Constants</h4>
1434 <dl>
1435 <dt>CUPS_RASTER_READ </dt>
1436 <dd class="description">Open stream for reading</dd>
1437 <dt>CUPS_RASTER_WRITE </dt>
1438 <dd class="description">Open stream for writing</dd>
1439 <dt>CUPS_RASTER_WRITE_COMPRESSED <span class="info">&#160;CUPS 1.3/macOS 10.5&#160;</span></dt>
1440 <dd class="description">Open stream for compressed writing </dd>
1441 <dt>CUPS_RASTER_WRITE_PWG <span class="info">&#160;CUPS 1.5/macOS 10.7&#160;</span></dt>
1442 <dd class="description">Open stream for compressed writing in PWG Raster mode </dd>
1443 </dl>
1444 <h3 class="enumeration"><a id="cups_order_e">cups_order_e</a></h3>
1445 <p class="description">cupsColorOrder attribute values</p>
1446 <h4 class="constants">Constants</h4>
1447 <dl>
1448 <dt>CUPS_ORDER_BANDED </dt>
1449 <dd class="description">CCC MMM YYY KKK ...</dd>
1450 <dt>CUPS_ORDER_CHUNKED </dt>
1451 <dd class="description">CMYK CMYK CMYK ...</dd>
1452 <dt>CUPS_ORDER_PLANAR </dt>
1453 <dd class="description">CCC ... MMM ... YYY ... KKK ...</dd>
1454 </dl>
1455 <h3 class="enumeration"><a id="cups_orient_e">cups_orient_e</a></h3>
1456 <p class="description">Orientation attribute values</p>
1457 <h4 class="constants">Constants</h4>
1458 <dl>
1459 <dt>CUPS_ORIENT_0 </dt>
1460 <dd class="description">Don't rotate the page</dd>
1461 <dt>CUPS_ORIENT_180 </dt>
1462 <dd class="description">Turn the page upside down</dd>
1463 <dt>CUPS_ORIENT_270 </dt>
1464 <dd class="description">Rotate the page clockwise</dd>
1465 <dt>CUPS_ORIENT_90 </dt>
1466 <dd class="description">Rotate the page counter-clockwise</dd>
1467 </dl>
1468 </div>
1469 </body>
1470 </html>