TiffDevice

Overview

TiffDevice is a class in Aspose.Pdf FOSS for Java.

Renders PDF pages to multi-page TIFF format.

Properties

NameTypeAccessDescription
widthintReadReturns the explicit width set via a (width, height, …) constructor, or 0 if not set.
heightintReadReturns the explicit height set via a (width, height, …) constructor, or 0 if not set.
settingsTiffSettingsReadReturns the TIFF settings used by this device.
resolutionResolutionReadReturns the resolution used by this device.

Methods

SignatureDescription
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()intReturns the explicit width set via a (width, height, …) constructor, or 0 if not set.
getHeight()intReturns the explicit height set via a (width, height, …) constructor, or 0 if not set.
getSettings()TiffSettingsReturns 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()ResolutionReturns the resolution used by this device.

See Also