IPresentationFactory

public interface IPresentationFactory

Allows to create presentation via COM interface

Methods

MethodDescription
createPresentation()Creates new presentation.
createPresentation(ILoadOptions options)Creates new presentation with additional load options
getPresentationInfo(String file)Gets info about presentation in specified file.
getPresentationInfo(InputStream stream)Gets info about presentation in specified stream.
readPresentation(byte[] data)Reads an existing presentation from array
readPresentation(byte[] data, ILoadOptions options)Reads an existing presentation from array with additional load options
readPresentation(InputStream stream)Reads an existing presentation from stream
readPresentation(InputStream stream, ILoadOptions options)Reads an existing presentation from stream with additional load options
readPresentation(String file)Reads an existing presentation from file
readPresentation(String file, ILoadOptions options)Reads an existing presentation from stream with additional load options
getPresentationText(String file, int mode)Retrieves the raw text from the slides
getPresentationText(InputStream stream, int mode)Retrieves the raw text from the slides
getPresentationText(InputStream stream, int mode, ILoadOptions options)Retrieves the raw text from the slides

createPresentation()

public abstract IPresentation createPresentation()

Creates new presentation.

Returns: IPresentation - New presentation

createPresentation(ILoadOptions options)

public abstract IPresentation createPresentation(ILoadOptions options)

Creates new presentation with additional load options

Parameters:

ParameterTypeDescription
optionsILoadOptionsLoad options

Returns: IPresentation - New presentation

getPresentationInfo(String file)

public abstract IPresentationInfo getPresentationInfo(String file)

Gets info about presentation in specified file.

Parameters:

ParameterTypeDescription
filejava.lang.StringPresentation file.

Returns: IPresentationInfo - Presentation info

getPresentationInfo(InputStream stream)

public abstract IPresentationInfo getPresentationInfo(InputStream stream)

Gets info about presentation in specified stream.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamPresentation stream.

Returns: IPresentationInfo - Presentation info.

readPresentation(byte[] data)

public abstract IPresentation readPresentation(byte[] data)

Reads an existing presentation from array

Parameters:

ParameterTypeDescription
databyte[]Array to read

Returns: IPresentation - Read presentation

readPresentation(byte[] data, ILoadOptions options)

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

Reads an existing presentation from array with additional load options

Parameters:

ParameterTypeDescription
databyte[]Array to read
optionsILoadOptionsLoad options

Returns: IPresentation - Read presentation

readPresentation(InputStream stream)

public abstract IPresentation readPresentation(InputStream stream)

Reads an existing presentation from stream

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamInput stream to read

Returns: IPresentation - Read presentation

readPresentation(InputStream stream, ILoadOptions options)

public abstract IPresentation readPresentation(InputStream stream, ILoadOptions options)

Reads an existing presentation from stream with additional load options

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamInput stream to read
optionsILoadOptionsLoad options

Returns: IPresentation - Read presentation

readPresentation(String file)

public abstract IPresentation readPresentation(String file)

Reads an existing presentation from file

Parameters:

ParameterTypeDescription
filejava.lang.StringFile name

Returns: IPresentation - Read presentation

readPresentation(String file, ILoadOptions options)

public abstract IPresentation readPresentation(String file, ILoadOptions options)

Reads an existing presentation from stream with additional load options

Parameters:

ParameterTypeDescription
filejava.lang.StringFile name
optionsILoadOptionsLoad options

Returns: IPresentation - Read presentation

getPresentationText(String file, int mode)

public abstract IPresentationText getPresentationText(String file, int mode)

Retrieves the raw text from the slides

Parameters:

ParameterTypeDescription
filejava.lang.StringInput file
modeintExtraction mode

Returns: IPresentationText - The instance of PresentationText containing the SlideText array representing the raw slides text

getPresentationText(InputStream stream, int mode)

public abstract IPresentationText getPresentationText(InputStream stream, int mode)

Retrieves the raw text from the slides

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamInput stream
modeintExtraction mode

Returns: IPresentationText - The instance of PresentationText containing the SlideText array representing the raw slides text

getPresentationText(InputStream stream, int mode, ILoadOptions options)

public abstract IPresentationText getPresentationText(InputStream stream, int mode, ILoadOptions options)

Retrieves the raw text from the slides

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamInput stream
modeintExtraction mode
optionsILoadOptionsLoad options

Returns: IPresentationText - The instance of PresentationText containing the SlideText array representing the raw slides text