PngDevice
Overview
PngDevice is a class in Aspose.Pdf FOSS for Java.
Inherits from: PageDevice.
Renders a PDF page to PNG format.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
resolution | Resolution | Read | Returns the resolution used by this device. |
Methods
| Signature | Description |
|---|---|
PngDevice(resolution: Resolution) | Creates a PNG device with the given resolution. |
PngDevice(width: int, height: int, resolution: Resolution) | Creates a PNG device with explicit dimensions and resolution. |
process(page: Page, output: OutputStream) | Renders a page and writes the result to the output stream. |
getResolution() → Resolution | Returns the resolution used by this device. |