JpegDevice

Inheritance: java.lang.Object, com.aspose.pdf.devices.Device com.aspose.pdf.devices.PageDevice com.aspose.pdf.devices.ImageDevice com.aspose.pdf.devices.JpegDevice, com.aspose.pdf.devices.Device, com.aspose.pdf.devices.PageDevice com.aspose.pdf.devices.ImageDevice com.aspose.pdf.devices.JpegDevice, com.aspose.pdf.devices.PageDevice, com.aspose.pdf.devices.ImageDevice com.aspose.pdf.devices.JpegDevice, com.aspose.pdf.devices.ImageDevice, com.aspose.pdf.devices.JpegDevice

public final class JpegDevice extends ImageDevice

Represents image device that helps to save pdf document pages into jpeg.

Constructors

ConstructorDescription
JpegDeviceInitializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDeviceInitializes a new instance of the {@code JpegDevice} class.
JpegDeviceInitializes a new instance of the {@code JpegDevice} class with provided image dimensions, default resolution (=150) and maximum quality.
JpegDeviceInitializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDeviceInitializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDeviceInitializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDeviceInitializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDeviceInitializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDeviceInitializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDeviceInitializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.

Methods

MethodDescription
processConverts the page into jpeg and saves it in the output stream.
processInternalConverts the page into jpeg and saves it in the output stream.

JpegDevice

public JpegDevice()

Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.

JpegDevice

public JpegDevice(int quality)

Initializes a new instance of the {@code JpegDevice} class.

Parameters:

ParameterTypeDescription
qualitySpecifies the level of compression for an image. The range of useful values for the quality is from 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. Zero would give you the lowest quality image and 100 the highest.

JpegDevice

public JpegDevice(int width, int height)

Initializes a new instance of the {@code JpegDevice} class with provided image dimensions, default resolution (=150) and maximum quality.

Parameters:

ParameterTypeDescription
widthImage output width.
heightImage output height.

JpegDevice

Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.

JpegDevice

Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.

JpegDevice

Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.

JpegDevice

Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.

JpegDevice

Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.

JpegDevice

Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.

JpegDevice

Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.

process

Converts the page into jpeg and saves it in the output stream.

processInternal

Converts the page into jpeg and saves it in the output stream.