create_presentation_from_file
Convert an uploaded document (PDF, Word, PowerPoint, text) into a professional presentation. Choose output format and preservation mode for tailored slides.
Instructions
Convert an uploaded document (PDF, Word, PowerPoint, plain text, markdown, RTF) into a presentation. Use when the caller already has a source document. Max 5 MB after base64 encoding. Supports the same preservation modes as create_presentation_from_content. For pasted raw text use create_presentation_from_content. Returns a job ID; poll check_job_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_data | Yes | Base64-encoded file contents. Max 5 MB encoded size. | |
| file_name | Yes | Original filename including extension. | |
| mime_type | Yes | MIME type of the source document. Must match the file extension. | |
| exportType | Yes | Output format. See create_presentation_from_topic for options. | |
| preservationMode | No | How to handle the content. 'preserve' auto-counts slides; other modes need slideCount. | |
| slideCount | No | Number of slides. Required unless preservationMode is 'preserve'. | |
| topic | No | Title override, or instruction text when preservationMode is 'instruction'. | |
| language | No | ISO 639-1 language code. Defaults to 'en'. | |
| domain | No | Company domain for branding context. | |
| target_audience | No | Audience profile. | |
| tone | No | Voice and register. | |
| callback_url | No | HTTPS webhook posted when the job finishes. |