com.aspose.pdf.devices

Class EmfDevice



  • public final class EmfDevice
    extends ImageDevice

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

    • Constructor Detail

      • EmfDevice

        public EmfDevice()

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

      • EmfDevice

        public EmfDevice(Resolution resolution)

        Initializes a new instance of the EmfDevice class.

        Parameters:
        resolution - Resolution for the raster image written to emf, see Resolution class.
      • EmfDevice

        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:
        width - Image output width.
        height - Image output height.
      • EmfDevice

        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:
        pageSize - Page size of the output image.
      • EmfDevice

        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:
        width - Image output width.
        height - Image output height.
        resolution - Resolution for the for the raster image written to emf, see Resolution class.
      • EmfDevice

        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:
        pageSize - Page size of the output image.
        resolution - Resolution for the for the raster image written to emf, see Resolution class.
    • Method Detail

      • processInternal

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

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

        Specified by:
        processInternal in class PageDevice
        Parameters:
        page - The page to convert.
        output - Output stream with emf image.
      • process

        public void process(Page page,
                            OutputStream output)

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

        Overrides:
        process in class PageDevice
        Parameters:
        page - The page to convert.
        output - Output stream with emf image.