open

public final static Document open(String filePath)

Opens a document from a file path using default settings.

Return

A new Document instance representing the opened document.

Parameters

filePath

The path to the document file to open.


public final static Document open(String filePath, DocumentSettings settings)

Opens a document from a file path using specified settings.

Return

A new Document instance representing the opened document.

Parameters

filePath

The path to the document file to open.

settings

The settings to use when opening the document.


public final static Document open(FileInputStream stream)

Opens a document from a stream using default settings.

Return

A new Document instance representing the opened document.

Parameters

stream

The stream containing the document data.


public final static Document open(FileInputStream stream, DocumentSettings settings)

Opens a document from a stream using specified settings.

Return

A new Document instance representing the opened document.

Parameters

stream

The stream containing the document data.

settings

The settings to use when opening the document.