DocumentExporter

class qf_lib.documents_utils.document_exporting.document_exporter.DocumentExporter(settings: qf_lib.settings.Settings)[source]

Bases: object

Abstract class for document_exporting of documents.

Methods

get_output_dir(export_dir)

Converts a partial path (export_dir) which is relative to the output root directory into a path which is relative to the current working directory.

get_output_dir(export_dir: str) → str[source]

Converts a partial path (export_dir) which is relative to the output root directory into a path which is relative to the current working directory.

Parameters

export_dir – relative path (relative to the output root directory) of the directory in which the generated document should be saved

Returns

Return type

absolute path of the directory in which the generated document should be saved