ThumbnailDevice
Overview
ThumbnailDevice is a class in Aspose.PDF FOSS for .NET.
Inherits from: ImageDevice.
Renders PDF document pages into thumbnail PNG images.
This class provides 16 methods for working with ThumbnailDevice objects in .NET programs.
Available methods include: GetBitmap, ImageDevice, Process, ThumbnailDevice.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: CoordinateType, FormPresentationMode, Height, RenderingOptions, Resolution, Width.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Resolution | Resolution | Read | Output resolution in DPI. |
RenderingOptions | Aspose.Pdf.RenderingOptions | Read/Write | Rendering options for advanced control of page-to-image rendering. |
CoordinateType | PageCoordinateType | Read/Write | Which page box drives the rendered image extents. |
Width | int | Read | Configured target pixel width (0 = follow the page’s natural size at Resolution). |
Height | int | Read | Configured target pixel height (0 = follow the page’s natural size at Resolution). |
FormPresentationMode | FormPresentationMode | Read/Write | How form fields render (Production vs Editor). |
Methods
| Signature | Description |
|---|---|
ThumbnailDevice() | Calls ThumbnailDevice on this ThumbnailDevice instance. |
ThumbnailDevice(resolution: Resolution) | Calls ThumbnailDevice(resolution) on this ThumbnailDevice instance. |
ThumbnailDevice(width: int, height: int) | Calls ThumbnailDevice(width, height) on this ThumbnailDevice instance. |
ThumbnailDevice(width: int, height: int, resolution: Resolution) | Calls ThumbnailDevice(width, height, resolution) on this ThumbnailDevice instance. |
ThumbnailDevice(pageSize: Aspose.Pdf.PageSize) | Construct sized to the given pageSize at 150 DPI. |
ThumbnailDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution) | Construct sized to pageSize at the requested resolution. |
Process(page: Page, output: Stream) | Calls Process(page, output) on this ThumbnailDevice instance. |
ImageDevice(resolution: Resolution) | Initializes a new ImageDevice with a Resolution using the built-in SoftwarePageRenderer. |
ImageDevice() | Initializes a new ImageDevice with default resolution and built-in SoftwarePageRenderer. |
ImageDevice(width: int, height: int) | Initializes a new ImageDevice with explicit output pixel dimensions using the built-in SoftwarePageRenderer at default resolution (150 DPI). |
ImageDevice(width: int, height: int, resolution: Resolution) | Initializes a new ImageDevice with explicit output pixel dimensions and rendering resolution using the built-in SoftwarePageRenderer. |
ImageDevice(pageSize: Aspose.Pdf.PageSize) | Initialize from a PageSize (in points; converted to integer pixel dimensions at the default 150 DPI). |
ImageDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution) | Initialize from a PageSize and rendering Resolution. |
GetBitmap(page: Page) | Render a page to a Bitmap. |
Process(page: Page, outputFileName: string) | Convert a page to an image file. |
Process(page: Page) | Convert a page to image bytes. |