PngDevice

PngDevice class

Represents image device that helps to save pdf document pages into png.

The PngDevice type exposes the following members:

Constructors

NameDescription
PngDevice()Initializes a new instance of the PngDevice class with default resolution.
PngDevice(resolution)Initializes a new instance of the PngDevice class
PngDevice(width, height, resolution)Initializes a new instance of the PngDevice class
PngDevice(page_size, resolution)Initializes a new instance of the PngDevice class
PngDevice(width, height)Initializes a new instance of the PngDevice class
PngDevice(page_size)Initializes a new instance of the PngDevice class

Properties

NameDescription
coordinate_typeGets or sets the page coordinate type (Media/Crop boxes). CropBox value is used by default.
rendering_optionsGets or sets rendering options.
form_presentation_modeGets or sets form presentation mode.
resolutionGets image resolution.
widthGets image output width.
heightGets image output height.
transparent_backgroundGets or sets if image has transparent background.

Methods

NameDescription
process(page, output)Converts the page into png and saves it in the output stream.
process(page, output_file_name)Converts the page into png and saves it in the output stream.

See Also