+ All Categories
Home > Documents > ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The...

ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The...

Date post: 09-Jun-2020
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
71
May 30, 2022 Working Draft The Printer Working Group PWG Raster Format Status: Prototype Abstract: This standard defines a simple raster format for printing, scanning, and facsimile. The format includes support for a set of standard and device color spaces and bit depths, and Copyright © 2011 The Printer Working Group. All rights reserved. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Transcript
Page 1: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

May 20, 2023

Working Draft

The Printer Working Group

PWG Raster Format

Status: Prototype

Abstract: This standard defines a simple raster format for printing, scanning, and facsimile. The format includes support for a set of standard and device color spaces and bit depths, and defines PWG Semantic Model elements and IPP attributes that enable a client to generate or request a supported raster stream.

This document is a PWG Working Draft. For a definition of a "PWG Working Draft ", see: ftp://ftp.pwg.org/pub/pwg/general/pwg-process30.pdf

Copyright © 2011 The Printer Working Group. All rights reserved.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15161718

1920

Page 2: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

May 20, 2023

Working Draft

The Printer Working Group

This document is available electronically at:

ftp://ftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docxftp://ftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.pdf

Copyright © 2011 The Printer Working Group. All rights reserved.

21

2223

Page 3: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Copyright © 2011 The Printer Working Group. All rights reserved.

This document may be copied and furnished to others, and derivative works that comment on, or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice, this paragraph and the title of the Document as referenced below are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the IEEE-ISTO and the Printer Working Group, a program of the IEEE-ISTO.

Title: PWG Raster Format

The IEEE-ISTO and the Printer Working Group DISCLAIM ANY AND ALL WARRANTIES, WHETHER EXPRESS OR IMPLIED INCLUDING (WITHOUT LIMITATION) ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

The Printer Working Group, a program of the IEEE-ISTO, reserves the right to make changes to the document without further notice. The document may be updated, replaced or made obsolete by other documents at any time.

The IEEE-ISTO takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights.

The IEEE-ISTO invites any interested party to bring to its attention any copyrights, patents, or patent applications, or other proprietary rights which may cover technology that may be required to implement the contents of this document. The IEEE-ISTO and its programs shall not be responsible for identifying patents for which a license may be required by a document and/or IEEE-ISTO Industry Group Standard or for conducting inquiries into the legal validity or scope of those patents that are brought to its attention. Inquiries may be submitted to the IEEE-ISTO by e-mail at: [email protected].

The Printer Working Group acknowledges that the IEEE-ISTO (acting itself or through its designees) is, and shall at all times, be the sole entity that may authorize the use of certification marks, trademarks, or other special designations to indicate compliance with these materials.

Page 3 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

1

2

24

25262728293031

32

33343536

373839

4041424344

45464748495051

52535455

Page 4: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Use of this document is wholly voluntary. The existence of this document does not imply that there are no other ways to produce, test, measure, purchase, market, or provide other goods and services related to its scope

Page 4 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

3

4

565758

Page 5: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

About the IEEE-ISTO

