Export Detail Settings

Release 3.3.2602 and above.

Usage Notes

The representation and quality of the imported original document and the exported document are not guaranteed to be identical.

Due to the structural characteristics of the web editor environment, a 1:1 match with the original document format is difficult, and as a result, some objects may be missing or displayed abnormally.

Module Application

To use the export feature, you must apply the import/export module SEDocModelParser included under the externals folder of the editor package.

<!-- synapeditor.config.js -->
<!-- Import/Export module -->
<script src="externals/SEDocModelParser/SEDocModelParser.min.js"></script>

Toolbar Setting

When 'export' is added to the editor toolbar settings, the export dialog becomes available.

// synapeditor.config.js
{
    'editor.toolbar': [..., 'export', ...]
}

Export UI Dialog

1.00

ItemDescriptionValue
File formatSpecifies the file format.Some limitations may apply during the conversion process.DOCX
Paper orientationSets the paper orientation.A4 Portrait (default)A4 Landscape
File nameEnter the filename to be saved.String(If not entered: untitled)

Files generated upon export are saved to the default download folder of the browser in use.

Export Extension Settings

Release 3.3.2603 and above.

Configures the file formats displayed in the export dialog.

  • The configured extensions are displayed in the order entered in the array.
  • If set to an empty array, the file format item is not displayed.
  • If only one is set, only that item is displayed, and the UI is disabled so it cannot be changed.
// synapeditor.config.js
{
    'editor.export.extensions': ['docx']
}

Default Export Extension Settings

Release 3.3.2603 and above.

Sets the file format that is selected by default in the export dialog.

If you specify a default extension, that format is selected first. However, a value not in the export format list is not applied.

If you do not specify a default extension separately or set it to an unusable value, the first item in the export format list is selected by default.

If the export format list is empty, the default format is determined based on the available values among the supported formats.

// synapeditor.config.js
{
    'editor.export.defaultExtension': 'docx'
}

Examples

DescriptionSetting valueResult screen
When export extensions are set to an empty arraySee Empty array below.No extensions
When only one export extension is setSee Single export extension below.DOCX only

Empty array

When export extensions are set to an empty array.

// synapeditor.config.js
{
    'editor.export.extensions': []
}

Single export extension

When only one export extension is set.

// synapeditor.config.js
{
    'editor.export.extensions': ['docx']
}