TiffDevice

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

public final class TiffDevice extends DocumentDevice

This class helps to save pdf document page by page into the one tiff image.

Constructors

ConstructorDescription
TiffDevice(Resolution resolution)Initializes a new instance of the TiffDevice class.
TiffDevice(Resolution resolution, TiffSettings settings)Initializes a new instance of the TiffDevice class.
TiffDevice(Resolution resolution, TiffSettings settings, IIndexBitmapConverter converter)Initializes a new instance of the TiffDevice class.
TiffDevice(TiffSettings settings)Initializes a new instance of the TiffDevice class.
TiffDevice(TiffSettings settings, IIndexBitmapConverter converter)Initializes a new instance of the TiffDevice class.
TiffDevice()Initializes a new instance of the TiffDevice class with default settings.
TiffDevice(int width, int height, Resolution resolution, TiffSettings settings)Initializes a new instance of the TiffDevice class.
TiffDevice(int width, int height, Resolution resolution, TiffSettings settings, IIndexBitmapConverter converter)Initializes a new instance of the TiffDevice class.
TiffDevice(PageSize pageSize, Resolution resolution, TiffSettings settings)Initializes a new instance of the TiffDevice class.
TiffDevice(PageSize pageSize, Resolution resolution, TiffSettings settings, IIndexBitmapConverter converter)Initializes a new instance of the TiffDevice class.
TiffDevice(int width, int height, Resolution resolution)Initializes a new instance of the TiffDevice class.
TiffDevice(PageSize pageSize, Resolution resolution)Initializes a new instance of the TiffDevice class.
TiffDevice(int width, int height, TiffSettings settings)Initializes a new instance of the TiffDevice class.
TiffDevice(int width, int height, TiffSettings settings, IIndexBitmapConverter converter)Initializes a new instance of the TiffDevice class.
TiffDevice(PageSize pageSize, TiffSettings settings, IIndexBitmapConverter converter)Initializes a new instance of the TiffDevice class.
TiffDevice(PageSize pageSize, TiffSettings settings)Initializes a new instance of the TiffDevice class.
TiffDevice(int width, int height)Initializes a new instance of the TiffDevice class.
TiffDevice(PageSize pageSize)Initializes a new instance of the TiffDevice class.

Methods

MethodDescription
getRenderingOptions()Gets rendering options.
setRenderingOptions(RenderingOptions value)Sets rendering options.
getFormPresentationMode()Gets form presentation mode.
setFormPresentationMode(int value)Gets form presentation mode.
getSettings()Gets settings for mapping pdf into tiff image.
getResolution()Gets image resolution.
processInternal(IDocument document, int fromPage, int toPage, System.IO.Stream output)Converts certain document pages into tiff and save it in the output stream.
process(IDocument document, int fromPage, int toPage, OutputStream output)Converts certain document pages into tiff and save it in the output stream.
getWidth()Gets image output width.
getHeight()Gets image output height.
getCropRectangle()Get rectangle that defines the area that will be converted into a picture.
setCropRectangle(Rectangle cropRectangle)Set rectangle that defines the area that will be converted into a picture.

TiffDevice(Resolution resolution)

public TiffDevice(Resolution resolution)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
resolutionResolutionResolution for the result image file.

TiffDevice(Resolution resolution, TiffSettings settings)

public TiffDevice(Resolution resolution, TiffSettings settings)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
resolutionResolutionResolution for the output image.
settingsTiffSettingsTiff settings, see TiffSettings class.

TiffDevice(Resolution resolution, TiffSettings settings, IIndexBitmapConverter converter)

public TiffDevice(Resolution resolution, TiffSettings settings, IIndexBitmapConverter converter)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
resolutionResolutionResolution for the output image.
settingsTiffSettingsTiff settings, see TiffSettings class.
converterIIndexBitmapConverterExternal converter

TiffDevice(TiffSettings settings)

public TiffDevice(TiffSettings settings)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
settingsTiffSettingsTiff settings, see TiffSettings class.

TiffDevice(TiffSettings settings, IIndexBitmapConverter converter)

public TiffDevice(TiffSettings settings, IIndexBitmapConverter converter)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
settingsTiffSettingsTiff settings, see TiffSettings class.
converterIIndexBitmapConverterExternal converter

TiffDevice()

public TiffDevice()

Initializes a new instance of the TiffDevice class with default settings.

TiffDevice(int width, int height, Resolution resolution, TiffSettings settings)

public TiffDevice(int width, int height, Resolution resolution, TiffSettings settings)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.
resolutionResolutionResolution for the output image.
settingsTiffSettingsTiff settings, see TiffSettings class.

TiffDevice(int width, int height, Resolution resolution, TiffSettings settings, IIndexBitmapConverter converter)

