Convert Base64 to PDF – Step-by-Step Guide

  1. Create a Scenario
  2. Select PDF.co App and Choose Make an API Call Module
  3. Make an API Call Configuration
  4. Add PDF.co App and Convert into PDF Module
  5. Convert into PDF Configuration
  6. PDF.co Test Result
  7. Base64 Converted to PDF

In this tutorial, we will show you how to convert base64 to PDF using PDF.co and Integromat. We will use this sample file as the base64 file and convert it into PDF.

Sample Source File
Sample Source File

Step 1: Create a Scenario

First, click the Create a Scenario button at the upper-right corner of your dashboard.

Step 2: Select PDF.co App and Choose Make an API Call Module

Next, let’s add the PDF.co app and use the Make an API Call module.

Select PDF.co App and Choose Make an API Call Module

Step 3: Make an API Call Configuration

In the API Endpoint Path field, enter the base64 upload endpoint /v1/file/upload/base64.

Make an API Call Configuration

Under the Body section, click on the Add item link. In the Key field, enter the file param. In the Value field, paste the base64 link.

Make an API Call Configuration

Step 4: Add PDF.co App and Convert into PDF Module

Now, let’s add another module. We will use the PDF.co Convert into PDF module to convert documents, spreadsheets, presentations, emails, and single images to PDF.

Add PDF.co App and Convert into PDF Module

Step 5: Convert into PDF Configuration

Now, let’s set up the Convert into PDF module.

  • In the Source File field, select the PDF.co Make an API Call where the file is stored.
  • In the Convert Type field, choose the Document to PDF type to convert a Doc/Docx file to PDF.

Then, click the Run button to see the result and make sure there are no errors in the setup.

 Convert into PDF Configuration

Step 6: PDF.co Test Result

Awesome! PDF.co processed our request successfully. The base64 is converted to PDF. You can copy and paste the URL to view the output.

PDF.co Test Result

Step 7: Base64 Converted to PDF

Here’s the Base64 file that we successfully converted to PDF.

Base64 Converted to PDF
Base64 Converted to PDF

In this tutorial, you learned how to convert Base64 to PDF using PDF.co and Integromat. You learned how to set up the Custom API Call to make a PDF.co request using the /v1/file/upload/base64 endpoint. You also learned how to set up the Convert into PDF module to convert the document into PDF.

Related Pages:

Related Samples: