JpegDevice

Overview

JpegDevice is a class in Aspose.Pdf FOSS for Java. Inherits from: PageDevice.

Renders a PDF page to JPEG format with configurable compression quality.

Properties

NameTypeAccessDescription
qualityintReadReturns the JPEG quality setting.
renderingOptionsRenderingOptionsReadReturns the rendering options.
resolutionResolutionReadReturns the resolution used by this device.

Methods

SignatureDescription
JpegDevice()Creates a JPEG device with the default 150 DPI resolution and quality 100.
JpegDevice(quality: int)Creates a JPEG device with the default 150 DPI resolution and the given
quality.
JpegDevice(width: int, height: int)Creates a JPEG device with explicit pixel dimensions and the default
150 DPI resolution + quality 100.
JpegDevice(width: int, height: int, resolution: Resolution)Creates a JPEG device with explicit pixel dimensions, resolution, and
default quality 100.
JpegDevice(resolution: Resolution)Creates a JPEG device with the given resolution and default quality (100).
JpegDevice(resolution: Resolution, quality: int)Creates a JPEG device with the given resolution and quality.
JpegDevice(width: int, height: int, resolution: Resolution, quality: int)Creates a JPEG device with explicit dimensions, resolution, and quality.
getQuality()intReturns the JPEG quality setting.
getRenderingOptions()RenderingOptionsReturns the rendering options.
setRenderingOptions(options: RenderingOptions)Sets the rendering options.
process(page: Page, output: OutputStream)Renders a page and writes the result to the output stream.
getResolution()ResolutionReturns the resolution used by this device.

See Also