In this tutorial, we will show you how to convert PDF to TEXT with Bubble API Connector.

  1. My Templates
  2. Create New Template
  3. Edit New Template
  4. Click Start with a Blank Page
  5. Add Design Elements
  6. Click Add Plugins
  7. API Connector Installation
  8. Add Another API
  9. Setup API Connector
  10. Click Add Parameters
  11. Initialize Call Result
  12. Click Add Event
  13. Click Add Action
  14. Dynamic Data
  15. Set Destination
  16. Add Source URL
  17. Converted Text Output
Converted TEXT Output
Converted TEXT Output

Step 1: My Templates

First, log in to your Bubble account and click My Templates.

My Templates

Step 2: Create New Template

Next, create a new template by filling out the template form.

Create New Template

Step 3: Edit New Template

Then, click the Edit icon to open a new template.

Edit New Template

Step 4: Click Start with a Blank Page

Now, click on the Start with a blank page button and close the assistant.

Click Start with a Blank Page

Step 5: Add Design Elements

Under the Visual Elements, click or drag Input for the source file and Button to send the request.

Add Design Elements

Step 6: Click Add Plugins

Click on the Plugins tab and add plugins.

Click Add Plugins

Step 7: API Connector Installation

Lookup for API Connector to install new plugins.

API Connector Installation

Step 8: Add Another API

Once you’re done installing the API Connector plugin, click on the Add another API button.

Add Another API

Step 9: Setup API Connector

Let’s set up the API Connector configuration.

  • In the API Name field, type in your desired API name.
  • In the Name field, enter your preferred name.
  • In the Use as dropdown box, choose the Action option.
  • In the Data Type dropdown box, enter your desired Data type.
  • Select Post for the method and enter the PDF.co PDF to TEXT API endpoint https://api.pdf.co/v1/pdf/convert/to/text. You can get the PDF to JSON API endpoint here.
  • For the 1st Key under Headers, add x-api-key and enter PDF.co API Key for the Value. You can get the API Key in your PDF.co dashboard here.
  • For the 2nd Key under Headers, type accept and application/text for the Value

Setup API Connector

Step 10: Click Add Parameters

Let’s add parameters.

Under Parameters, enter the URL param for the Key and input the source file URL for the Value. Then, tick on the Queryst checkbox and click on the Initialize Call button.

Click Add Parameters

Step 11: Initialize Call Result

Once the API Connector was set up correctly, PDF.co PDF to TEXT will return a URL.

Initialize Call Result

Step 12: Click Add Events

Let’s go to the Workflow tab and click on the box to add an event. Then, click the Elements and An element is clicked option.

Click Add Events

Step 13: Click Add Action

Click on the add an action box and select PDF.co PDF to TEXT – PDF to TEXT plugins.

Click Add Action

Step 14: Dynamic Data

Let’s add the Dynamic Data value.

  • In the URL param, select the Input Source File’s value.

Dynamic Data

Step 15: Map Destination

We will add another action and choose the Open an external website. Then, choose the result of PDF to TEXT’s body URL for the Destination and click the Preview button.

Map Destination

Step 16: Add Source URL

Add the source file URL and click the send request button to get the output.

Add Source URL

In this tutorial, you learned how to convert PDF to TEXT format. You learned how to set up the Bubble API Connector. You also learned how to configure the Workflow and get the converted value.