com.aspose.pdf.devices

Class TiffDevice



  • public final class TiffDevice
    extends DocumentDevice

    This class helps to save pdf document page by page into the one tiff image.

    • Constructor Detail

      • TiffDevice

        public TiffDevice(Resolution resolution)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        resolution - Resolution for the result image file.
      • TiffDevice

        public TiffDevice(Resolution resolution,
                  TiffSettings settings)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        resolution - Resolution for the output image.
        settings - Tiff settings, see TiffSettings class.
      • TiffDevice

        public TiffDevice(Resolution resolution,
                  TiffSettings settings,
                  IIndexBitmapConverter converter)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        resolution - Resolution for the output image.
        settings - Tiff settings, see TiffSettings class.
        converter - External converter
      • TiffDevice

        public TiffDevice(TiffSettings settings)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        settings - Tiff settings, see TiffSettings class.
      • TiffDevice

        public TiffDevice(TiffSettings settings,
                  IIndexBitmapConverter converter)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        settings - Tiff settings, see TiffSettings class.
        converter - External converter
      • TiffDevice

        public TiffDevice()

        Initializes a new instance of the TiffDevice class with default settings.

      • TiffDevice

        public TiffDevice(int width,
                  int height,
                  Resolution resolution,
                  TiffSettings settings)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        width - Image output width.
        height - Image output height.
        resolution - Resolution for the output image.
        settings - Tiff settings, see TiffSettings class.
      • TiffDevice

        public TiffDevice(int width,
                  int height,
                  Resolution resolution,
                  TiffSettings settings,
                  IIndexBitmapConverter converter)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        width - Image output width.
        height - Image output height.
        resolution - Resolution for the output image.
        settings - Tiff settings, see TiffSettings class.
        converter - External converter
      • TiffDevice

        public TiffDevice(PageSize pageSize,
                  Resolution resolution,
                  TiffSettings settings)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        pageSize - Page size of the output image.
        resolution - Resolution for the output image.
        settings - Tiff settings, see TiffSettings class.
      • TiffDevice

        public TiffDevice(PageSize pageSize,
                  Resolution resolution,
                  TiffSettings settings,
                  IIndexBitmapConverter converter)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        pageSize - Page size of the output image.
        resolution - Resolution for the output image.
        settings - Tiff settings, see TiffSettings class.
        converter - External converter
      • TiffDevice

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

        Initializes a new instance of the TiffDevice class.

        Parameters:
        width - Image output width.
        height - Image output height.
        resolution - Resolution for the output image.
      • TiffDevice

        public TiffDevice(PageSize pageSize,
                  Resolution resolution)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        pageSize - Page size of the output image.
        resolution - Resolution for the output image.
      • TiffDevice

        public TiffDevice(int width,
                  int height,
                  TiffSettings settings)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        width - Image output width.
        height - Image output height.
        settings - Tiff settings, see TiffSettings class.
      • TiffDevice

        public TiffDevice(int width,
                  int height,
                  TiffSettings settings,
                  IIndexBitmapConverter converter)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        width - Image output width.
        height - Image output height.
        settings - Tiff settings, see TiffSettings class.
        converter - External converter
      • TiffDevice

        public TiffDevice(PageSize pageSize,
                  TiffSettings settings,
                  IIndexBitmapConverter converter)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        pageSize - Page size of the output image.
        settings - Tiff settings, see TiffSettings class.
        converter - External converter
      • TiffDevice

        public TiffDevice(PageSize pageSize,
                  TiffSettings settings)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        pageSize - Page size of the output image.
        settings - Tiff settings, see TiffSettings class.
      • TiffDevice

        public TiffDevice(int width,
                  int height)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        width - Image output width.
        height - Image output height.
      • TiffDevice

        public TiffDevice(PageSize pageSize)

        Initializes a new instance of the TiffDevice class.

        Parameters:
        pageSize - Page size of the output image.
    • Method Detail

      • getRenderingOptions

        public RenderingOptions getRenderingOptions()

        Gets rendering options.

        Returns:
        rendering options.
      • setRenderingOptions

        public void setRenderingOptions(RenderingOptions value)

        Sets rendering options.

        Parameters:
        value - rendering options.
      • getFormPresentationMode

        public int getFormPresentationMode()

        Gets form presentation mode.

        Returns:
        FormPresentationMode value
        See Also:
        FormPresentationMode
      • setFormPresentationMode

        public void setFormPresentationMode(int value)

        Gets form presentation mode.

        Parameters:
        value - int value
        See Also:
        FormPresentationMode
      • getSettings

        public TiffSettings getSettings()

        Gets settings for mapping pdf into tiff image.

        Returns:
        TiffSettings element
      • getResolution

        public Resolution getResolution()

        Gets image resolution.

        Returns:
        Resolution element
      • processInternal

        public void processInternal(IDocument document,
                           int fromPage,
                           int toPage,
                           com.aspose.ms.System.IO.Stream output)

        Converts certain document pages into tiff and save it in the output stream.

        Specified by:
        processInternal in class DocumentDevice
        Parameters:
        document - The document to convert.
        fromPage - Defines page number from which converting will start.
        toPage - Defines page number which will end the converting.
        output - Output stream with tiff image.
      • process

        public void process(IDocument document,
                   int fromPage,
                   int toPage,
                   OutputStream output)

        Converts certain document pages into tiff and save it in the output stream.

        Overrides:
        process in class DocumentDevice
        Parameters:
        document - The document to convert.
        fromPage - Defines page number from which converting will start.
        toPage - Defines page number which will end the converting.
        output - Output stream with tiff image.
      • getWidth

        public int getWidth()

        Gets image output width.

        Returns:
        int value
      • getHeight

        public int getHeight()

        Gets image output height.

        Returns:
        int value
      • getCropRectangle

        public Rectangle getCropRectangle()
        Get rectangle that defines the area that will be converted into a picture. The default is null, in which case the all image is converted to a page
        Returns:
        Rectangle object
      • setCropRectangle

        public void setCropRectangle(Rectangle cropRectangle)
        Set rectangle that defines the area that will be converted into a picture. The default is null, in which case the all image is converted to a page
        Parameters:
        cropRectangle - Rectangle object