Translate a PDF document and stream translated pages as SSE
Changed onpost/text
Request
- Base URL/api/translation (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body multipart/form-data
Example request
{
"targetLanguage": "fr"
}Response
Server-Sent Events stream. Emits page events with TranslationPageEvent payload, then a complete event with TranslationCompleteEvent payload. Emits error with a message payload if processing fails mid-stream.
Changes
- info
added the new optional request property
- info
- info
the request property
became optional - info
the request property
became optional
- info