The IEEE-ISTO is a not-for-profit corporation offering industry groups an innovative and flexible operational forum and support services. The IEEE-ISTO provides a forum not only to develop standards, but also to facilitate activities that support the implementation and acceptance of standards in the marketplace. The organization is affiliated with the IEEE (http://www.ieee.org/) and the IEEE Standards Association (http://standards.ieee.org/).

For additional information regarding the IEEE-ISTO and its industry programs visit:

http://www.ieee-isto.org.

About the IEEE-ISTO PWG

The Printer Working Group (or PWG) is a Program of the IEEE Industry Standards and Technology Organization (ISTO) with member organizations including printer manufacturers, print server developers, operating system providers, network operating systems providers, network connectivity vendors, and print management application developers. The group is chartered to make printers and the applications and operating systems supporting them work together better. All references to the PWG in this document implicitly mean “The Printer Working Group, a Program of the IEEE ISTO.” In order to meet this objective, the PWG will document the results of their work as open standards that define print related protocols, interfaces, procedures and conventions. Printer manufacturers and vendors of printer related software will benefit from the interoperability provided by voluntary conformance to these standards.

In general, a PWG standard is a specification that is stable, well understood, and is technically competent, has multiple, independent and interoperable implementations with substantial operational experience, and enjoys significant public support.

For additional information regarding the Printer Working Group visit:

http://www.pwg.org

Contact information:

The Printer Working Groupc/o The IEEE Industry Standards and Technology Organization

Page 5 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

5

6

59

606162636465

66

67

68

6970717273747576777879

808182

83

84

85

8687

Page 6: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

445 Hoes LanePiscataway, NJ 08854USA

Page 6 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

7

8

888990

Page 7: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

About the Internet Printing Protocol Work Group

The Internet Printing Protocol (IPP) working group has developed a modern, full-featured network printing protocol, which is now the industry standard. IPP allows a print client to query a printer for its supported capabilities, features, and parameters to allow the selection of an appropriate printer for each print job. IPP also provides job information prior to, during, and at the end of job processing.

For additional information regarding IPP visit:

http://www.pwg.org/ipp/

Implementers of this specification are encouraged to join the IPP mailing list in order to participate in any discussions of the specification. Suggested additions, changes, or clarification to this specification, should be sent to the IPP mailing list for consideration.

Page 7 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

9

10

91

9293949596

97

98

99100101

Page 8: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Table of Contents

1. Introduction......................................................................................................................7

2. Terminology.....................................................................................................................8

2.1 Conformance Terminology.........................................................................................8

2.2 Other Terminology.....................................................................................................8

2.3 Representation of Octets in Examples.......................................................................8

3. Requirements..................................................................................................................9

3.1 Rationale for the PWG Raster Format.......................................................................9

3.2 Use Cases...............................................................................................................10

3.2.1 Mobile Printing to Low Cost InkJet....................................................................10

3.2.2 Desktop Printing to Low Cost Workgroup Printer..............................................10

3.2.3 Printing Envelopes and Content in a Single Document.....................................10

3.2.4 Printing Using Legacy Interfaces.......................................................................10

3.3 Out of Scope............................................................................................................11

3.4 Design Requirements..............................................................................................11

4. PWG Raster Format......................................................................................................12

4.1 File Organization......................................................................................................12

4.2 Synchronization Word..............................................................................................12

4.3 Page Header............................................................................................................12

4.3.1 Data Types........................................................................................................14

4.3.2 Bitmap Fields.....................................................................................................18

4.3.3 Job Ticket Fields...............................................................................................21

Page 8 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

11

12

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

Page 9: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4.4 Page Bitmap............................................................................................................23

4.4.1 Sample Gray Bitmap.........................................................................................24

4.4.2 Sample sRGB Bitmap........................................................................................24

4.4.3 Sample DeviceCMYK Bitmap............................................................................25

5. Semantic Model Elements.............................................................................................27

5.1 New <service>ServiceDescription Elements...........................................................27

5.1.1 PwgRasterDocumentSheetBack.......................................................................28

5.1.2 PwgRasterDocumentResolutionSupported.......................................................28

5.1.3 PwgRasterDocumentTypeSupported................................................................29

6. Conformance Requirements..........................................................................................31

6.1 PWG Raster Consumer Requirements....................................................................31

6.2 PWG Raster Producer Requirements......................................................................31

6.3 Generic Printer Conformance Requirements...........................................................31

6.4 Generic Client Conformance Requirements............................................................31

6.5 IPP Printer Conformance Requirements..................................................................32

6.6 IPP Client Conformance Requirements...................................................................32

7. Internationalization Considerations................................................................................33

8. Security Considerations.................................................................................................33

9. IANA Considerations.....................................................................................................33

9.1 MIME Media Type Registration................................................................................33

9.2 Attribute Registrations..............................................................................................34

9.3 Attribute Value Registrations....................................................................................35

10. IPP Printer Description Attributes................................................................................36

Page 9 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

13

14

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

Page 10: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

10.1 pwg-raster-document-resolution-supported (1setOf resolution).............................36

10.2 pwg-raster-document-sheet-back (type2 keyword)................................................36

10.3 pwg-raster-document-type-supported (1setOf type2 keyword)..............................36

11. References..................................................................................................................37

11.1 Normative References...........................................................................................37

11.2 Informative References..........................................................................................38

12. Author's Address.........................................................................................................38

13. Change History............................................................................................................40

13.1 December 2, 2011.................................................................................................40

13.2 July 30, 2011..........................................................................................................40

13.3 March 27, 2011......................................................................................................40

13.4 March 26, 2011......................................................................................................41

13.5 February 23, 2011..................................................................................................41

13.6 January 26, 2011...................................................................................................41

13.7 January 24, 2011...................................................................................................41

List of Figures

Figure 1 - PWG Raster File Organization..........................................................................12

Figure 2 - Sample Gray Bitmap.........................................................................................24

Figure 3 - Sample Color Bitmap........................................................................................25

Page 10 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

15

16

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

Page 11: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Figure 4 - New <service>ServiceDescription Elements.....................................................27

Figure 5 - PwgRasterDocumentSheetBack and Sides......................................................28

List of Tables

Table 1 - PWG Raster Page Header.................................................................................13

Table 2 - ColorOrderEnum Values....................................................................................15

Table 3 - ColorSpaceEnum Values...................................................................................15

Table 4 - EdgeEnum Values..............................................................................................16

Table 5 - MediaPositionEnum Values................................................................................16

Table 6 - OrientationEnum Values.....................................................................................17

Table 7 - WhenEnum Values.............................................................................................18

Table 8 - Supported Duplex and Tumble Values...............................................................21

Table 9 - New Service Description Elements....................................................................27

Table 10 - PwgRasterDocumentTypeSupported Keyword Values....................................29

Table 11 - IPP Printer Description Attributes.....................................................................36

Page 11 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

17

18

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

Page 12: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

1. Introduction

Historically, printer manufacturers have used a variety of proprietary or device-specific variants of industry standard page description languages (PDLs) to support printing, leading to the proliferation of so-called "printer driver" software for every supported operating system and/or platform.

The charter of the PWG IPP Everywhere project [CHARTER] includes the definition of a PWG raster format that can be used for printing, facsimile, and scanning from limited resource clients and printers. After performing a detailed analysis [ANALYSIS], CUPS Raster was chosen because it meets all of the design requirements and uses the fewest resources of the raster file formats considered.

This standard defines a proper subset of CUPS Raster [CUPSRASTER] to serve as the PWG Raster format and includes support for a set of standard and device Color Spaces and bit depths, defines PWG Semantic Model elements and IPP attributes that enable a client to generate or request a supported raster stream for a printer, and registers a new MIME media type and the corresponding IPP attributes with IANA.

Page 12 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

19

20

191

192193194195

196197198199200

201202203204205

206

Page 13: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

2. Terminology

2.1 Conformance Terminology

Capitalized terms, such as MUST, MUST NOT, REQUIRED, SHOULD, SHOULD NOT, MAY, and OPTIONAL, have special meaning relating to conformance as defined in RFC 2119 [RFC2119].

2.2 Other Terminology

Color Component; an individual element or channel for a Color Space or Pixel, for example “Red”, “Green” and “Blue” are Color Components of the “RGB” Color Space.

Color Order; the order of Color Components within the Page Bitmap. These Color Orders are called “Chunked”, “Banded”, and “Planar” in the CUPS Raster Format specification [CUPSRASTER].

Color Space; the interpretation of Pixel color in a page bitmap, for example “RGB”, “Grayscale”, “CMYK”, and so forth.

CUPS Raster; the image file format defined by [CUPSRASTER].

PackBits; a simple run-length encoding algorithm for data compression. Each sequence is encoded as a series of repeated or non-repeated Pixels.

Page Bitmap; a rectangular grid of Pixels.

Page Header; the binary Job Ticket dictionary of Adobe PostScript and raster key values for a Page Bitmap.

Pixel; a set of Color Components representing a single grid point in a Page Bitmap.

2.3 Representation of Octets in Examples

Throughout this specification, octets are represented using pairs of hexadecimal digits prefixed by the string "0x". Multiple contiguous octets may also be combined into a short form similar to that defined in RFC 5234 [RFC5234] with the "0x" prefix replaced by a

Page 13 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

21

22

207

208

209210211

212

213214

215216217

218219

220

221222

223

224225

226

227

228229230

Page 14: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

period ("."), for example 0x12 and 0x34 may be combined as 0x12.34. The short form is used to group related octets for clarity.

3. Requirements

3.1 Rationale for the PWG Raster Format

The PWG IPP Everywhere project requires a standard raster format for printing, facsimile, and scanning of multiple-page documents without printer-specific driver software. High-level PDLs such as Adobe PostScript [POSTSCRIPT], OpenXPS [OPENXPS], and PDF [ISO32000] are sufficiently generic to be used for basic printing, however they require significant resources in the printer and can be difficult to generate and stream from some environments. Existing standard bitmap image formats have issues as well:

JPEG: Lossy compression, no multi-page support JPEG 2000: Lossy compression, no multi-page support, resource-intensive MNG: Resource-intensive and not widely implemented or supported PDF/is: Lossy compression, can be resource-intensive, not widely implemented PNG: No multi-page support, resource-intensive TIFF: Can be resource-intensive, hard to stream, multiple format variants

CUPS Raster [CUPSRASTER] is a simple bitmap container to support printing, facsimile, and scanning on all types of printers. It provides the following features:

Support for multiple pages Support for standard color spaces backed by existing ICC color profiles Support for device color spaces backed by printer- or user-supplied ICC color

profiles Adaptable byte order for encoding and decoding A single, lossless compression algorithm that is space, memory, and processor

efficient Per-page Job Ticket information based on the Adobe PostScript page device

dictionary An easily streamable encoding

CUPS Raster has been used over existing print data transports such as the Internet Printing Protocol (IPP) since 1999. CUPS Raster can also be further reduced in size using

Page 14 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

23

24

231232

233

234

235236237238239240

241242243244245246

247248

249250251252253254255256257258

259260

Page 15: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

HTTP or IPP compression algorithms such as Compress and Flate when supported by the client and printer.

However, CUPS Raster supports many more Color Spaces, Color Orders, bit depths, and byte orders than are needed for a modern printer. Moreover, the Adobe PostScript page device dictionary does not map cleanly to IPP or the PWG Semantic Model, leading to additional complexities that would make interoperability difficult.

By defining a proper subset of CUPS Raster, we both enable support for a new class of printer without the use of printer- and platform-specific driver software in the client and greatly reduce the number of variables for interoperability. And by defining which page header fields are mapped to/from PWG Job Ticket elements we also enable a low-cost solution for per-page overrides embedded within a document.

3.2 Use Cases

3.2.1 Mobile Printing to Low Cost InkJet

Jane has a smart phone with Wi-Fi capability and a built-in camera. She prints photos from her phone to a low-cost Wi-Fi inkjet printer. Both the client (phone) and printer have limited memory and processor resources. The printer supports basic raster printing on a variety of media types and sizes.

During printing, her client software queries the printer for supported media, resolutions, and raster modes, produces a printer-ready raster representation of the photo for the selected media, and streams it to the printer for output.

3.2.2 Desktop Printing to Low Cost Workgroup Printer

John has a desktop PC he uses to write whitepapers and other business documents. He prints these documents to a low-cost Ethernet workgroup laser printer with three paper trays and a duplexing accessory. The printer has enough memory to hold a partial image of one side of a sheet.

During printing, his client software queries the printer for supported media, resolutions, raster modes, and duplex support, produces printer-ready raster pages of the documents, and streams them to the printer for output.

Page 15 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

25

26

261262

263264265266

267268269270271

272

273

274275276277

278279280

281

282283284285

286287288

Page 16: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

3.2.3 Printing Envelopes and Content in a Single Document

Mary is sending acceptance letters to new students at a college. She prints the letters and envelopes using a mail merge program. The printer has stationery and envelopes loaded.

During printing, her client software embeds per-page overrides for media in order to alternate between envelopes and letters. Once completed, she folds and stuffs the envelopes with the corresponding letters and mails them to the new students.

3.2.4 Printing Using Legacy Interfaces

Justin has a desktop PC and a low-end InkjJet printer implementing the standard USB printer class. When he connected the printer to the PC, the operating system automatically added a print queue with the correct driver for the printer.

Justin prints photos and documents from a variety of applications on his PC. The printing software on his PC converts those photos and documents into an intermediate raster format to send to the printer.

3.3 Out of Scope

The following items are considered out of scope for this specification:

1. Definition of a new file format; we want to minimize the proliferation of file formats and reuse existing formats whenever possible.

2. Extensions to the CUPS Raster format; we want to minimize the proliferation of file formats and reuse the existing CUPS Raster format by defining a simple, backwards-compatible subset of the format for basic raster printing, scanning, and facsimile.

3. Definition of transport protocols, interfaces, or security extensions to be used with the PWG Raster Format.

4. Use of the PWG Raster Format over legacy interfaces.

3.4 Design Requirements

The use cases in section 3.2 identify several design requirements:

1. Since both the client and printer may have limited memory, a raster format for printing, scanning, or facsimile must be streamable to minimize buffering.

Page 16 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

27

28

289

290291

292293294

295

296297298

299300301

302

303

304305306307308309310311312

313

314

315316

Page 17: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

2. Because the printer may have limited memory, the client must be able to discover the supported raster resolutions and how to provide duplex page images – no flip, X flip, Y flip, or rotation by 180 degrees (both X and Y flip) - so that the printer does not need to perform expensive transformations of the client-supplied images.

3. Because the client and printer may not have sophisticated color management capabilities, standard color spaces should be used to foster improved color fidelity.

In addition, the following items should be considered when selecting the raster format:

1. Some form of data compression should be used to limit network bandwidth usage. Text printing favors lossless compression algorithms to preserve edge detail and resource limitations require simpler compression algorithms.

2. A bi-level imaging mode may be useful when printing text and line art.3. The order of multi-octet values should be predefined to limit the complexity of

implementations.4. While a printer may have limited space for color tables, it should still be possible

to support a managed color workflow when both the client and printer are capable. This generally requires some sort of device color space support.

Page 17 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

29

30

317318319320321322323324

325

326327328329330331332333334335

Page 18: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4. PWG Raster Format

The CUPS Raster specification [CUPSRASTER] defines three format variants for the MIME media type “application/vnd.cups-raster”. The following subsections define the subset of the CUPS Raster v2 format used for the MIME media type “image/pwg-raster”.

4.1 File Organization

Figure 1 - PWG Raster File Organization shows the general organization of every PWG Raster file. Each file begins with a 32-bit synchronization word followed by zero or more pages. Each page consists of a header followed by the bitmap image for the page. The bitmap image is compressed using a PackBits-like algorithm to reduce file size without significant overhead. Integer values larger than 8-bits are specified in network byte order.

4.2 Synchronization Word

The synchronization word is a 32-bit unsigned integer with the value 0x52.61.53.32 (“RaS2”).

Page 18 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

Synchronization Word

Page 1 (Header + Bitmap)

Page 2 (Header + Bitmap)

...

Page N (Header + Bitmap)

31

32

336

337338339

340

341342343344345

346

347348

349

Page 19: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Figure 1 - PWG Raster File Organization

4.3 Page Header

Table 1 - PWG Raster Page Header describes the 1796-octet page header that appears at the beginning of each page. Most of the fields in the header are derived from the Adobe PostScript page device dictionary [POSTSCRIPT]. All reserved fields MUST be 0.

Table 1 - PWG Raster Page Header

Bytes Type Name PWG SM Element

0-63 CString PwgRaster

64-127 CString MediaColor MediaCol

128-191 CString MediaType MediaCol

192-255 CString PrintContentOptimize PrintContentOptimize

256-267 Reserved Reserved

268-271 WhenEnum CutMedia Finishings

272-275 Boolean Duplex Sides

276-283 UnsignedInteger x 2 HWResolution PwgRasterDocument ResolutionSupported

284-299 Reserved Reserved

300-303 Boolean InsertSheet InsertSheet

304-307 WhenEnum Jog Finishings

308-311 EdgeEnum LeadingEdge FeedDirection

312-323 Reserved Reserved

324-327 MediaPositionEnum MediaPosition MediaCol

328-331 UnsignedInteger MediaWeight MediaCol

332-339 Reserved Reserved

340-343 UnsignedInteger NumCopies Copies

Page 19 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

33

34

350

351

352353354

355

Page 20: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Bytes Type Name PWG SM Element

344-347 OrientationEnum Orientation OrientationRequested

348-351 Reserved Reserved

352-359 UnsignedInteger x 2 PageSize MediaCol

360-367 Reserved Reserved

368-371 Boolean Tumble Sides

372-375 UnsignedInteger Width MediaCol, PwgRasterDocument ResolutionsSupported, Resolution

376-379 UnsignedInteger Height MediaCol, PwgRasterDocument ResolutionsSupported, Resolution

380-383 Reserved Reserved

384-387 UnsignedInteger BitsPerColor PrintColorMode, PwgRasterDocument TypesSupported, Quality

388-391 UnsignedInteger BitsPerPixel PrintColorMode, PwgRasterDocument TypesSupported, Quality

392-395 UnsignedInteger BytesPerLine MediaCol, PrintColorMode, PwgRasterDocument ResolutionsSupported, PwgRasterDocument TypesSupported, Quality, Resolution

Page 20 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

35

36

Page 21: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Bytes Type Name PWG SM Element

396-399 ColorOrderEnum ColorOrder

400-403 ColorSpaceEnum ColorSpace PrintColorMode, PwgRasterDocument TypesSupported

404-419 Reserved Reserved

420-423 UnsignedInteger NumColors PrintColorMode, PwgRasterDocument TypesSupported

424-451 Reserved Reserved

452-455 UnsignedInteger TotalPageCount Impressions

456-459 Integer CrossFeedTransform PwgRasterDocument SheetBack, Sides

460-463 Integer FeedTransform PwgRasterDocument SheetBack, Sides

464-467 UnsignedInteger ImageBoxLeft MediaCol, PwgRasterDocument ResolutionsSupported, PwgRasterDocument SheetBack, Resolution

468-471 UnsignedInteger ImageBoxTop MediaCol, PwgRasterDocument ResolutionsSupported, PwgRasterDocument SheetBack, Resolution

472-475 UnsignedInteger ImageBoxRight MediaCol, PwgRasterDocument ResolutionsSupported, PwgRasterDocument SheetBack, Resolution

476-479 UnsignedInteger ImageBoxBottom MediaCol, PwgRasterDocument

Page 21 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

37

38

Page 22: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Bytes Type Name PWG SM Element

ResolutionsSupported, PwgRasterDocument SheetBack, Resolution

480-483 SrgbColor BlackPrimary

484-487 PrintQualityEnum PrintQuality Quality

488-507 Reserved Reserved

508-511 UnsignedInteger VendorIdentifier

512-515 UnsignedInteger VendorLength

516-1603 VendorData VendorData

1604-1667 Reserved Reserved

1668-1731 CString RenderingIntent PrintRenderingIntent

1732-1795 CString PageSizeName Media, MediaCol

4.3.1 Data Types

The page header utilizes several data types described in the following subsections.

4.3.1.1 Boolean

Boolean fields are 32-bit unsigned (one's complement) integers with a value of 0 (false) or 1 (true).

4.3.1.2 CString

CString fields are 64-octets in length containing up to 63 US ASCII characters followed by an ASCII NUL (0).

4.3.1.3 ColorOrderEnum

ColorOrderEnum fields are 32-bit unsigned (one's complement) integers containing one the values listed in Table 2.

Table 2 - ColorOrderEnum ValuesPage 22 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

39

40

356

357

358

359360

361

362363

364

365366

367

Page 23: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Value Keyword Description

0 Chunky Chunky pixels, e.g. CMYK CMYK CMYK ...

4.3.1.4 ColorSpaceEnum

ColorSpaceEnum fields are 32-bit unsigned (one's complement) integers containing one of the values listed in Table 3.

Table 3 - ColorSpaceEnum Values

Value Keyword Description

3 Black Device black

6 Cmyk Device CMYK (cyan magenta yellow black)

18 Sgray sRGB grayscale

19 Srgb sRGB color

20 AdobeRgb Adobe RGB color

48 Device1 Device color, 1 colorant

49 Device2 Device color, 2 colorants

50 Device3 Device color, 3 colorants

51 Device4 Device color, 4 colorants

52 Device5 Device color, 5 colorants

53 Device6 Device color, 6 colorants

54 Device7 Device color, 7 colorants

55 Device8 Device color, 8 colorants

56 Device9 Device color, 9 colorants

57 Device10 Device color, 10 colorants

Page 23 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

41

42

368

369

370371

372

Page 24: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Value Keyword Description

58 Device11 Device color, 11 colorants

59 Device12 Device color, 12 colorants

60 Device13 Device color, 13 colorants

61 Device14 Device color, 14 colorants

62 Device15 Device color, 15 colorants

4.3.1.5 EdgeEnum

EdgeEnum fields are 32-bit unsigned (one's complement) integers containing one of the values listed in Table 4.

Table 4 - EdgeEnum Values

Value Keyword Description

0 ShortEdgeFirst

The short edge of the media is first.

1 LongEdgeFirst The long edge of the media is first.

4.3.1.6 Integer

Integer fields are 32-bit signed (two's complement) integers.

4.3.1.7 MediaPositionEnum

MediaPositionEnum fields are 32-bit unsigned (one's complement) integers containing one of the values listed in Table 5.

Table 5 - MediaPositionEnum Values

Value Keyword Description

0 Auto Default or automatically selected source.

Page 24 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

43

44

373

374375

376

377

378

379

380381

382

Page 25: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Value Keyword Description

1 Main The primary or main source.

2 Alternate The secondary or alternate source.

3 LargeCapacity The large capacity source.

4 Manual The manual feed source.

5 Envelope The envelope feed source.

6 Disc The CD/DVD/Bluray disc source.

7 Photo The photo media source.

8 Hagaki The Hagaki media source.

9 MainRoll The primary or main roll.

10 AlternateRoll The secondary or alternate roll.

11 Top The topmost source.

12 Middle The middle source.

13 Bottom The bottommost source.

14 Side The side source.

15 Left The leftmost source.

16 Right The rightmost source.

17 Center The center source.

18 Rear The rear source.

20 Tray1 Tray 1.

21 Tray2 Tray 2.

22 Tray3 Tray 3.

23 Tray4 Tray 4.

24 Tray5 Tray 5.

Page 25 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

45

46

Page 26: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Value Keyword Description

25 Tray6 Tray 6.

26 Tray7 Tray 7.

27 Tray8 Tray 8.

28 Tray9 Tray 9.

29 Tray10 Tray 10.

30 Tray11 Tray 11.

31 Tray12 Tray 12.

32 Tray13 Tray 13.

33 Tray14 Tray 14.

34 Tray15 Tray 15.

35 Tray16 Tray 16.

36 Tray17 Tray 17.

37 Tray18 Tray 18.

38 Tray19 Tray 19.

39 Tray20 Tray 20.

40 Roll1 Roll 1.

41 Roll2 Roll 2.

42 Roll3 Roll 3.

43 Roll4 Roll 4.

44 Roll5 Roll 5.

45 Roll6 Roll 6.

46 Roll7 Roll 7.

47 Roll8 Roll 8.

Page 26 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

47

48

Page 27: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Value Keyword Description

48 Roll9 Roll 9.

49 Roll10 Roll 10.

4.3.1.8 OrientationEnum

OrientationEnum fields are 32-bit integers containing the one of the values listed in Table6.

Table 6 - OrientationEnum Values

Value Keyword Description

0 Portrait Not rotated

1 Landscape Rotated 90 degrees counter-clockwise

2 ReversePortrait Rotated 180 degrees

3 ReverseLandscape Rotated 90 degrees clockwise

4.3.1.9 PrintQualityEnum

PrintQualityEnum fields are 32-bit integers containing the value 0 to represent the default print quality or a value of 3, 4, or 5 corresponding to the IPP "print-quality" attribute values for draft, normal, and high quality.

4.3.1.10 Reserved

Reserved fields are a sequence of octets initialized to the value 0.

4.3.1.11 SrgbColor

SrgbColor fields are 32-bit integers containing a 24-bit sRGB color value. The upper 8 bits are 0, followed by 8 bits of red, 8 bits of green, and 8 bits of blue.

Page 27 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

49

50

383

384385

386

387

388389390

391

392

393

394395

Page 28: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4.3.1.12 UnsignedInteger

UnsignedInteger fields are 32-bit unsigned (one's complement) integers.

4.3.1.13 VendorData

VendorData fields are a sequence of octets containing vendor-specific data.

4.3.1.14 WhenEnum

WhenEnum fields are 32-bit unsigned (one's complement) integers containing one of the values listed in Table 7.

Table 7 - WhenEnum Values

Value Keyword Description

0 Never Never apply feature.

1 AfterDocument Apply feature after current document/file.

2 AfterJob Apply feature after current job.

3 AfterSet Apply feature after current set/copy.

4 AfterPage Apply feature after current page.

4.3.2 Bitmap Fields

4.3.2.1 HWResolution

The HWResolution field consists of two integers representing the cross-feed and feed resolutions of the page bitmap in pixels (dots) per inch and MUST be initialized to one of the supported values reported by the "PwgRasterDocumentResolutionSupported" element in the <service>ServiceDescription group.

4.3.2.2 LeadingEdge

The LeadingEdge field MUST be initialized to 0 if the "FeedDirection" value for the given media or input tray is 'ShortEdgeFirst' and 1 if the value is 'LongEdgeFirst'.

Page 28 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

51

52

396

397

398

399

400

401402

403

404

405

406407408409

410

411412

Page 29: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4.3.2.3 Width and Height

The Width and Height fields MUST be initialized to the full width and height of the current page in addressable units as defined by the HWResolution field. Thus, each page bitmap provides a "full bleed" page image. The choice of values MAY be influenced by the values of the "PrintColorMode", "Quality", and "Resolution" elements in the <service>DocumentProcessing group.

4.3.2.4 BitsPerColor, BitsPerPixel, ColorSpace, and NumColors

The BitsPerColor, BitsPerPixel, ColorSpace, and NumColors fields MUST be initialized to values corresponding to a “PwgRasterDocumentTypesSupported” value, as defined in Table 10 - PwgRasterDocumentTypeSupported Keyword Values. The choice of values MAY be influenced by the values of the "PrintColorMode", "Quality", and "Resolution" elements in the <service>DocumentProcessing group.

Page 29 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

53

54

413

414415416417418

419

420421422423424

425

Page 30: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4.3.2.5 BytesPerLine

The BytesPerLine field MUST be initialized to the number of octets for a single uncompressed line in the page bitmap, as described by the following formula:

BytesPerLine = TRUNCATE((BitsPerPixel * Width + 7) / 8)

4.3.2.6 TotalPageCount

The TotalPageCount field specifies the number of pages in the entire file or 0 if the total number of pages is not known when the file is produced and corresponds to the "Impressions" element in the <service>JobDescription group.

4.3.2.7 CrossFeedTransform and FeedTransform

The CrossFeedTransform and FeedTransform fields specify the orientation of the page bitmap in the CrossFeed and Feed directions, respectively. Values of 1 indicate normal orientation, typically left-to-right for the CrossFeed and top-to-bottom for the Feed directions, while values of -1 indicate reversed orientation, typically right-to-left and bottom-to-top respectively. The values are determined using the value of the "Sides" element in the <service>DocumentProcessing group and the value of the "PwgRasterDocumentSheetBack" element in the <service>ServiceDescription group.

These fields are used to convey the coordinate system used for the backside image for duplex printing or scanning - page bitmaps MUST always be produced using the printer's "native" coordinate system to minimize resource requirements on the printer.

4.3.2.8 ImageBoxLeft, ImageBoxTop, ImageBoxRight, and ImageBoxBottom

The ImageBoxLeft, ImageBoxTop, ImageBoxRight, and ImageBoxBottom fields specify the area, in pixels, that contains non-empty content and corresponds directly to the ImageBox element in the PWG Semantic Model. Pixels are measured from the beginning of the page bitmap, so the coordinates reflect the orientation specified by the XFeedTransform and FeedTransform fields.

All fields MUST have the value 0 if the ImageBox is unknown.

Page 30 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

55

56

426

427428

429

430

431432433

434

435436437438439440441

442443444

445

446447448449450

451

Page 31: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4.3.2.9 BlackPrimary

The BlackPrimary field specifies the "black" color to use for (device) black page bitmaps as an sRGB color value. Black values are mapped from no ink (typically on a white media) to the specified sRGB color or to a single black colorant when BlackPrimary is 0.

4.3.2.10 VendorIdentifier, VendorLength, and VendorData

The VendorIdentifier, VendorLength, and VendorData fields allow a vendor to embed arbitrary data in a page header. They should be initialized to the value 0 when not used.

The VendorIdentifier field contains to the USB vendor identification number for the vendor providing the data.

The VendorLength field specifies the number of octets that are used in the VendorData field.

The VendorData field contains the vendor octets.

4.3.3 Job Ticket Fields

The job ticket fields in a page header allow the Client to supply basic job ticket information inline with the document data.

Most features supported by the job ticket fields require the printer to do logical grouping. For example, when printing duplex pages the printer MUST treat pairs of pages as the sides of a single media sheet, finishing and output bin values apply to any run of pages with the same job ticket field values, and so forth.

Printers MUST support pages with different job ticket field values to support common mail merge and automation use cases where a mix of normal pages, letterhead, and envelopes may be present in a single file.

4.3.3.1 Collate

This field indicates whether copies should be collated and corresponds to the "MultipleDocumentHandling" element of the <service>JobProcessing group.

Page 31 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

57

58

452

453454455

456

457458

459460

461462

463

464

465466

467468469470

471472473

474

475476

Page 32: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4.3.3.2 CutMedia

This field indicates whether output should be trimmed (cut) and corresponds to the 'Trim' values in the "JobFinishings" element of the <service>JobProcessing group.

4.3.3.3 Duplex and Tumble

These fields specify the duplex printing mode for the current page. Table 8 lists the supported combinations for a given value of the "Sides" element in the <service>DocumentProcessing group.

Table 8 - Supported Duplex and Tumble Values

Duplex Tumble Sides

FALSE (0) FALSE (0) OneSided

TRUE (1) FALSE (0) TwoSidedLongEdge

TRUE (1) TRUE (1) TwoSidedShortEdge

4.3.3.4 InsertSheet

This field specifies whether to insert a single blank sheet prior to the current page, using the media defined by the current page header and corresponds to the Semantic Model element of the same name in the <service>DocumentProcessing group.

4.3.3.5 Jog

This field specifies whether to jog (offset) pages in the output bin and corresponds to the 'JogOffset' values in the "JobFinishings" element of the <service>JobProcessing group.

4.3.3.6 MediaColor

This field specifies the media color name corresponding to the "MediaColor" sub-element of the "MediaCol" sub-group of the <service>DocumentProcessing group. When the empty string, the default media color is used.

Page 32 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

59

60

477

478479

480

481482483

484

485

486487488

489

490491

492

493494495

Page 33: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4.3.3.7 MediaPosition

This field specifies the media input tray or source corresponding to the "MediaSource" element and "MediaSource" sub-element of the "MediaCol" sub-group of the <service>DocumentProcessing group. Table 5 provides a list of MediaPosition values with their corresponding "MediaSource" values. When 0, the default media source is used.

4.3.3.8 MediaType

This field specifies the media type name corresponding to the "MediaType" element and "MediaType" sub-element of the "MediaCol" sub-group of the <service>DocumentProcessing group. When the empty string, the default media type is used.

4.3.3.9 MediaWeight

This field specifies the media weight in grams per square meter and corresponds to the "MediaWeight" sub-element of the "MediaCol" sub-group of the <service>DocumentProcessing group. When 0, the default media weight is used.

4.3.3.10 NumCopies

This field specifies the number of copies of the current page to produce and corresponds to the "Copies" element of the <service>DocumentProcessing group. When 0, the default number of copies is used.

4.3.3.11 Orientation

This field specifies the orientation of the page and corresponds to the "OrientationRequested" element of the <service>DocumentProcessing group.

4.3.3.12 PageSize and PageSizeName

The PageSize field specifies the width and length of the current page in points. When the width and length are 0 the default media size is used, typically as defined by the Width, Height, and HWResolution fields for the page bitmap. The PageSize field corresponds to the "MediaSize" sub-group of the "MediaCol" sub-group of the <service>DocumentProcessing group.

Page 33 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

61

62

496

497498499500

501

502503504505

506

507508509

510

511512513

514

515516

517

518519520521522

Page 34: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

The PageSizeName field specifies a named size as defined by the PWG Standard for Media Standardized Names [PWG5101.1]. When the empty string, the default media size is used. The PageSizeName field corresponds to the "Media" element and "MediaSizeName" sub-element of the "MediaCol" sub-group of the <service>DocumentProcessing group.

4.3.3.13 PrintContentOptimize

This field specifies the general document type corresponding to the "PrintContentOptimize" element of the <service>DocumentProcessing group.

4.3.3.14 PrintQuality

This field specifies the relative print quality for the page and corresponds to the "Quality" element of the <service>DocumentProcessing group. Valid values are 0 for the default print quality, 3 for draft quality, 4 for normal quality, and 5 for high quality.

4.3.3.15 RenderingIntent

The RenderingIntent field specifies the colorimetric rendering intent for the page and corresponds to the "PrintRenderingIntent" element of the <service>DocumentProcessing group. When the empty string, the default rendering intent is used.

4.4 Page Bitmap

The page bitmap is compressed using a PackBits-like algorithm. Pixel color values are packed into an integral number of octets. 8 pixel color values are packed into a single octet for compression when BitsPerPixel is 1.

Each line of raster data begins with a repetition count from 1 to 256 that is encoded using a single octet containing "count - 1".

After the repetition count, whole color values for that line are run-length encoded using a PackBits-like run-length encoding algorithm: 1 to 128 repeated colors are encoded using an initial octet containing "count - 1" followed by the color value octet(s) while 2 to 128 non-repeating colors are encoded using an initial octet containing "257 - count" followed by the color value octet(s).

Page 34 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

63

64

523524525526527

528

529530

531

532533534

535

536537538

539

540541542

543544

545546547548549

Page 35: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4.4.1 Sample Gray Bitmap

The 23x8 1-bit sGray image shown in Figure 2 would be encoded as the following 21 octets.

0x00 0xFE.8F.78.F70x00 0xFE.76.77.670x03 0x02.770x00 0xFE.8E.38.E30x00 0x02.FF

Figure 2 - Sample Gray Bitmap

The unused trailing bits (1 bit in this example) can have any value, and in this example we use a value of 1 to improve the compression slightly.

The first line (0x00) is a sequence of three octets (0xFE.8F.78.F7).

The second line (0x00) is another sequence of three octets (0xFE.76.77.67).

The third through sixth lines (0x03) contain a sequence of three repeated octets (0x02.77).

The seventh line (0x00) is a sequence of three octets (0xFE.8E.38.E3).

The last line (0x00) is a sequence of three repeated octets (0x02.FF).

4.4.2 Sample sRGB Bitmap

The 8x8 24-bit sRGB image shown in would be encoded as the following 87 octets:

Page 35 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

65

66

550

551552

553554555556557

558

559

560561

562

563

564565

566

567

568

569

Page 36: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

0x00 0x00.FF.FF.FF 0x02.FF.FF.00 0x03.FF.FF.FF0x00 0xFE.FF.FF.00.00.00.FF.FF.FF.00 0x02.FF.FF.FF 0xFF.00.FF.00.FF.FF.FF0x00 0x01.FF.FF.00 0x02.FF.FF.FF 0x02.00.FF.000x00 0x02.FF.FF.00 0x02.FF.FF.FF 0xFF.00.FF.00.FF.FF.FF0x00 0x00.FF.FF.FF 0x02.FF.FF.00 0x03.FF.FF.FF0x00 0x07.FF.FF.FF0x01 0x07.FF.00.00

Figure 3 - Sample Color Bitmap

The first line (0x00) contains 1 white pixel (0x00.FF.FF.FF), 3 yellow pixels (0x02.FF.FF.00), and 4 white pixels (0x03.FF.FF.FF).

The second line (0x00) contains a sequence of yellow + blue + yellow pixels (0xFE.FF.FF.00.00.00.FF.FF.FF.00), 3 white pixels (0x02.FF.FF.FF), and a sequence of green + white pixels (0xFF.00.FF.00.FF.FF.FF).

The third line (0x00) contains 2 yellow pixels (0x01.FF.FF.00), 3 white pixels (0x02.FF.FF.FF), and 3 green pixels (0x02.00.FF.00).

The fourth line (0x00) contains 3 yellow pixels (0x02.FF.FF.00), 3 white pixels (0x02.FF.FF.FF), and a sequence of green + white pixels (0xFF.00.FF.00.FF.FF.FF).

The fifth line (0x00) contains 1 white pixel (0x00.FF.FF.FF), 3 yellow pixels (0x02.FF.FF.00), and 4 white pixels (0x03.FF.FF.FF).

The sixth line (0x00) contains 8 white pixels (0x07.FF.FF.FF).

The seventh and eighth lines (0x01) contain 8 red pixels (0x07.FF.00.00).

Page 36 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

67

68

570571572573574575576

577

578

579

580581

582583584

585586

587588

589590

591

592

Page 37: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

4.4.3 Sample DeviceCMYK Bitmap

The 8x8 24-bit DeviceCMYK image shown in would be encoded as the following 108 octets:

0x00 0x00.00.00.00.00 0x02.00.00.FF.00 0x03.00.00.00.000x00 0xFE.00.00.FF.00.FF.FF.00.00.00.00.FF.00 0x02.00.00.00.00

0xFF.FF.00.FF.00.00.00.00.000x00 0x01.00.00.FF.00 0x02.00.00.00.00 0x02.FF.00.FF.000x00 0x02.00.00.FF.00 0x02.00.00.00.00 0xFF.FF.00.FF.00.00.00.00.000x00 0x00.00.00.00.00 0x02.00.00.FF.00 0x03.00.00.00.000x00 0x07.00.00.00.000x01 0x07.00.FF.FF.00

The first line (0x00) contains 1 white pixel (0x00.00.00.00.00), 3 yellow pixels (0x02.00.00.FF.00), and 4 white pixels (0x03.00.00.00).

The second line (0x00) contains a sequence of yellow + blue + yellow pixels (0xFE.00.00.FF.00.FF.FF.00.00.00.00.FF.00), 3 white pixels (0x02.00.00.00.00), and a sequence of green + white pixels (0xFF.FF.00.FF.00.00.00.00.00).

The third line (0x00) contains 2 yellow pixels (0x01.00.00.FF.00), 3 white pixels (0x02.00.00.00.00), and 3 green pixels (0x02.FF.00.FF.00).

The fourth line (0x00) contains 3 yellow pixels (0x02.00.00.FF.00), 3 white pixels (0x02.00.00.00.00), and a sequence of green + white pixels (0xFF.FF.00.FF.00.00.00.00.00).

The fifth line (0x00) contains 1 white pixel (0x00.00.00.00.00), 3 yellow pixels (0x02.00.00.FF.00), and 4 white pixels (0x03.00.00.00.00).

The sixth line (0x00) contains 8 white pixels (0x07.00.00.00.00).

The seventh and eighth lines (0x01) contain 8 red pixels (0x07.00.FF.FF.00).

Page 37 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

69

70

593

594595

596597598599600601602603

604605

606607608

609610

611612613

614615

616

617

618

Page 38: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

5. Semantic Model Elements

This specification defines three new PWG Semantic Model elements in the <service>ServiceDescription group.

5.1 New <service>ServiceDescription Elements

[INSERT SCHEMA DIAGRAM HERE]

Figure 4 - New <service>ServiceDescription Elements

Table 9 - New Service Description Elements

Element DataType Description or Keyword

PwgRasterDocument-ResolutionSupported

complex see 5.1.2

Resolution complex the supported sequence of resolutions in CrossFeed and Feed direction for PWG Raster files

CrossFeedDir int allowed values for resolutions, in dots per inch, in CrossFeed direction [RFC2911 para 4.1.15]

FeedDir int allowed values for resolutions, in dots per inch, in Feed direction [RFC2911 para 4.1.15]

PwgRasterDocument-SheetBack

keyword see 5.1.1; PwgRasterDocumentSheetBackWKV

PwgRasterDocument-TypeSupported

list of keywords

see 5.1.3; PwgRasterDocumentTypeWKV

Page 38 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

71

72

619

620621

622

623

624

625

626

627

Page 39: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

5.1.1 PwgRasterDocumentSheetBack

This REQUIRED element specifies the bitmap coordinate system for the backside of duplex sheets. The following keyword values are defined:

'Normal' - the backside has the origin at the top-left corner of the bitmap,'ManualTumble' - the backside has the origin at the top-left corner of the bitmap for 'TwoSidedLongEdge' and the bottom-right corner (rotated 180º) of the bitmap for 'TwoSidedShortEdge','Rotated' - the backside image has the origin at the bottom-right corner (rotated 180º) of the bitmap for 'TwoSidedLongEdge' and the top-left corner of the bitmap for 'TwoSidedShortEdge', or'Flipped' - the backside image has the origin at the bottom-left corner (X flipped) of the bitmap for 'TwoSidedLongEdge' and the top-right corner (Y flipped) for 'TwoSidedShortEdge'.

Figure 5 visually shows the effect of each value on the bitmap image. The top of each page represents the first line of raster data that is transferred, with pixels being transferred from left to right.

Figure 5 - PwgRasterDocumentSheetBack and Sides

Page 39 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

73

74

628

629630

631632633634635636637638639640

641642643

644645

Page 40: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

5.1.2 PwgRasterDocumentResolutionSupported

This REQUIRED element lists the supported page bitmap resolutions in dots per inch. Printers MUST be capable of accepting or producing "image/pwg-raster" streams for the highest reported resolution on the largest supported media. Printers MUST support at least one resolution less than or equal to 360 dots per inch and SHOULD support at least one resolution greater than or equal to 600 dots per inch.

5.1.3 PwgRasterDocumentTypeSupported

This REQUIRED element lists the supported page bitmap color configurations. Table 10 lists the standard keywords and the corresponding page header field values.

Table 10 - PwgRasterDocumentTypeSupported Keyword Values

Keyword BitsPerColor BitsPerPixel

ColorSpace NumColors

Black_1 1 1 3 1

Sgray_1 1 1 18 1

Rgb_8 8 24 1 3

Black_8 8 8 3 1

Cmyk_8 8 32 6 4

Sgray_8 8 8 18 1

Srgb_8 8 24 19 3

AdobeRgb_8 8 24 20 3

Page 40 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

75

76

646

647648649650651

652

653654

655

Page 41: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Keyword BitsPerColor BitsPerPixel

ColorSpace NumColors

Device1_8 8 8 48 1

Device2_8 8 16 49 2

Device3_8 8 24 50 3

Device4_8 8 32 51 4

Device5_8 8 40 52 5

Device6_8 8 48 53 6

Device7_8 8 56 54 7

Device8_8 8 64 55 8

Device9_8 8 72 56 9

Device10_8 8 80 57 10

Device11_8 8 88 58 11

Device12_8 8 96 59 12

Device13_8 8 104 60 13

Device14_8 8 112 61 14

Device15_8 8 120 62 15

Rgb_16 16 48 1 3

Black_16 16 16 3 1

Cmyk_16 16 64 6 4

Sgray_16 16 16 18 1

Srgb_16 16 48 19 3

AdobeRgb_16 16 48 20 3

Device1_16 16 16 48 1

Device2_16 16 32 49 2Page 41 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

77

78

Page 42: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Keyword BitsPerColor BitsPerPixel

ColorSpace NumColors

Device3_16 16 48 50 3

Device4_16 16 64 51 4

Device5_16 16 80 52 5

Device6_16 16 96 53 6

Device7_16 16 112 54 7

Device8_16 16 128 55 8

Device9_16 16 144 56 9

Device10_16 16 160 57 10

Device11_16 16 176 58 11

Device12_16 16 192 59 12

Device13_16 16 208 60 13

Device14_16 16 224 61 14

Device15_16 16 240 62 15

Page 42 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

79

80

656

Page 43: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

6. Conformance Requirements

6.1 PWG Raster Consumer Requirements

To claim conformance to this specification, a PWG Raster consumer MUST:

(a) support the "image/pwg-raster" MIME media type as defined in section 4 of this specification and(b) conform to the Security Considerations defined in section 8 of this specification.

6.2 PWG Raster Producer Requirements

To claim conformance to this specification, a PWG Raster producer MUST:

(a) generate document data conforming to the "image/pwg-raster" MIME media type as defined in section 4 of this specification and(b) conform to the Security Considerations defined in section 8 of this specification.

6.3 Generic Printer Conformance Requirements

To claim conformance to this specification, a Printer implementation MUST:

(a) support all PWG Semantic Model elements defined in section 5 of this specification,(b) support the PWG Raster Consumer requirements as defined in section 6.1 of this specification,(c) support PWG Raster streams at the highest reported resolution reported by the “PwgRasterDocumentResolutionSupported” element and largest media size reported by the “MediaSupported” element,(d) support PWG Raster streams with all resolutions reported by the “PwgRasterDocumentResolutionSupported” element as defined in section 5.1.2 of this specification, and(e) support the "FeedDirection" element defined in the PWG Semantic Model.

If a Printer supports scanning, it MUST ALSO:

Page 43 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

81

82

657

658

659

660661662

663

664

665666667

668

669

670671672673674675676677678679680

681

Page 44: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

(a) support the PWG Raster Producer requirements as defined in section 6.2 of this specification.

6.4 Generic Client Conformance Requirements

To claim conformance to this specification, a Client MUST:

(a) support the PWG Raster Producer requirements as defined in section 6.2 of this specification,(b) explicitly identify the supported values of all Semantic Model elements defined in section 5 of this specification,(c) produce PWG Raster streams at an orientation, resolution, and size as reported by the "FeedDirection", “PwgRasterDocumentResolutionSupported”, and “MediaSupported” elements and as defined in section 5.1.2 of this specification, and(d) produce PWG Raster streams using Color Space and bit depth values as defined in section 5.1.3 of this specification.

If a Client supports scanning, it MUST ALSO:

(a) support the PWG Raster Consumer requirements as defined in section 6.1 of this specification.

6.5 IPP Printer Conformance Requirements

To claim conformance to this specification, an IPP Printer implementation MUST:

(a) support the PWG Raster Consumer requirements as defined in section 6.1 of this specification,(b) support all IPP attributes defined in section 10 of this specification,(c) support PWG Raster streams at the highest reported resolution reported by the “pwg-raster-document-resolution-supported” attribute and largest media size reported by the “media-supported” attribute,(d) support PWG Raster streams with all resolutions reported by the “pwg-raster-document-resolution-supported” attribute as defined in section 5.1.2 of this specification, and(e) support the "feed-orientation" Job Template attribute defined in section 7.1 of PWG 5100.11 [PWG5100.11].

Page 44 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

83

84

682683

684

685

686687688689690691692693694695

696

697698

699

700

701702703704705706707708709710711

Page 45: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

An IPP Printer SHOULD:

(a) support the IPP “compression” attribute with the values “compress”, “deflate”, and/or “gzip” to further reduce the size of PWG Raster documents.

6.6 IPP Client Conformance Requirements

To claim conformance to this specification, an IPP Client MUST:

(a) support the PWG Raster Producer requirements as defined in section 6.2 of this specification,(b) explicitly identify the supported values of all IPP attributes defined in section 10 of this specification,(c) produce PWG Raster streams at an orientation, resolution, and size as reported by the "feed-orientation", “pwg-raster-document-resolution-supported”, and “media-supported” attributes and as defined in section 5.1.2 of this specification, and(d) produce PWG Raster streams using Color Space and bit depth values as defined in section 5.1.3 of this specification.

An IPP Client SHOULD:

(a) support the IPP “compression” attribute with the values “compress”, “deflate”, and/or “gzip” to further reduce the size of PWG Raster documents.

7. Internationalization Considerations

Because PWG Raster streams contain no localizable text, there are no internationalization considerations for the PWG Raster format.

8. Security Considerations

The security considerations for IPP are described in Section 8 of RFC 2911 [RFC2911]. Consumers of PWG Raster streams MUST range check all page header and bitmap values to protect against integer and buffer overflows.

Page 45 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

85

86

712

713714

715

716

717718719720721722723724725

726

727728

729

730731

732

733734735

Page 46: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

9. IANA Considerations

9.1 MIME Media Type Registration

Name : Michael Sweet

E-mail : [email protected]

MIME media type name : Image

MIME subtype name : Standards Tree – pwg-raster

Required parameters : NONE

Optional parameters : NONE

Encoding considerations :

8-bit (raw) binary data.

Security considerations :

Raster data can be very large, which could fill a filesystem and cause a denial of service or system failure. Raster data contains no executables or macros. Authentication and access control are normally handled by the Internet Printing Protocol and Hyper-Text Transport Protocol.

Interoperability considerations :

NONE

Published specification :

ftp://ftp.pwg.org/pub/pwg/candidates/cs-ippraster10-YYYYMMDD-5102.RAS.pdf[Editor's Note: Update this URL prior to publication]

Applications which use this media :

CUPSIPP EverywhereIPP Scan

Page 46 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

87

88

736

737

738

739

740

741

742

743

744

745

746

747748749750

751

752

753

754755

756

757758759

Page 47: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

Additional information :

1. Magic number(s) :

2. File extension(s) :

3. Macintosh file type code :

Person to contact for further information :

1. Name : Michael Sweet

2. E-mail : [email protected]

Intended usage : Common

Used for printing "raw" image data in formats acceptable to printers.

Author/Change controller :

The Printer Working Groupc/o The IEEE Industry Standards and Technology Organization445 Hoes LanePiscataway, NJ 08854USA

9.2 Attribute Registrations

The attributes defined in this document will be published by IANA according to the procedures in RFC 2911 [RFC2911] section 6.2 in the following file:

http://www.iana.org/assignments/ipp-registrations

The registry entries will contain the following information:

Printer Description attributes: Reference----------------------- ---------pwg-raster-document-sheet-back (type2 keyword) [PWG5102.RAS]pwg-raster-document-resolution-supported (1setOf resolution)

[PWG5102.RAS]pwg-raster-document-type-supported (1setOf type2 keyword)

[PWG5102.RAS]

Page 47 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

89

90

760

761

762

763

764

765

766

767

768

769

770771772773774

775

776777

778

779

780781782783784785786

Page 48: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

9.3 Attribute Value Registrations

The keyword attribute values defined in this document will be published by IANA according to the procedures in RFC 2911 [RFC2911] section 6.1 in the following file:

http://www.iana.org/assignments/ipp-registrations

The registry entries will contain the following information:

Attributes (attribute syntax) Keyword Attribute Value Reference ----------------------- ---------pwg-raster-document-sheet-back (type2 keyword) [PWG5102.RAS] normal [PWG5102.RAS] manual-tumble [PWG5102.RAS] rotated [PWG5102.RAS] flipped [PWG5102.RAS]

pwg-raster-document-type-supported (1setOf type2 keyword)[PWG5102.RAS]

adobe-rgb_16 [PWG5102.RAS] adobe-rgb_8 [PWG5102.RAS] black_1 [PWG5102.RAS] black_16 [PWG5102.RAS] black_8 [PWG5102.RAS] cmyk_16 [PWG5102.RAS] cmyk_8 [PWG5102.RAS] device1_16 [PWG5102.RAS] device1_8 [PWG5102.RAS] device10_16 [PWG5102.RAS] device10_8 [PWG5102.RAS] device11_16 [PWG5102.RAS] device11_8 [PWG5102.RAS] device12_16 [PWG5102.RAS] device12_8 [PWG5102.RAS] device13_16 [PWG5102.RAS] device13_8 [PWG5102.RAS] device14_16 [PWG5102.RAS] device14_8 [PWG5102.RAS] device15_16 [PWG5102.RAS] device15_8 [PWG5102.RAS] device2_16 [PWG5102.RAS] device2_8 [PWG5102.RAS] device3_16 [PWG5102.RAS]

Page 48 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

91

92

787

788789

790

791

792793794795796797798799

800801802803804805806807808809810811812813814815816817818819820821822823824825826

Page 49: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

device3_8 [PWG5102.RAS] device4_16 [PWG5102.RAS] device4_8 [PWG5102.RAS] device5_16 [PWG5102.RAS] device5_8 [PWG5102.RAS] device6_16 [PWG5102.RAS] device6_8 [PWG5102.RAS] device7_16 [PWG5102.RAS] device7_8 [PWG5102.RAS] device8_16 [PWG5102.RAS] device8_8 [PWG5102.RAS] device9_16 [PWG5102.RAS] device9_8 [PWG5102.RAS] rgb_8 [PWG5102.RAS] rgb_16 [PWG5102.RAS] sgray_1 [PWG5102.RAS] sgray_16 [PWG5102.RAS] sgray_8 [PWG5102.RAS] srgb_16 [PWG5102.RAS] srgb_8 [PWG5102.RAS]

10. IPP Printer Description Attributes

This specification defines three new IPP Printer description attributes. Table 11 lists the attributes. Semantic model keyword values follow the usual conversion from 'ExampleKeyword' (TItle Case form) to 'example-keyword' (hyphenated words form).

Table 11 - IPP Printer Description Attributes

Element Name IPP Attribute Name

PwgRasterDocumentResolutionSupported pwg-raster-document-resolution-supported

PwgRasterDocumentSheetBack pwg-raster-document-sheet-back

PwgRasterDocumentTypeSupported pwg-raster-document-type-supported

10.1 pwg-raster-document-resolution-supported (1setOf resolution)

This REQUIRED Printer attribute lists the supported page bitmap resolutions in dots per inch.

Page 49 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

93

94

827828829830831832833834835836837838839840841842843844845846

847

848849850

851

852

853854

Page 50: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

10.2 pwg-raster-document-sheet-back (type2 keyword)

This REQUIRED Printer attribute specifies the bitmap coordinate system for the backside of duplex sheets.

10.3 pwg-raster-document-type-supported (1setOf type2 keyword)

This REQUIRED Printer attribute lists the supported Color Space and bit depth combinations.

11. References

11.1 Normative References

[CUPSRASTER] M. Sweet, “CUPS Raster Format”, http://www.cups.org/spec-raster.html

[ECMA388] "Open XML Paper Specification", ECMA-388, June 2009, http://www.ecma-international.org/publications/standards/Ecma-388.htm

[ISO32000] "Document management — Portable document format — Part 1: PDF 1.7", ISO 32000-2008

[POSTSCRIPT] Adobe Systems Incorporated, "PostScript® LANGUAGE REFERENCE, third edition", 1999

[PWG5100.7] T. Hastings, P. Zehler, "Standard for The Internet Printing Protocol (IPP): Job Extensions", PWG 5100.7, October 2003, ftp://ftp.pwg.org/pub/pwg/candidates/cs-ippjobext10-20031031-5100.7.pdf

[PWG5100.11] T. Hastings, D. Fullman, "IPP: Job and Printer Extensions - Set 2 (JPS2)", PWG 5100.11, October 2010, ftp://ftp.pwg.org/pub/pwg/candidates/cs-ippjobprinterext10-20101030-5100.11.pdf

Page 50 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

95

96

855

856857

858

859860

861

862

863864

865866867

868869

870871

872873874875

876877878879

Page 51: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

[PWG5100.12] R. Bergman, H. Lewis, I. McDonald, M. Sweet, "Internet Printing Protocol Version 2.0 Second Edition (IPP/2.0 SE)", PWG 5100.12, February 2011, ftp://ftp.pwg.org/pub/pwg/candidates/cs-ipp20-20110214-5100.12.pdf

[PWG5101.1] R. Bergman, T. Hastings, "Standard for Media Standardized Names", PWG 5101.1, February 2002, ftp://ftp.pwg.org/pub/pwg/candidates/cs-pwgmsn10-20020226-5101.1.pdf

[PWG5102.3] R. Seeler, "Portable Document Format: Image-Streamable (PDF/is)", March 2004, PWG 5102.3-2004, ftp://pwg.org/pub/pwg/candidates/cs-ifxpdfis10-20040315-5102.3.pdf

[PWG5108.1] W. Wagner, P. Zehler, "MFD Model and Common Semantics", PWG 5108.1, April 2011, ftp://ftp.pwg.org/pub/pwg/candidates/cs-sm20-mfdmodel10-20110415-5108.1.pdf

[RFC2119] S. Bradner, "Key words for use in RFCs to Indicate Requirement Levels", RFC 2119, March 1997, http://www.ietf.org/rfc/rfc2119.txt

[RFC2911] T. Hastings, R. Herriot, R. deBry, S. Isaacson, P. Powell, "Internet Printing Protocol/1.1: Model and Semantics", RFC 2911, September 2000, http://www.ietf.org/rfc/rfc2911.txt

[RFC3805] R. Bergman, H. Lewis, I. McDonald, "Printer MIB v2", RFC 3805, June 2004, http://www.ietf.org/rfc/rfc3805.txt

[RFC5234] D. Crocker, P. Overell, "Augmented BNF for Syntax Specifications: ABNF", RFC 5234, January 2008, http://www.ietf.org/rfc/rfc5234.txt

11.2 Informative References

[ANALYSIS] M. Sweet, "An Analysis of Raster Formats for Printing", September 22, 2011, ftp://ftp.pwg.org/pub/pwg/ipp/whitepaper/RasterAnalysis-20110922.pdf

Page 51 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

97

98

880881882883

884885886887

888889890

891892893

894895

896897898

899900

901902

903

904

905906907

Page 52: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

[CHARTER] "Charter of the PWG IPP Working Group (WG) Project, IPP Everywhere", March 2011, ftp://ftp.pwg.org/pub/pwg/ipp/charter/ch-ippeverywhere-charter-20110313.pdf

[SAMPLES] "Sample PWG Raster files", ftp://ftp.pwg.org/pub/pwg/ipp/raster/

12. Author's Address

Michael SweetApple Inc.10431 N. De Anza Blvd.MS 38-4LPTCupertino CA 95014

Send comments to the PWG IPP Mailing List:

[email protected] (subscribers only)

To subscribe, see the PWG web page:

http://www.pwg.org/

Implementers of this specification document are encourages to join the IPP Mailing List in order to participate in any discussions of clarification issues and review of registration proposals for additional attributes and values.

The editor would like to especially thank the following individuals who also contributed significantly to the development of this document:

Justin Hutchings - MicrosoftIra McDonald - High NorthAndrew Mitchell - Hewlett PackardGlen Petrie - EpsonWilliam Wagner - TIC

Page 52 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

99

100

908909910

911

912

913914915916917

918

919

920

921

922923924

925926

927928929930931

932

Page 53: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

13. Change History

[ PWG Secretary: This section must be removed when Document is approved ]

13.1 December 2, 2011

1. Status: Prototype2. Updated references for ABNF and CUPS Raster specs.3. Added references to OpenXPS and PDF/is4. Added PrintContentType and PwgRaster fields, dropped Margins5. Added discussion of Collate field.6. Added OrientationEnum definition.7. Removed compatible resolution language.8. Added generic printer/client conformance requirements and removed scanning

from IPP conformance requirements since there is no IPP scanning spec approved yet.

9. Added reference to whitepaper on raster formats.10.Re-added Device RGB color space that was lost from the early drafts.11.New figure 5 for back side of pages.

13.2 July 30, 2011

1. Reworked to define Semantic Model elements with a normative appendix defining IPP attributes.

2. Defined mapping from PWG Job Ticket to page header fields, and expanded all applicable page header fields.

3. New conformance requirements (split between generic consumer/producer and IPP implementations)

4. New TotalPageCount, ImageBox*, SgrayPrimary, and Vendor fields in the page header

5. Replaced HorizontalResolution and VerticalResolution with HWResolution (original name from CUPS Raster) and defined its values in terms of cross-feed and feed resolution.

6. Added informative reference to PWG Raster samples.7. Added more raster examples.

Page 53 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

101

102

933

934

935

936937938939940941942943944945946947948

949

950951952953954955956957958959960961962

Page 54: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

8. Updated the IANA registration information to match new attribute and keyword names.

13.3 March 27, 2011

1. Restored the "pwg-raster-resolutions-supported" and "pwg-raster-types-supported" sections.

2. Added the necessary IANA registration templates for the IPP attributes and values.

13.4 March 26, 2011

1. Clarified the rationale2. Added DeviceN colorspaces.3. Updated sample image encoding to use more efficient end-of-line sequences

(two bytes more efficient)4. Added reference to JPS2's feed-orientation attribute5. Added LeadingEdge field to page header6. Updated requirements to account for feed orientation/LeadingEdge information

13.5 February 23, 2011

1. Updated MIME media type to image/pwg-raster2. Updated IPP attributes to be pwg-raster-xxx instead of ipp-raster-xxx3. Added Out of Scope section4. Updated introduction and rationale to cover scanning5. Updated PWG Raster format definition (section 4) to contain a complete

description, including tables and figures, for the CUPS Raster v2 format.6. Updated pwg-raster-types-supported and pwg-raster-back-side to include figures

and tables7. Updated conformance section8. Update IETF registration information

13.6 January 26, 2011

1. Updated document title and filename to use "IPP" as the prefix instead of "PWG".2. Added normative references to RFC 2911 and RFC 3805

Page 54 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

103

104

963964

965

966967968969

970

971972973974975976977

978

979980981982983984985986987988

989

990991

Page 55: ftp.pwg.orgftp.pwg.org/pub/pwg/ipp/wd/wd-ippraster10-20111202.docx  · Web view2011-12-03 · The IEEE-ISTO takes no position regarding the validity or scope of any intellectual

Working Draft – PWG Raster Format May 20, 2023

3. Changed "cups-raster" prefix on attributes to "ipp-raster"4. Added "ipp-raster-resolutions-supported" attribute5. Added page bitmap section6. Added conformance requirements7. Added IANA registration info

13.7 January 24, 2011

Initial draft.

Page 55 of 55 Copyright © 2011 The Printer Working Group, All rights reserved.

105

106

992993994995996

997

998


Recommended