ThumbnailDevice

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

public final class ThumbnailDevice extends ImageDevice

Represents image device that save pdf document pages into Thumbnail image.

Constructors

ConstructorDescription
ThumbnailDevice()Initializes a new instance of the ThumbnailDevice class with default size of thumbnail image (200x200 pixels).
ThumbnailDevice(int width, int height)Initializes a new instance of the ThumbnailDevice class.

Methods

MethodDescription
processInternal(Page page, OutputStream output)Converts the page into thumbnail image png and saves it in the output stream.
processInternal(Page page, System.IO.Stream output)

ThumbnailDevice()

public ThumbnailDevice()

Initializes a new instance of the ThumbnailDevice class with default size of thumbnail image (200x200 pixels).

ThumbnailDevice(int width, int height)

public ThumbnailDevice(int width, int height)

Initializes a new instance of the ThumbnailDevice class.

Parameters:

ParameterTypeDescription
widthintThumbnail image output width.
heightintThumbnail image output height.

processInternal(Page page, OutputStream output)

public void processInternal(Page page, OutputStream output)

Converts the page into thumbnail image png and saves it in the output stream.

Parameters:

ParameterTypeDescription
pagePageThe page to convert.
outputjava.io.OutputStreamOutput stream with png image.

processInternal(Page page, System.IO.Stream output)

public void processInternal(Page page, System.IO.Stream output)

Performs some operation on the given page, e.g. converts page into graphic image.

Parameters:

ParameterTypeDescription
pagePage
outputcom.aspose.ms.System.IO.Stream