PngDevice

Overview

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

Renders a PDF page to PNG format.

This class provides 4 methods for working with PngDevice objects in Java programs. Available methods include: PngDevice, getResolution, process. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: resolution.

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

 English