ExtractText¶
Extracts the text content of a file.
1 | |
Parameters¶
string id
The ID of the file.
( "plaintext" | "markdown" ) format optional
Output format: "plaintext" (default) or "markdown". Case-insensitive.
Returns¶
The extracted plain text, or Markdown when requested.
Remarks¶
Documents are extracted as Markdown first and converted to plain text by default. When extraction is not possible, it returns an empty string.
Examples¶
Extract the text of an uploaded document¶
1 2 3 4 | |