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
| Name | Type | Access | Description |
|---|---|---|---|
quality | int | Read | Returns the JPEG quality setting. |
renderingOptions | RenderingOptions | Read | Returns the rendering options. |
resolution | Resolution | Read | Returns the resolution used by this device. |
Methods
| Signature | Description |
|---|---|
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() → int | Returns the JPEG quality setting. |
getRenderingOptions() → RenderingOptions | Returns 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() → Resolution | Returns the resolution used by this device. |