PowerPoint to PDF
Convert Microsoft PowerPoint presentations to PDF format.
https://api.morphopdf.com/v1/convert/powerpoint-to-pdfAuthentication
Retrieve your API Key from Dashboard.
Request Body
Provide the PowerPoint file using one of the following methods.
fileFilePowerPoint file uploaded via multipart/form-data. Supported formats: .pptx, .ppt, .odp
urlstringOptionalPublic URL pointing to a PowerPoint file. Alternative to file upload.
Query Parameters
formatstringOptionalDefault: jsonResponse format. Use 'binary' to receive the PDF directly, or 'json' (default) to receive metadata with a download URL.
Supported Formats
This endpoint accepts the following presentation formats: .pptx, .ppt, .odp
Response
When using format=json (default):
successbooleanIndicates whether the operation completed successfully.
messagestringHuman-readable status message.
fileNamestringName of the generated PDF file.
downloadUrlstringPresigned URL to download the converted PDF. Valid for 1 hour.
slidesConvertednumberNumber of slides converted from the presentation.
processingTimeMsnumberTime taken to process the conversion in milliseconds.
outputSizenumberOutput PDF file size in bytes.
originalSizenumberInput file size in bytes.
Binary Response
Add ?format=binary to receive the PDF directly with these headers:
Content-Type: application/pdfContent-Disposition: attachment; filename="presentation.pdf"
Error Responses
| Status | Code | Description |
|---|---|---|
| 400 | INVALID_INPUT | No file provided or invalid file format |
| 401 | AUTHENTICATION_REQUIRED | Missing or invalid API key |
| 413 | FILE_TOO_LARGE | File exceeds maximum size limit |
| 500 | PROCESSING_FAILED | Internal processing error |
/v1/convert/powerpoint-to-pdfcurl -X POST "https://api.morphopdf.com/v1/convert/powerpoint-to-pdf?format=binary" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@presentation.pptx" \
--output presentation.pdf{
"success": true,
"message": "File processed successfully",
"fileName": "presentation.pdf",
"downloadUrl": "https://files.morphopdf.com/sessions/abc123/output/presentation.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&...",
"slidesConverted": 20,
"processingTimeMs": 2500,
"outputSize": 1048576,
"originalSize": 2097152
}