Documentation Contents
CONTENTS | PREV | NEXT

1. Introduction

History of Printing on the Java Platform
What the Java Print Service API Offers
Java Print Service Architecture
The javax.print Package
Discover Print Services
Specify the Print Data Format
Create Print Jobs
The javax.print.event Package
How Applications Use the Java Print Service
A Basic Example

2. Attributes

Attribute Categories and Values
Attribute Roles
Attribute Sets
How to Specify Attributes
Standard Attributes
OrientationRequested
Copies
Media
MediaSize
MediaPrintableArea
Destination
SheetCollate
Sides
Fidelity
Uses of JPS Attributes

3. Specifying Document Types

Client-Formatted Print Data
MIME Types for Preformatted Data
Text Data
Page Description Language Documents
Image Data
Autosense Print Data
Representation Classes
Importance of Character Encoding
Service-Formatted Print Data
How to Use DocFlavor

4. Printing and Streaming Documents

StreamPrintService Versus PrintService
Locating Services
Discovering Print Services
Discovering Stream Print Services
Obtaining a Print Job
Creating a Doc
Registering for Events
Print Service Events
Print Job Events
PrintJobAttributeListener
PrintJobListener
Submitting the Print Job
Submitting the Print Job to the Printer
Submitting the Print Job to the Stream
Print Service Providers

5. Printing and Streaming 2D Graphics

Using PrinterJob to Print or Stream Graphics
Printing 2D Graphics
Streaming 2D Graphics
Using Service-Formatted Data
Printing the Service-Formatted Data
Streaming Service-Formatted Print Data

A. Example: PrintPS.java

B. Example: PrintGIFtoStream.java

C. Example: Print2DPrinterJob.java

D. Example: Print2DGraphics.java

E. Example: Print2DtoStream.java

F. Example: PrintGIF.java

G. JavaTM Print Service Glossary



CONTENTS | PREV | NEXT

Oracle and/or its affiliates Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.
Contact Us