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
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
resolution | Resolution | Resolution 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:
Parameter | Type | Description |
---|---|---|
resolution | Resolution | Resolution for the output image. |
settings | TiffSettings | Tiff 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:
Parameter | Type | Description |
---|---|---|
resolution | Resolution | Resolution for the output image. |
settings | TiffSettings | Tiff settings, see TiffSettings class. |
converter | IIndexBitmapConverter | External converter |
TiffDevice(TiffSettings settings)
public TiffDevice(TiffSettings settings)
Initializes a new instance of the TiffDevice class.
Parameters:
Parameter | Type | Description |
---|---|---|
settings | TiffSettings | Tiff settings, see TiffSettings class. |
TiffDevice(TiffSettings settings, IIndexBitmapConverter converter)
public TiffDevice(TiffSettings settings, IIndexBitmapConverter converter)
Initializes a new instance of the TiffDevice class.
Parameters:
Parameter | Type | Description |
---|---|---|
settings | TiffSettings | Tiff settings, see TiffSettings class. |
converter | IIndexBitmapConverter | External 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:
Parameter | Type | Description |
---|---|---|
width | int | Image output width. |
height | int | Image output height. |
resolution | Resolution | Resolution for the output image. |
settings | TiffSettings | Tiff 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:
Parameter | Type | Description |
---|---|---|
width | int | Image output width. |
height | int | Image output height. |
resolution | Resolution | Resolution for the output image. |
settings | TiffSettings | Tiff settings, see TiffSettings class. |
converter | IIndexBitmapConverter | External 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:
Parameter | Type | Description |
---|---|---|
pageSize | PageSize | Page size of the output image. |
resolution | Resolution | Resolution for the output image. |
settings | TiffSettings | Tiff 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:
Parameter | Type | Description |
---|---|---|
pageSize | PageSize | Page size of the output image. |
resolution | Resolution | Resolution for the output image. |
settings | TiffSettings | Tiff settings, see TiffSettings class. |
converter | IIndexBitmapConverter | External 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:
Parameter | Type | Description |
---|---|---|
width | int | Image output width. |
height | int | Image output height. |
resolution | Resolution | Resolution for the output image. |
TiffDevice(PageSize pageSize, Resolution resolution)
public TiffDevice(PageSize pageSize, Resolution resolution)
Initializes a new instance of the TiffDevice class.
Parameters:
Parameter | Type | Description |
---|---|---|
pageSize | PageSize | Page size of the output image. |
resolution | Resolution | Resolution 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:
Parameter | Type | Description |
---|---|---|
width | int | Image output width. |
height | int | Image output height. |
settings | TiffSettings | Tiff 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:
Parameter | Type | Description |
---|---|---|
width | int | Image output width. |
height | int | Image output height. |
settings | TiffSettings | Tiff settings, see TiffSettings class. |
converter | IIndexBitmapConverter | External 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:
Parameter | Type | Description |
---|---|---|
pageSize | PageSize | Page size of the output image. |
settings | TiffSettings | Tiff settings, see TiffSettings class. |
converter | IIndexBitmapConverter | External converter |
TiffDevice(PageSize pageSize, TiffSettings settings)
public TiffDevice(PageSize pageSize, TiffSettings settings)
Initializes a new instance of the TiffDevice class.
Parameters:
Parameter | Type | Description |
---|---|---|
pageSize | PageSize | Page size of the output image. |
settings | TiffSettings | Tiff settings, see TiffSettings class. |
TiffDevice(int width, int height)
public TiffDevice(int width, int height)
Initializes a new instance of the TiffDevice class.
Parameters:
Parameter | Type | Description |
---|---|---|
width | int | Image output width. |
height | int | Image output height. |
TiffDevice(PageSize pageSize)
public TiffDevice(PageSize pageSize)
Initializes a new instance of the TiffDevice class.
Parameters:
Parameter | Type | Description |
---|---|---|
pageSize | PageSize | Page 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:
Parameter | Type | Description |
---|---|---|
value | RenderingOptions | rendering 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:
Parameter | Type | Description |
---|---|---|
value | int | int 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:
Parameter | Type | Description |
---|---|---|
document | IDocument | The document to convert. |
fromPage | int | Defines page number from which converting will start. |
toPage | int | Defines page number which will end the converting. |
output | com.aspose.ms.System.IO.Stream | Output 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:
Parameter | Type | Description |
---|---|---|
document | IDocument | The document to convert. |
fromPage | int | Defines page number from which converting will start. |
toPage | int | Defines page number which will end the converting. |
output | java.io.OutputStream | Output 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:
Parameter | Type | Description |
---|---|---|
cropRectangle | Rectangle | Rectangle object |