Package org.apache.pdfbox.rendering
Class PageDrawerParameters
java.lang.Object
org.apache.pdfbox.rendering.PageDrawerParameters
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RenderDestinationprivate final floatprivate final PDPageprivate final PDFRendererprivate final RenderingHintsprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionPageDrawerParameters(PDFRenderer renderer, PDPage page, boolean subsamplingAllowed, RenderDestination destination, RenderingHints renderingHints, float imageDownscalingOptimizationThreshold) Package-private constructor. -
Method Summary
Modifier and TypeMethodDescriptionfloatgetPage()Returns the page.(package private) PDFRendererReturns the renderer.booleanReturns whether to allow subsampling of images.
-
Field Details
-
renderer
-
page
-
subsamplingAllowed
private final boolean subsamplingAllowed -
destination
-
renderingHints
-
imageDownscalingOptimizationThreshold
private final float imageDownscalingOptimizationThreshold
-
-
Constructor Details
-
PageDrawerParameters
PageDrawerParameters(PDFRenderer renderer, PDPage page, boolean subsamplingAllowed, RenderDestination destination, RenderingHints renderingHints, float imageDownscalingOptimizationThreshold) Package-private constructor.
-
-
Method Details
-
getPage
Returns the page. -
getRenderer
PDFRenderer getRenderer()Returns the renderer. -
isSubsamplingAllowed
public boolean isSubsamplingAllowed()Returns whether to allow subsampling of images. -
getDestination
- Returns:
- the destination
-
getRenderingHints
- Returns:
- the rendering hints.
-
getImageDownscalingOptimizationThreshold
public float getImageDownscalingOptimizationThreshold()- Returns:
- the imageDownscalingOptimizationThreshold
-