PngDevice

Overview

PngDevice is a class in Aspose.Pdf FOSS for Java. Inherits from: PageDevice.

Renders a PDF page to PNG format.

Properties

NameTypeAccessDescription
resolutionResolutionReadReturns the resolution used by this device.

Methods

SignatureDescription
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()ResolutionReturns the resolution used by this device.

See Also