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.
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 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.
- 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.
- In the Forcely enable async mode field, select the No, rely on the async parameter in Body.
You may now run the program to check the jobId
.
Test Result
Great! We successfully ran the module and it returned the jobId
.
Tools Menu and Delay Time
Let’s add another module. Click the Tools menu and choose the Sleep action to delay the execution time.
Set Delay Time
Next, set the delay module to delay the execution time.
Select PDF.co App and Make pdfco API Call #2
Again select Make pdfco 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 thejobId
. - Under Body, add the jobId as the key and the result from step 4 as the value.
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.
Output
Here’s the output of the large file using the Custom API Call action and making the scanned PDF searchable.
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.