FileName class

FileName class

The filename.

The FileName type exposes the following members:

Constructors

Constructor Description
init Initializes an instance of the FileName class.

Methods

Method Description
to_string Returns a string that represents the current object.

Fields

Field Description
EMPTY The empty filename.
SOURCE The name of the source file.

Example

from groupdocs.viewer import Viewer
from groupdocs.viewer.options import HtmlViewOptions, FileName

with Viewer("documents.zip") as viewer:
    view_options = HtmlViewOptions.for_embedded_resources(
        "output/archive_{0}.html"
    )
    view_options.archive_options.file_name = FileName("Sample Files")
    viewer.view(view_options)

See Also