PowerPoint to PDF

Convert Microsoft PowerPoint presentations to PDF format.

POSThttps://api.morphopdf.com/v1/convert/powerpoint-to-pdf

Authentication

AuthorizationBearer

Retrieve your API Key from Dashboard.

Request Body

Provide the PowerPoint file using one of the following methods.

fileFile

PowerPoint file uploaded via multipart/form-data. Supported formats: .pptx, .ppt, .odp

urlstringOptional

Public URL pointing to a PowerPoint file. Alternative to file upload.

Query Parameters

formatstringOptionalDefault: json

Response 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):

successboolean

Indicates whether the operation completed successfully.

messagestring

Human-readable status message.

fileNamestring

Name of the generated PDF file.

downloadUrlstring

Presigned URL to download the converted PDF. Valid for 1 hour.

slidesConvertednumber

Number of slides converted from the presentation.

processingTimeMsnumber

Time taken to process the conversion in milliseconds.

outputSizenumber

Output PDF file size in bytes.

originalSizenumber

Input file size in bytes.

Binary Response

Add ?format=binary to receive the PDF directly with these headers:

  • Content-Type: application/pdf
  • Content-Disposition: attachment; filename="presentation.pdf"

Error Responses

StatusCodeDescription
400INVALID_INPUTNo file provided or invalid file format
401AUTHENTICATION_REQUIREDMissing or invalid API key
413FILE_TOO_LARGEFile exceeds maximum size limit
500PROCESSING_FAILEDInternal processing error
POST/v1/convert/powerpoint-to-pdf
curl -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
200OK
{
  "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
}