Synology Drive icon

Synology Drive

Synology Drive / FileStation operations

Convert Office File

AI-generated

Summary

Convert an office file from a specified source format to a target format using Synology Drive.

Inputs

  • Source Format — The format of the source office file (optional; can be left empty).
  • Target Format (required) — The desired format to convert the office file into (default is 'docx').
  • filePath (required) — The path to the office file to convert.
  • extraParamsJson — Optional additional parameters as a JSON object to customize the conversion request.

Output shape

a single JSON object indicating success or failure of the conversion with any returned data from the Synology Drive API

The output includes the API response under 'data' if successful; errors are thrown on failures or returned with details if continueOnFail is enabled.

Examples

Example 1: Convert an office document located at '/documents/report.xls' from 'xls' format to 'xlsx' format.

Set 'filePath' to '/documents/report.xls', 'Source Format' to 'xls', and 'Target Format' to 'xlsx'.

Links

Discussion