com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class PresentationFactory

  • java.lang.Object
    • com.aspose.slides.PresentationFactory
    • Constructor Detail

      • PresentationFactory

        public PresentationFactory()
    • Method Detail

      • getPresentationInfo

        public final IPresentationInfo getPresentationInfo(java.lang.String file)

        Creates new PresentationInfo object from file and binds presentation to it.

        Specified by:
        getPresentationInfo in interface IPresentationFactory
        Parameters:
        file - Presentation file.
        Returns:
        Presentation info binded to presentation.
      • getPresentationInfo

        public final IPresentationInfo getPresentationInfo(java.io.InputStream stream)

        Creates new PresentationInfo object from stream and binds presentation to it. Gets info about presentation in specified stream.

        Specified by:
        getPresentationInfo in interface IPresentationFactory
        Parameters:
        stream - Presentation stream.
        Returns:
        Presentation info binded to presentation.
      • readPresentation

        public final IPresentation readPresentation(byte[] data)

        Reads an existing presentation from array

        Specified by:
        readPresentation in interface IPresentationFactory
        Parameters:
        data - Array to read
        Returns:
        Read presentation
      • readPresentation

        public final IPresentation readPresentation(byte[] data,
                                                    ILoadOptions options)

        Reads an existing presentation from array with additional load options

        Specified by:
        readPresentation in interface IPresentationFactory
        Parameters:
        data - Array to read
        options - Load options
        Returns:
        Read presentation
      • readPresentation

        public final IPresentation readPresentation(java.io.InputStream stream)

        Reads an existing presentation from stream

        Specified by:
        readPresentation in interface IPresentationFactory
        Parameters:
        stream - Input stream to read
        Returns:
        Read presentation
      • readPresentation

        public final IPresentation readPresentation(java.io.InputStream stream,
                                                    ILoadOptions options)

        Reads an existing presentation from stream with additional load options

        Specified by:
        readPresentation in interface IPresentationFactory
        Parameters:
        stream - Input stream to read
        options - Load options
        Returns:
        Read presentation
      • readPresentation

        public final IPresentation readPresentation(java.lang.String file)

        Reads an existing presentation from file

        Specified by:
        readPresentation in interface IPresentationFactory
        Parameters:
        file - File name
        Returns:
        Read presentation
      • readPresentation

        public final IPresentation readPresentation(java.lang.String file,
                                                    ILoadOptions options)

        Reads an existing presentation from stream with additional load options

        Specified by:
        readPresentation in interface IPresentationFactory
        Parameters:
        file - File name
        options - Load options
        Returns:
        Read presentation
      • getPresentationText

        public final IPresentationText getPresentationText(java.lang.String file,
                                                           int mode)

        Retreieves the raw text from the slides

        Specified by:
        getPresentationText in interface IPresentationFactory
        Parameters:
        file - Input file
        mode - Extraction mode
        Returns:
        The instance of PresentationText containing the SlideText array representing the raw slides text
      • getPresentationText

        public final IPresentationText getPresentationText(java.io.InputStream stream,
                                                           int mode)

        Retreieves the raw text from the slides

        Specified by:
        getPresentationText in interface IPresentationFactory
        Parameters:
        stream - Input stream
        mode - Extraction mode
        Returns:
        The instance of PresentationText containing the SlideText array representing the raw slides text
      • getPresentationText

        public final IPresentationText getPresentationText(java.io.InputStream stream,
                                                           int mode,
                                                           ILoadOptions options)

        Retreieves the raw text from the slides

        Specified by:
        getPresentationText in interface IPresentationFactory
        Parameters:
        stream - Input stream
        mode - Extraction mode
        options - Load options
        Returns:
        The instance of PresentationText containing the SlideText array representing the raw slides text