Reference
Supported formats
Which file types Fetlar reads, writes, fills and compares.
| Format | Extensions | Read | Write | Template | Compare | Search |
|---|---|---|---|---|---|---|
| Word | .docx .docm .dotx .dotm | yes | .docx | .docx .dotx | yes | yes |
| Excel | .xlsx .xlsm .xltx .xltm | yes | .xlsx | .xlsx .xltx | yes | yes |
| Old Excel | .xls (Excel 97-2003) | yes | no | no | yes, with .xlsx or .xls | yes |
| PowerPoint | .pptx .pptm .potx .potm .ppsx .ppsm | yes | no | no | not yet | yes |
| CSV | .csv | yes | yes | no | yes, with CSV or TSV | yes |
| TSV | .tsv | yes | yes | no | yes, with CSV or TSV | yes |
| HTML | .html .htm | yes | no | no | not yet | yes |
Macro-enabled files (.docm, .xlsm, .pptm) are read, and the macros are never run. Fetlar refuses to fill them as templates.
Output formats
Markdown, plain text, JSON, an HTML preview, and Word or Excel files (-t docx, -t xlsx). See Output formats.
Not supported
| Format | What happens |
|---|---|
.doc (old Word) | refused. Not supported yet |
.ppt (old PowerPoint) | refused. Not supported yet |
| Excel 5 and 95 workbooks | refused |
| Password-protected files | refused |
| PDF and images | not read. Fetlar does no OCR |
Reading from bytes
Through fetlar mcp, a text format is told apart by the file name or, for bytes, by their contents.