EmfDevice

Inheritance: java.lang.Object, com.aspose.pdf.devices.Device, com.aspose.pdf.devices.PageDevice, com.aspose.pdf.devices.ImageDevice

public final class EmfDevice extends ImageDevice

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

Constructors

ConstructorDescription
EmfDevice()Initializes a new instance of the EmfDevice class with default resolution of raster image written to emf.
EmfDevice(Resolution resolution)Initializes a new instance of the EmfDevice class.
EmfDevice(int width, int height)Initializes a new instance of the EmfDevice class with provided image dimensions, and default resolution for the raster image written to emf (=150)
EmfDevice(PageSize pageSize)Initializes a new instance of the EmfDevice class with provided page size, and default resolution for the raster image written to emf (=150)
EmfDevice(int width, int height, Resolution resolution)Initializes a new instance of the JpegDevice class with provided image dimensions, and resolution for the raster image written to emf.
EmfDevice(PageSize pageSize, Resolution resolution)Initializes a new instance of the JpegDevice class with provided page size, and resolution for the raster image written to emf.

Methods

MethodDescription
processInternal(Page page, System.IO.Stream output)Converts the page into emf and saves it in the output stream.
process(Page page, OutputStream output)Converts the page into emf and saves it in the output stream.

EmfDevice()

public EmfDevice()

Initializes a new instance of the EmfDevice class with default resolution of raster image written to emf.

EmfDevice(Resolution resolution)

public EmfDevice(Resolution resolution)

Initializes a new instance of the EmfDevice class.

Parameters:

ParameterTypeDescription
resolutionResolutionResolution for the raster image written to emf, see Resolution class.

EmfDevice(int width, int height)

public EmfDevice(int width, int height)

Initializes a new instance of the EmfDevice class with provided image dimensions, and default resolution for the raster image written to emf (=150)

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.

EmfDevice(PageSize pageSize)

public EmfDevice(PageSize pageSize)

Initializes a new instance of the EmfDevice class with provided page size, and default resolution for the raster image written to emf (=150)

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.

EmfDevice(int width, int height, Resolution resolution)

public EmfDevice(int width, int height, Resolution resolution)

Initializes a new instance of the JpegDevice class with provided image dimensions, and resolution for the raster image written to emf.

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.
resolutionResolutionResolution for the for the raster image written to emf, see Resolution class.

EmfDevice(PageSize pageSize, Resolution resolution)

public EmfDevice(PageSize pageSize, Resolution resolution)

Initializes a new instance of the JpegDevice class with provided page size, and resolution for the raster image written to emf.

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.
resolutionResolutionResolution for the for the raster image written to emf, see Resolution class.

processInternal(Page page, System.IO.Stream output)

public void processInternal(Page page, System.IO.Stream output)

Converts the page into emf and saves it in the output stream.

Parameters:

ParameterTypeDescription
pagePageThe page to convert.
outputcom.aspose.ms.System.IO.StreamOutput stream with emf image.

process(Page page, OutputStream output)

public void process(Page page, OutputStream output)

Converts the page into emf and saves it in the output stream.

Parameters:

ParameterTypeDescription
pagePageThe page to convert.
outputjava.io.OutputStreamOutput stream with emf image.