TiffDevice
Overview
TiffDevice is a class in Aspose.Pdf FOSS for Java.
Renders PDF pages to multi-page TIFF format.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
width | int | Read | Returns the explicit width set via a (width, height, …) constructor, or 0 if not set. |
height | int | Read | Returns the explicit height set via a (width, height, …) constructor, or 0 if not set. |
settings | TiffSettings | Read | Returns the TIFF settings used by this device. |
resolution | Resolution | Read | Returns the resolution used by this device. |
Methods
| Signature | Description |
|---|---|
TiffDevice() | Default 150 DPI resolution + default settings. |
TiffDevice(width: int, height: int) | Explicit pixel dimensions + 150 DPI + default settings. |
TiffDevice(width: int, height: int, resolution: Resolution) | Explicit dimensions + resolution. |
TiffDevice(width: int, height: int, resolution: Resolution, settings: TiffSettings) | Explicit dimensions + resolution + settings. |
TiffDevice(width: int, height: int, settings: TiffSettings) | Explicit dimensions + settings (default 150 DPI). |
TiffDevice(settings: TiffSettings) | Settings only — default 150 DPI, no explicit dimensions. |
TiffDevice(pageSize: org.aspose.pdf.PageSize, settings: TiffSettings) | PageSize + settings — width/height from page-size in points. |
TiffDevice(resolution: Resolution) | Creates a TIFF device with the given resolution. |
TiffDevice(resolution: Resolution, tiffSettings: TiffSettings) | Creates a TIFF device with the given resolution and settings. |
getWidth() → int | Returns the explicit width set via a (width, height, …) constructor, or 0 if not set. |
getHeight() → int | Returns the explicit height set via a (width, height, …) constructor, or 0 if not set. |
getSettings() → TiffSettings | Returns the TIFF settings used by this device. |
process(document: Document, output: OutputStream) | Renders all pages of a document to a multi-page TIFF. |
process(document: Document, fromPage: int, toPage: int, output: OutputStream) | Renders a range of pages to a multi-page TIFF. |
process(page: Page, output: OutputStream) | Renders a single page to TIFF. |
getResolution() → Resolution | Returns the resolution used by this device. |