# Convert PPT to PDF
Convert PowerPoint presentations into downloadable PDF files.
## API Overview
- **HTTP Protocol:** HTTPS
- **HTTP Method:** POST
- **HTTP Endpoint:** https://api.gugudata.io/v1/imagerecognition/ppt-to-pdf
- **Response Type:** application/json; charset=utf-8
- **DEMO Endpoint:** https://api.gugudata.io/v1/imagerecognition/ppt-to-pdf/demo
- **Live Demo:** https://gugudata.io/demo/ppt2pdf
- **Postman:** https://www.postman.com/gugudata/gugudata-io
- **LLM Page:** https://gugudata.io/details/ppt2pdf/llm
- **Raw Markdown:** https://gugudata.io/details/ppt2pdf/llm.md
## Remote MCP
- **MCP Endpoint:** https://mcp.gugudata.io/mcp
- **MCP Guide:** https://gugudata.io/mcp/
- **Authorization:** OAuth authorization opens in the browser; do not paste appkeys into MCP clients.
- **Tool Scope:** MCP clients receive GuGuData API tools available to the authorized account.
## Data & API Features
- PPT and PPTX conversion: Convert modern and legacy PowerPoint files.
- Static slide presentation: Export text, images and shapes; complex effects and fonts may vary.
- Ordered multi-page output: Keep selected slides and blank pages in source order.
- Hidden-slide selection: Exclude hidden slides by default or explicitly include them.
- Upload or link input: Submit a file or a public presentation URL.
- Sharing and archiving workflows: Download a PDF for review, distribution and retention.
## API Request Parameters
| Name | Type | Is Required | Default Value | Remark |
| --- | --- | --- | --- | --- |
| appkey | string | true | YOUR_APPKEY | API key used to authenticate the request. |
| file | file | false | | PPT or PPTX upload. Provide exactly one of file or file_url. Maximum 20 MiB and 50 source slides, including hidden slides. |
| file_url | string | false | | Public HTTP(S) presentation URL, up to 2048 characters. Provide instead of file. |
| include_hidden_slides | boolean | false | false | Include hidden slides when true. By default only visible slides are exported. Selected blank slides retain their position. |
## API Response Parameters
| Name | Type | Remark |
| --- | --- | --- |
| pdfPath | string | Public HTTPS PDF download URL in data.pdfPath. Maximum output 20 MiB. Save files you need to keep; permanent hosting is not guaranteed. |
## API Response Status Codes
| Status Code | Explanation of Status Code | Remarks |
| --- | --- | --- |
| 200 | Request processed successfully. | Some endpoints expose a separate application-level status field in the response body, such as `dataStatus.statusCode`. |
| 400 | Invalid request parameters or request format. | Check required fields, data types, and request body format. |
| 401 | Missing or unknown application key. | Provide a valid `appkey` with the request. |
| 403 | The application key is recognized but access is not allowed. | The key may be expired, inactive, or not permitted for the requested API. |
| 413 | Presentation exceeds input limits. | Use at most 20 MiB and 50 slides. |
| 422 | Presentation cannot be rendered within supported limits. | Use a valid unencrypted PPT or PPTX and reduce slide dimensions if necessary. |
| 429 | Request rate or trial usage limit exceeded. | Reduce request frequency and retry with backoff. If a trial allowance is exhausted, check Trial Keys for remaining requests and subscribe to continue. |
| 500 | Internal service error. | Retry later or contact support if the error persists. |
| 502 | Download or conversion failed or timed out. | Check the file link and try again later. |
| 503 | Conversion is temporarily unavailable. | Try again later. |
## cURL Example
```bash
curl --location 'https://api.gugudata.io/v1/imagerecognition/ppt-to-pdf?appkey=YOUR_APPKEY' --form 'file=@localfile_path.pptx' --form 'include_hidden_slides=false'
```