public TiffDevice(int width, int height, Resolution resolution, TiffSettings settings, IIndexBitmapConverter converter)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.
resolutionResolutionResolution for the output image.
settingsTiffSettingsTiff settings, see TiffSettings class.
converterIIndexBitmapConverterExternal converter

TiffDevice(PageSize pageSize, Resolution resolution, TiffSettings settings)

public TiffDevice(PageSize pageSize, Resolution resolution, TiffSettings settings)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.
resolutionResolutionResolution for the output image.
settingsTiffSettingsTiff settings, see TiffSettings class.

TiffDevice(PageSize pageSize, Resolution resolution, TiffSettings settings, IIndexBitmapConverter converter)

public TiffDevice(PageSize pageSize, Resolution resolution, TiffSettings settings, IIndexBitmapConverter converter)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.
resolutionResolutionResolution for the output image.
settingsTiffSettingsTiff settings, see TiffSettings class.
converterIIndexBitmapConverterExternal converter

TiffDevice(int width, int height, Resolution resolution)

public TiffDevice(int width, int height, Resolution resolution)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.
resolutionResolutionResolution for the output image.

TiffDevice(PageSize pageSize, Resolution resolution)

public TiffDevice(PageSize pageSize, Resolution resolution)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.
resolutionResolutionResolution for the output image.

TiffDevice(int width, int height, TiffSettings settings)

public TiffDevice(int width, int height, TiffSettings settings)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.
settingsTiffSettingsTiff settings, see TiffSettings class.

TiffDevice(int width, int height, TiffSettings settings, IIndexBitmapConverter converter)

public TiffDevice(int width, int height, TiffSettings settings, IIndexBitmapConverter converter)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.
settingsTiffSettingsTiff settings, see TiffSettings class.
converterIIndexBitmapConverterExternal converter

TiffDevice(PageSize pageSize, TiffSettings settings, IIndexBitmapConverter converter)

public TiffDevice(PageSize pageSize, TiffSettings settings, IIndexBitmapConverter converter)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.
settingsTiffSettingsTiff settings, see TiffSettings class.
converterIIndexBitmapConverterExternal converter

TiffDevice(PageSize pageSize, TiffSettings settings)

public TiffDevice(PageSize pageSize, TiffSettings settings)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.
settingsTiffSettingsTiff settings, see TiffSettings class.

TiffDevice(int width, int height)

public TiffDevice(int width, int height)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.

TiffDevice(PageSize pageSize)

public TiffDevice(PageSize pageSize)

Initializes a new instance of the TiffDevice class.

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.

getRenderingOptions()

public RenderingOptions getRenderingOptions()

Gets rendering options.

Returns: RenderingOptions - rendering options.

setRenderingOptions(RenderingOptions value)

public void setRenderingOptions(RenderingOptions value)

Sets rendering options.

Parameters:

ParameterTypeDescription
valueRenderingOptionsrendering options.

getFormPresentationMode()

public int getFormPresentationMode()

Gets form presentation mode.

Returns: int - FormPresentationMode value

setFormPresentationMode(int value)

public void setFormPresentationMode(int value)

Gets form presentation mode.

Parameters:

ParameterTypeDescription
valueintint value

getSettings()

public TiffSettings getSettings()

Gets settings for mapping pdf into tiff image.

Returns: TiffSettings - TiffSettings element

getResolution()

public Resolution getResolution()

Gets image resolution.

Returns: Resolution - Resolution element

processInternal(IDocument document, int fromPage, int toPage, System.IO.Stream output)

public void processInternal(IDocument document, int fromPage, int toPage, System.IO.Stream output)

Converts certain document pages into tiff and save it in the output stream.

Parameters:

ParameterTypeDescription
documentIDocumentThe document to convert.
fromPageintDefines page number from which converting will start.
toPageintDefines page number which will end the converting.
outputcom.aspose.ms.System.IO.StreamOutput stream with tiff image.

process(IDocument document, int fromPage, int toPage, OutputStream output)

public void process(IDocument document, int fromPage, int toPage, OutputStream output)

Converts certain document pages into tiff and save it in the output stream.

Parameters:

ParameterTypeDescription
documentIDocumentThe document to convert.
fromPageintDefines page number from which converting will start.
toPageintDefines page number which will end the converting.
outputjava.io.OutputStreamOutput stream with tiff image.

getWidth()

public int getWidth()

Gets image output width.

Returns: int - int value

getHeight()

public int getHeight()

Gets image output height.

Returns: int - int value

getCropRectangle()

public Rectangle getCropRectangle()

Get rectangle that defines the area that will be converted into a picture. The default is null, in which case the all image is converted to a page

Returns: Rectangle - Rectangle object

setCropRectangle(Rectangle cropRectangle)

public void setCropRectangle(Rectangle cropRectangle)

Set rectangle that defines the area that will be converted into a picture. The default is null, in which case the all image is converted to a page

Parameters:

ParameterTypeDescription
cropRectangleRectangleRectangle object