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.