| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final PDDocument | |
| private final float | |
| private final int | |
| private final Orientation | |
| private RenderingHints | |
| private final boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDFPageable(PDDocument
the document to print document, Orientation page orientation policy orientation)Creates a new PDFPageable with the given page orientation. |
| public | PDFPageable(PDDocument
the document to print document, Orientation page orientation policy orientation, boolean true if page borders are to be printed showPageBorder)Creates a new PDFPageable with the given page orientation and with optional page borders shown. |
| public | PDFPageable(PDDocument
the document to print document, Orientation page orientation policy orientation, boolean true if page borders are to be printed showPageBorder, float if non-zero then the image will be rasterized at the given DPI dpi)Creates a new PDFPageable with the given page orientation and with optional page borders shown. |
| public | PDFPageable(PDDocument
the document to print document, Orientation page orientation policy orientation, boolean true if page borders are to be printed showPageBorder, float if non-zero then the image will be rasterized at the given DPI dpi, boolean true if the content is to be centered on the page (otherwise top-left). center)Creates a new PDFPageable with the given page orientation and with optional page borders shown. |
| Modifier and Type | Method and Description |
|---|---|
| public int | getNumberOfPages()
Overrides java. Implements java. Returns the number of pages in this |
| public PageFormat | getPageFormat(int
the zero based index of the page whose
pageIndex)PageFormat is being requestedOverrides java. Implements java. Returns the |
| public Printable | getPrintable(int
the zero based index of the page whose
i)Printable is being requestedOverrides java. Implements java. Returns the |
| public RenderingHints | |
| public boolean | Returns: true if subsampling of images is allowed, false otherwise.Value indicating if the renderer is allowed to subsample images before drawing, according to image dimensions and requested scale. |
| public void | setRenderingHints(RenderingHints
rendering hints to be used to influence rendering quality and speed renderingHints)Set the rendering hints. |
| public void | setSubsamplingAllowed(boolean
The new value indicating if subsampling is allowed. subsamplingAllowed)Sets a value instructing the renderer whether it is allowed to subsample images before drawing. |
| center | back to summary |
|---|---|
| private final boolean center | |
| document | back to summary |
|---|---|
| private final PDDocument document | |
| dpi | back to summary |
|---|---|
| private final float dpi | |
| numberOfPages | back to summary |
|---|---|
| private final int numberOfPages | |
| orientation | back to summary |
|---|---|
| private final Orientation orientation | |
| renderingHints | back to summary |
|---|---|
| private RenderingHints renderingHints | |
| showPageBorder | back to summary |
|---|---|
| private final boolean showPageBorder | |
| subsamplingAllowed | back to summary |
|---|---|
| private boolean subsamplingAllowed | |
| PDFPageable | back to summary |
|---|---|
| public PDFPageable(PDDocument document) Creates a new PDFPageable.
| |
| PDFPageable | back to summary |
|---|---|
| public PDFPageable(PDDocument document, Orientation orientation) Creates a new PDFPageable with the given page orientation.
| |
| PDFPageable | back to summary |
|---|---|
| public PDFPageable(PDDocument document, Orientation orientation, boolean showPageBorder) Creates a new PDFPageable with the given page orientation and with optional page borders shown.
| |
| PDFPageable | back to summary |
|---|---|
| public PDFPageable(PDDocument document, Orientation orientation, boolean showPageBorder, float dpi) Creates a new PDFPageable with the given page orientation and with optional page borders shown. The image will be rasterized at the given DPI before being sent to the printer if non-zero.
| |
| PDFPageable | back to summary |
|---|---|
| public PDFPageable(PDDocument document, Orientation orientation, boolean showPageBorder, float dpi, boolean center) Creates a new PDFPageable with the given page orientation and with optional page borders shown. The image will be rasterized at the given DPI before being sent to the printer if non-zero, and optionally be centered.
| |
| getNumberOfPages | back to summary |
|---|---|
| public int getNumberOfPages() Overrides java. Implements java. Doc from java. Returns the number of pages in this
| |
| getPageFormat | back to summary |
|---|---|
| public PageFormat getPageFormat(int pageIndex) Overrides java. Implements java. Doc from java. Returns the
| |
| getPrintable | back to summary |
|---|---|
| public Printable getPrintable(int i) Overrides java. Implements java. Doc from java. Returns the | |
| getRenderingHints | back to summary |
|---|---|
| public RenderingHints getRenderingHints() Get the rendering hints.
| |
| isSubsamplingAllowed | back to summary |
|---|---|
| public boolean isSubsamplingAllowed() Value indicating if the renderer is allowed to subsample images before drawing, according to image dimensions and requested scale. Subsampling may be faster and less memory-intensive in some cases, but it may also lead to loss of quality, especially in images with high spatial frequency.
| |
| setRenderingHints | back to summary |
|---|---|
| public void setRenderingHints(RenderingHints renderingHints) Set the rendering hints. Use this to influence rendering quality and speed. If you don't set them yourself or pass null, PDFBox will decide at runtime depending on the destination.
| |
| setSubsamplingAllowed | back to summary |
|---|---|
| public void setSubsamplingAllowed(boolean subsamplingAllowed) Sets a value instructing the renderer whether it is allowed to subsample images before drawing. The subsampling frequency is determined according to image size and requested scale. Subsampling may be faster and less memory-intensive in some cases, but it may also lead to loss of quality, especially in images with high spatial frequency.
| |