Actions18
Extract ODG
AI-generatedSummary
Extracts ODG file blocks and metadata at the specified detail level, using LibreOffice conversion when a server URL is provided and falling back to text extraction otherwise.
Inputs
- binaryPropertyName — Name of the binary property containing the file; defaults to 'data'.
Output shape
An array containing one item with a json property. json.blocks holds the extracted content blocks; json.metadata holds file information including fileName, fileSize, fileType, mimeType, and originalFileSize if available, plus libreOfficeError if fallback text extraction was used.
The
structuredLevelparameter (Raw/Basic/Full) controls the granularity ofblocks. ThelibreOfficeUrlparameter is optional; if left empty, conversion falls back to text extraction and may setlibreOfficeErrorin metadata.
Examples
Example 1: Extract ODG from binary property 'data' at Full detail
binaryPropertyName: 'data', structuredLevel: 'full', libreOfficeUrl: ''