Class PageDrawerParameters


  • public final class PageDrawerParameters
    extends java.lang.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 Detail

      • page

        private final PDPage page
      • subsamplingAllowed

        private final boolean subsamplingAllowed
      • renderingHints

        private final java.awt.RenderingHints renderingHints
      • imageDownscalingOptimizationThreshold

        private final float imageDownscalingOptimizationThreshold
    • Constructor Detail

      • PageDrawerParameters

        PageDrawerParameters​(PDFRenderer renderer,
                             PDPage page,
                             boolean subsamplingAllowed,
                             RenderDestination destination,
                             java.awt.RenderingHints renderingHints,
                             float imageDownscalingOptimizationThreshold)
        Package-private constructor.
    • Method Detail

      • 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 java.awt.RenderingHints getRenderingHints()
        Returns:
        the rendering hints.
      • getImageDownscalingOptimizationThreshold

        public float getImageDownscalingOptimizationThreshold()
        Returns:
        the imageDownscalingOptimizationThreshold