How to Extract Bold Text from HTML or PDF Files using PDF.co and Zapier
Sep 2, 2024·4 Minutes Read
We prepared this step-by-step tutorial with screenshots to teach you how to extract bold text from HTML or PDF Files using PDF.co and Zapier. We’ll be using the sample PDF below for this tutorial.
![Screenshot of the Source File](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F3d8fa992091aaaecd5bcf1947148aaa391e4a957-751x501.png&w=1920&q=75)
Step 1: Make a Zap
- First, log into your Zapier account and click on the Create Zap button.
Step 2: Select Google Drive as the Trigger App
- Next, search and select Google Drive from the list of available apps.
![Choose Google Drive as trigger app](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F64ceb18d5934140bc44b456bc2057df5b7e275b9-894x608.png&w=1920&q=75)
Step 3: Choose New File in Folder as the Trigger Event
- Then, choose the New File in Folder to trigger when a new file is added to a folder.
![Choose New File in Folder as the Trigger Event](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F1f148b7d8444423bfe96c91b391d2f4144886804-882x437.png&w=1920&q=75)
Step 4: Select Drive and Folder
Let’s set up the trigger.
- First, select My Google Drive as the Drive to be used.
- Next, enter the specific folder where the file was stored.
![Select Drive and Folder](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F64cb8993559170dca7d48bcfe924603366ab528d-849x386.png&w=1920&q=75)
Step 5: Test Trigger
- After setting up the trigger, click on the test trigger button to make sure that we set it up correctly.
![Test trigger](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F0771e23431cc68aae483545b50ce2639b45c0b32-827x406.png&w=1920&q=75)
We’re now done setting up the trigger for this Zap. Let’s now move on to the action.
Step 6: Select PDF.co as the Action App
- In this step, let’s add another app and select PDF.co from the list of available apps.
![Choose PDF.co as the Action App](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F483b84a1b82315ba5e5dea0f7354b1db6b8cfb72-882x598.png&w=1920&q=75)
Step 7: Choose PDF to Anything Converter as the Action Event
- Next, choose the PDF to Anything Converter option to extract bold text from the PDF document in JSON format.
![Choose PDF to Anything Converter as the action event](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fc485934e143a11754b1a48480dec47059c757d3b-825x324.png&w=1920&q=75)
Step 8: Setup Action
Let’s set up the PDF.co action.
- For the Output Format field, choose JSON (text objects and forms).
- For the PDF URL field, choose Web Content Link on the search bar to automatically get the URL of your file in Google Drive.
- For the Pages field, put 0- to select all pages.
![Setup action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Ff871b14f69545536e65d43a354aea9f21fa4397c-817x769.png&w=1920&q=75)
Step 9: Test Action
- We will now Test the action to check for errors if there are any.
![Test action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Ffc78a20879637ef9b01ca970ecfd187ccdc370ce-819x656.png&w=1920&q=75)
Step 10: Extracted JSON Output
- Here is the extracted bold text from the PDF document in JSON format.
![Extracted JSON Output](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fc798b20b15f3062f63e67bec69468b8ca45708b5-412x519.png&w=828&q=75)
In this tutorial, you’ve learned how to extract bold text from HTML or PDF Files using PDF.co and Zapier.
Video Guide
Related Tutorials
![Tutorial default thumbnail](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ftutorial-placeholder.de8908df.png&w=3840&q=75)
Extract Text with Format from PDF or XPS using PDF.co and Make
Sep 9, 2024·4 Minutes Read
![Tutorial default thumbnail](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ftutorial-placeholder.de8908df.png&w=3840&q=75)
![Tutorial default thumbnail](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ftutorial-placeholder.de8908df.png&w=3840&q=75)
Extract Text with Format from PDF or XPS using PDF.co and Zapier
Sep 2, 2024·2 Minutes Read
![Tutorial default thumbnail](/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ftutorial-placeholder.de8908df.png&w=3840&q=75)
Extract Text from Scanned PDF in JavaScript using PDF.co Web API
Jan 9, 2025·6 Minutes Read