Uses of Interface javax.print.Doc (Java Platform SE 8 )
Date: 2026-03-16

## Uses of Interface
javax.print.Doc

- Packages that use Doc
  Package | Description
  --- | ---
  javax.print | Provides the principal classes and interfaces for the JavaTM Print Service API.

- - ### Uses of Doc in javax.print

    Classes in javax.print that implement Doc
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SimpleDoc` This class is an implementation of interface `Doc` that can be used in many common printing requests.

    Methods in javax.print that return Doc
    Modifier and Type | Method and Description
    --- | ---
    `Doc` | MultiDoc.`getDoc()` Obtain the current doc object.

    Methods in javax.print with parameters of type Doc
    Modifier and Type | Method and Description
    --- | ---
    `void` | DocPrintJob.`print(Doc doc, PrintRequestAttributeSet attributes)` Prints a document with the specified job attributes.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.