com.aspose.pdf.devices

Class PageDevice

  • Direct Known Subclasses:
    ImageDevice, TextDevice


    public abstract class PageDevice
    extends Device

    Abstract class for all devices which is used to process certain page the pdf document.

    • Constructor Detail

      • PageDevice

        public PageDevice()
    • Method Detail

      • processInternal

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

        Performs some operation on the given page, e.g. converts page into graphic image.

        Parameters:
        page - The page to process.
        output - This stream contains the results of processing.
      • process

        public void process(Page page,
                            OutputStream output)

        Performs some operation on the given page, e.g. converts page into graphic image.

        Parameters:
        page - The page to process.
        output - This stream contains the results of processing.
      • process

        public void process(Page page,
                            String outputFileName)

        Performs some operation on the given page and saves results into the file.

        Parameters:
        page - The page to process.
        outputFileName - This file contains the results of processing.
      • process

        public void process(Page page,
                            com.aspose.ms.System.Drawing.Graphics gr)

        Renders page on the graphics

        Parameters:
        page - Page object
        gr - internal object