public static class PrintProcessor.DefaultPageable extends Book
重写PDFPageable
UNKNOWN_NUMBER_OF_PAGES| 构造器和说明 |
|---|
DefaultPageable(org.apache.pdfbox.pdmodel.PDDocument document,
org.apache.pdfbox.printing.Orientation orientation,
Printable printable)
Creates a new PDFPageable with the given page orientation and with optional page borders
shown.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getNumberOfPages() |
PageFormat |
getPageFormat(int pageIndex)
Returns the actual physical size of the pages in the PDF file.
|
Printable |
getPrintable(int i)
Returns the
Printable instance responsible for
rendering the page specified by pageIndex. |
protected org.apache.pdfbox.pdmodel.common.PDRectangle |
getRotatedCropBox(org.apache.pdfbox.pdmodel.PDPage page)
This will find the CropBox with rotation applied, for this page by looking up the hierarchy
until it finds them.
|
protected org.apache.pdfbox.pdmodel.common.PDRectangle |
getRotatedMediaBox(org.apache.pdfbox.pdmodel.PDPage page)
This will find the MediaBox with rotation applied, for this page by looking up the hierarchy
until it finds them.
|
public DefaultPageable(org.apache.pdfbox.pdmodel.PDDocument document,
org.apache.pdfbox.printing.Orientation orientation,
Printable printable)
document - the document to printorientation - page orientation policyprintable - true if page borders are to be printedpublic int getNumberOfPages()
getNumberOfPages 在接口中 PageablegetNumberOfPages 在类中 Bookpublic PageFormat getPageFormat(int pageIndex)
Returns the actual physical size of the pages in the PDF file. May not fit the local printer.
getPageFormat 在接口中 PageablegetPageFormat 在类中 Bookpublic Printable getPrintable(int i)
Printable instance responsible for
rendering the page specified by pageIndex.getPrintable 在接口中 PageablegetPrintable 在类中 Booki - the zero based index of the page whose
Printable is being requestedPrintable that renders the page.protected org.apache.pdfbox.pdmodel.common.PDRectangle getRotatedCropBox(org.apache.pdfbox.pdmodel.PDPage page)
protected org.apache.pdfbox.pdmodel.common.PDRectangle getRotatedMediaBox(org.apache.pdfbox.pdmodel.PDPage page)
Copyright © 2024. All rights reserved.