Class PageDrawerParameters

java.lang.Object
org.apache.pdfbox.rendering.PageDrawerParameters

public final class PageDrawerParameters extends Object
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 Details

    • renderer

      private final PDFRenderer renderer
    • page

      private final PDPage page
    • subsamplingAllowed

      private final boolean subsamplingAllowed
    • destination

      private final RenderDestination destination
    • renderingHints

      private final RenderingHints 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

      public PDPage getPage()
      Returns the page.
    • getRenderer

      PDFRenderer getRenderer()
      Returns the renderer.
    • isSubsamplingAllowed

      public boolean isSubsamplingAllowed()
      Returns whether to allow subsampling of images.
    • getDestination

      public RenderDestination getDestination()
      Returns:
      the destination
    • getRenderingHints

      public RenderingHints getRenderingHints()
      Returns:
      the rendering hints.
    • getImageDownscalingOptimizationThreshold

      public float getImageDownscalingOptimizationThreshold()
      Returns:
      the imageDownscalingOptimizationThreshold