Blog post

Convert Microsoft Office files to PDF with Nutrient Document Web Services API on Zapier

In this tutorial, you’ll learn how to convert DOCX, PPTX, XLSX, and other Office formats into PDFs using the Nutrient Document Web Services API on Zapier. This is ideal for archiving, sharing, or standardizing document output from files uploaded to Google Drive.

Illustration: Convert Microsoft Office files to PDF with Nutrient Document Web Services API on Zapier

What is Zapier?

Zapier is an automation platform that connects your favorite apps and services with no code required. You can build “Zaps” to automate repetitive tasks by setting up triggers and actions between apps like Google Drive, Slack, Gmail, and more.

In this tutorial, you’ll learn how to use Zapier to automatically convert Microsoft Office files to PDFs using the Nutrient API.

What is the Nutrient API?

Nutrient Document Web Services API is a powerful platform for document automation. With your free account, you get 100 credits, which you can use to perform various document operations. Each tool (e.g. conversion, signing, flattening) consumes a different amount of credits depending on complexity.

Nutrient offers more than 30 tools with the ability to:

  • Convert images and documents to PDF

  • Merge, split, or reorder pages

  • Add digital signatures, watermarks, or annotations

  • Run OCR, redact, flatten, and more

All you need is an API key from a free account to get started. You can chain these tools together in Zapier to build powerful, automated PDF workflows.

What you’ll need

  • A Zapier account (a pro plan is necessary for multi-step Zaps)

  • A Google Drive account

  • A supported Office document (DOCX, XLSX, PPTX, DOC, PPT, XLS, RTF, or ODT) uploaded to a Google Drive folder

  • A Nutrient Document Web Services API key — sign up here

Step 1 — Trigger a new file in a Google Drive folder

  1. Select Google Drive as the trigger app.

Select Google Drive as the trigger app in Zapier

  1. Choose the New File in Folder trigger event.

Choose ‘New File in Folder’ as the trigger event

  1. Connect your Google Drive account.

  2. Configure the trigger:

  • In the Drive field, select your Google Drive.

Select which Drive to monitor for new files

  • In the Folder field, select or create a folder (e.g. office-to-pdf).

Choose or create the folder to watch for Office files

  • Ensure that the option for Include Deleted Files? is set to Only return non-deleted files.

  1. Test the trigger by selecting a sample DOCX or PPTX file from the folder to confirm it’s being pulled into the Zap correctly. You can use our sample file for testing this step.

Test the trigger by pulling in a sample Office file

Step 2 — Convert Office file to PDF (Nutrient API)

  1. Select Nutrient Document Web Services API as the action app.

Select Nutrient API as the action app in Zapier

  1. Choose the Convert Microsoft Office File to PDF action.

Choose ‘Convert Microsoft Office File to PDF’ as the action event

  1. Connect your Nutrient API account with your API key.

Paste your Nutrient API key to connect your account

You can find your API key in the Nutrient dashboard.

Locate and copy your API key from the Nutrient dashboard

  1. Fill out the action fields:

  • Microsoft Office File URL — Use the file from step 1 (Google Drive trigger).

  • Output File Name — Optional (e.g. converted_presentation.pdf).

Configure the file URL and output file name for Office to PDF conversion

The file must be accessible via a public URL or direct download link (Zapier will handle this if sourced from Google Drive).

  1. Test the step to confirm the Office file is successfully converted to PDF.

Run a test to verify the Office file was converted to PDF

Step 3 — Upload the PDF to Google Drive

  1. Add a new step by selecting Google Drive as the app and Upload File as the action event. Connect your Google Drive account if needed.

Choose ‘Upload File’ as the final action to save the PDF

  1. Select your drive and the folder where the converted PDF should be saved. In the File field, use the output from the Nutrient API step. Optionally, set a custom file name or extension to keep things consistent and organized.

Map the converted PDF file from the previous step

Zapier may warn you about a potential Zap loop if you use the same folder for the input and the output. You can avoid this by uploading the updated file to a different folder.

  1. Test the Zap to confirm that the converted PDF is uploaded to your target folder.

Final test step to confirm the PDF was uploaded to Google Drive

Conclusion

With this Zap, you’ve automated the process of converting Microsoft Office documents into standardized PDF files using the Nutrient API. This flow is great for document delivery, archiving, or simplifying file formats across your workflows. You can build on this flow by chaining it with other tools like flattening, signing, or merging PDFs.

Author
Hulya Masharipov
Hulya Masharipov Technical Writer

Hulya is a frontend web developer and technical writer at Nutrient who enjoys creating responsive, scalable, and maintainable web experiences. She’s passionate about open source, web accessibility, cybersecurity privacy, and blockchain.

Free trial Ready to get started?
Free trial