Actions36
- List Files
- Search Files
- Download File
- Upload File
- Create Folder
- Rename
- Delete
- Copy / Move
- List Starred Files
- List Recent Files
- List Shared with Me
- List Shared with Others
- Get File Ancestors
- Create Share Link
- List Share Links
- Update Share Permissions
- List Labels
- Create Label
- Update Label
- Delete Label
- Add Label to File
- List Files by Label
- Star File
- Convert Office File
- List Team Folders
- Get Team Folder Members
- Create Webhook
- List Webhooks
- Get Webhook
- Update Webhook
- Delete Webhook
- Get File Thumbnail
- Upload from DSM
- Request Access
- Custom Drive Call
- List Drive APIs
Convert Office File
AI-generatedSummary
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'.
