PDF to PPTX Python API
Convert PDF files to PPTX using our Python PDF to PPTX API.
Preserve layout and formatting
Accurately convert text, headings, tables, and styles into Office format while maintaining the structure of the original PDF.
Automate with Zapier
Automatically convert PDF files in Google Drive to Office files using our Zapier integration. A no-code workflow to instantly create editable Word documents from PDFs.
Edit without starting over
Quickly edit or repurpose content from PDFs directly in Office files.
Nutrient is used by
Try it out
This example will convert your uploaded PDF file to a PPTX.
Use Your Free API Calls
Sign up and receive 200 credits / month for free, or log in to automatically add your API key to sample code. If you are not sure how credits are consumed read more in our pricing documentation , or check out this guide on calculating credit usage.
Add a File
Add a PDF file named input.pdf
to your project folder. You can also use our sample file.
The file name is case sensitive. Make sure the file name matches the file name in the sample code.
Run the Code
Copy the code and run it from the same folder you added the files to. For more information, see our language-specific getting started guides.
View the Results
Open
result.pptx
in your project folder to view the results.
import requests
import json
response = requests.request(
'POST',
'https://api.nutrient.io/build',
headers = {
'Authorization': 'Bearer your_api_key_here'
},
files = {
'file': open('input.pdf', 'rb')
},
data = {
'instructions': json.dumps({
'parts': [
{
'file': 'file'
}
],
'output': {
'type': 'pptx'
}
})
},
stream = True
)
if response.ok:
with open('result.pptx', 'wb') as fd:
for chunk in response.iter_content(chunk_size=8096):
fd.write(chunk)
else:
print(response.text)
exit()
Your API key
Get access to your API key when you create an account. Once your account has been created, you’ll get 200 credits / month for free.
Your API key has automatically been inserted into the API example code. Run the sample code in your terminal to execute the API call.
Security is our top priority
No document storage
No input or resulting documents are stored on our infrastructure. All files are deleted as soon as a request finishes. Alternatively, check out our self-hosted product.
HTTPS encryption
All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.
Safe payment processing
All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.