Provides classes and interfaces for a general printing API.
Creates a new PageFormat
instance and
sets it to a default size and orientation.
Clones the PageFormat
argument and alters the
clone to describe a default page size and orientation.
Returns the
PageFormat
of the page specified by
pageIndex
.
Returns the PageFormat
of the page specified by
pageIndex
.
Calculates a PageFormat
with values consistent with those
supported by the current PrintService
for this job
(ie the value returned by getPrintService()
) and media,
printable area and orientation contained in attributes
.
Displays a dialog that allows modification of a
PageFormat
instance.
A convenience method which displays a cross-platform page setup dialog.
Returns the clone of page
with its settings
adjusted to be compatible with the current printer of this
PrinterJob
.
void
Appends a single page to the end of this Book
.
void
Appends numPages
pages to the end of this
Book
.
Clones the PageFormat
argument and alters the
clone to describe a default page size and orientation.
Displays a dialog that allows modification of a
PageFormat
instance.
int
Prints the page at the specified index into the specified
Graphics
context in the specified
format.
void
Sets the PageFormat
and the Painter
for a
specified page number.
abstract void
Calls painter
to render the pages in the specified
format
.
Returns the clone of page
with its settings
adjusted to be compatible with the current printer of this
PrinterJob
.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .