java.awt.print.Pageable
public final class PDFPageable
extends java.awt.print.Book
Constructor | Description |
---|---|
PDFPageable(PDDocument document) |
Creates a new PDFPageable.
|
PDFPageable(PDDocument document,
Orientation orientation) |
Creates a new PDFPageable with the given page orientation.
|
PDFPageable(PDDocument document,
Orientation orientation,
boolean showPageBorder) |
Creates a new PDFPageable with the given page orientation and with optional page borders
shown.
|
PDFPageable(PDDocument document,
Orientation orientation,
boolean showPageBorder,
float dpi) |
Creates a new PDFPageable with the given page orientation and with optional page borders
shown.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getNumberOfPages() |
|
java.awt.print.PageFormat |
getPageFormat(int pageIndex) |
Returns the actual physical size of the pages in the PDF file.
|
java.awt.print.Printable |
getPrintable(int i) |
public PDFPageable(PDDocument document)
document
- the document to printpublic PDFPageable(PDDocument document, Orientation orientation)
document
- the document to printorientation
- page orientation policypublic PDFPageable(PDDocument document, Orientation orientation, boolean showPageBorder)
document
- the document to printorientation
- page orientation policyshowPageBorder
- true if page borders are to be printedpublic PDFPageable(PDDocument document, Orientation orientation, boolean showPageBorder, float dpi)
document
- the document to printorientation
- page orientation policyshowPageBorder
- true if page borders are to be printeddpi
- if non-zero then the image will be rasterized at the given DPIpublic int getNumberOfPages()
getNumberOfPages
in interface java.awt.print.Pageable
getNumberOfPages
in class java.awt.print.Book
public java.awt.print.PageFormat getPageFormat(int pageIndex)
getPageFormat
in interface java.awt.print.Pageable
getPageFormat
in class java.awt.print.Book
public java.awt.print.Printable getPrintable(int i)
getPrintable
in interface java.awt.print.Pageable
getPrintable
in class java.awt.print.Book
Copyright © 2002–2018. All rights reserved.