create_from_file method

create_from_file

Creates a document from a file.

def create_from_file(cls, file_path):
    ...
Parameter Type Description
file_path str The document file path.

Returns: Document: The created document.

Example

from groupdocs.search.common import Document

document = Document.create_from_file(document_file_path)

See Also