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
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
resolution | Resolution | Resolution 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:
Parameter | Type | Description |
---|---|---|
width | int | Image output width. |
height | int | Image 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:
Parameter | Type | Description |
---|---|---|
pageSize | PageSize | Page 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:
Parameter | Type | Description |
---|---|---|
width | int | Image output width. |
height | int | Image output height. |
resolution | Resolution | Resolution 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:
Parameter | Type | Description |
---|---|---|
pageSize | PageSize | Page size of the output image. |
resolution | Resolution | Resolution 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:
Parameter | Type | Description |
---|---|---|
page | Page | The page to convert. |
output | com.aspose.ms.System.IO.Stream | Output 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:
Parameter | Type | Description |
---|---|---|
page | Page | The page to convert. |
output | java.io.OutputStream | Output stream with emf image. |