Class DefaultPageProcessor

    • Field Detail

      • _imageType

        private final int _imageType
      • _imageFormat

        private final java.lang.String _imageFormat
    • Constructor Detail

      • DefaultPageProcessor

        public DefaultPageProcessor​(FSPageOutputStreamSupplier osFactory,
                                    int imageType,
                                    java.lang.String imageFormat)
        Creates a page processor which saves each page as an image.
        Parameters:
        osFactory - must supply an output stream for each page. The os will be closed by the page processor.
        imageType - must be a constant from the BufferedImage class.
        imageFormat - must be a format such as png or jpeg
    • Method Detail

      • createLayoutGraphics

        public java.awt.Graphics2D createLayoutGraphics()
        Create a graphics device that can be supplied to useLayoutGraphics. The caller is responsible for calling dispose on the returned device.
        Returns: