Top Description Fields Constructors Methods
org.apache.pdfbox.rendering

public final Class PageDrawerParameters

extends Object
Class Inheritance
Imports
java.awt.RenderingHints, org.apache.pdfbox.pdmodel.PDPage

Parameters for a PageDrawer. This class ensures allows PDFRenderer and PageDrawer to share private implementation data in a future-proof manner, while still allowing end-users to create their own subclasses of PageDrawer.
Author
John Hewson

Field Summary

Modifier and TypeField and Description
private final RenderDestination
private final float
private final PDPage
private final PDFRenderer
private final RenderingHints
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
PageDrawerParameters(PDFRenderer renderer, PDPage page, boolean subsamplingAllowed, RenderDestination destination, RenderingHints renderingHints, float imageDownscalingOptimizationThreshold)

Package-private constructor.

Method Summary

Modifier and TypeMethod and Description
public RenderDestination

Returns:

the destination
getDestination
()

public float

Returns:

the imageDownscalingOptimizationThreshold
getImageDownscalingOptimizationThreshold
()

public PDPage

Returns:

the page
getPage
()

Returns the page.

pack-priv PDFRenderer

Returns:

the renderer
getRenderer
()

Returns the renderer.

public RenderingHints

Returns:

the rendering hints.
getRenderingHints
()

public boolean

Returns:

true if subsampling of images os allowed
isSubsamplingAllowed
()

Returns whether to allow subsampling of images.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

destinationback to summary
private final RenderDestination destination
imageDownscalingOptimizationThresholdback to summary
private final float imageDownscalingOptimizationThreshold
pageback to summary
private final PDPage page
rendererback to summary
private final PDFRenderer renderer
renderingHintsback to summary
private final RenderingHints renderingHints
subsamplingAllowedback to summary
private final boolean subsamplingAllowed

Constructor Detail

PageDrawerParametersback to summary
pack-priv PageDrawerParameters(PDFRenderer renderer, PDPage page, boolean subsamplingAllowed, RenderDestination destination, RenderingHints renderingHints, float imageDownscalingOptimizationThreshold)

Package-private constructor.

Method Detail

getDestinationback to summary
public RenderDestination getDestination()
Returns:RenderDestination

the destination

getImageDownscalingOptimizationThresholdback to summary
public float getImageDownscalingOptimizationThreshold()
Returns:float

the imageDownscalingOptimizationThreshold

getPageback to summary
public PDPage getPage()

Returns the page.

Returns:PDPage

the page

getRendererback to summary
pack-priv PDFRenderer getRenderer()

Returns the renderer.

Returns:PDFRenderer

the renderer

getRenderingHintsback to summary
public RenderingHints getRenderingHints()
Returns:RenderingHints

the rendering hints.

isSubsamplingAllowedback to summary
public boolean isSubsamplingAllowed()

Returns whether to allow subsampling of images.

Returns:boolean

true if subsampling of images os allowed