Process Large Files with PDF.co and Make using Custom API Call Action

We prepared a step-by-step tutorial to process a large file with PDF.co and Make using Custom API Call Action. Here’s the sample file that we will use.

Sample Source File
Sample Source File

Create a Scenario

Create a new Scenario in Make.

Select PDF.co App and Make pdfco API Call #1

Next, select the PDF.co app from the list of apps and choose the Make pdfco API Call for the action event.

Make pdfco API Call
Make pdfco API Call

Make pdfco API Call Configuration #1

Now, let’s set up the Make pdfco API Call Configuration.

  • For the API Endpoint Path field, we will use the /v1/pdf/makesearchable endpoint. This endpoint will turn your scanned PDF into a text-searchable one.
/v1/pdf/makesearchable
/v1/pdf/makesearchable
  • Under Body, add the URL parameter as the key and the source file link as its value. Let’s also set the async param to true to allow large file processing. This will return a job Id which we will use in the next step.
Add URL Parameter
Add URL Parameter
  • In the Forcely enable async mode field, select the No, rely on the async parameter in Body.
Forcely Enable async
Forcely Enable async

You may now run the program to check the jobId.

Test Result

Great! We successfully ran the module and it returned the jobId.

jobId returned
jobId returned

Tools Menu and Delay Time

Let’s add another module. Click the Tools menu and choose the Sleep action to delay the execution time.

Sleep action in Make
Sleep action in Make

Set Delay Time

Next, set the delay module to delay the execution time.

Setting the Delay time
Setting the Delay time

Select PDF.co App and Make pdfco API Call #2

Again select Make pdfco API Call.

Make pdf API Call
Make pdf API Call

Make pdfco API Call Configuration #2

  • For the API Endpoint Path field, we will use the /v1/job/check endpoint. This endpoint will check the jobId.
  • Under Body, add the jobId as the key and the result from step 4 as the value.
job/check endpoint
job/check endpoint

You can now run the program to see the result.

Test Result

Excellent! We got a successful test result. You can copy and paste the URL to view the output.

Test Result
Test Result

Output

Here’s the output of the large file using the Custom API Call action and making the scanned PDF searchable.

Source File Output
Source File Output

In this tutorial, you learned how to process a large file with PDF.co and Make using the Custom API Call action. We also showed you how to use the Make pdfco API Call to make the scanned PDF searchable. Lastly, you also learned how to use the Sleep action to delay execution for a period of time.

There are many other things you can do with the PDF.co and Make, including creating PDFs from scratch.

Related Tutorials

See Related Tutorials