Exports the document to a file using the specified exporter.
The path where the exported file will be saved.
The exporter that defines the output format and settings.