Skip to main content

Text Highlighting (Zapier)

What this action does

Text Highlighting scans a PDF for every word or phrase you specify and paints them with your chosen color — all in one Zapier step, no manual marking. Supply a TextHighlightList of text-plus-hex-color pairs and the step returns a new annotated PDF ready to route into any downstream app: Drive, Dropbox, email, Slack, or a database.

Connect PDF4me

Every PDF4me action in Zapier requires authentication. Enter your API key once and it applies to every PDF4me step in your account.

Supply File or File URL — not both

Use File when a previous Zap step gives you a PDF attachment object (for example "2. File"). Use File URL when you only have a direct download link. Pair whichever you choose with File Name so runs are traceable in logs.

Configure the step

Open the Configure tab. Map File from the step that produced the PDF, then build File Name from name and extension tokens. Under TextHighlightList, click Add to insert each text-color pair.

Zapier PDF4me Text Highlighting Configure tab showing File mapped from a prior step, File Name assembled from name and extension tokens, and a TextHighlightList with one item containing Text and HighlightColor fields

Map File from the step that produced your PDF. Build File Name from name and extension fields from your trigger. Add each word-color pair to TextHighlightList.

Important facts

Native PDFs only

Text Highlighting works on PDFs with a real text layer. Scanned image PDFs need an OCR step first to create a searchable layer before highlights can be applied.

Multiple colors per call

Add as many items to TextHighlightList as you need. Each item has its own Text and HighlightColor — yellow for keywords, green for dates, red for risks — all processed in one step.

Hex color format

HighlightColor accepts standard six-digit hex codes: #FFFF00 (yellow), #90EE90 (green), #FF2C00 (red). The hash prefix is required.

Field reference

ParameterUsuallyPurposeExample map
FileOften usedBinary PDF from a prior Zap step when you have a file attachment object.`2. File`
File URLOptionalPublic or signed URL to the PDF when you do not have a file attachment object.n/a
File NameRecommendedFilename with extension for logging. Combine name and extension tokens when your trigger splits them.`2. File Name` + `2. File Ext`
TextHighlightList › TextRequired per itemThe exact word or phrase to find and highlight inside the PDF.`invoice`, `URGENT`
TextHighlightList › HighlightColorRequired per itemSix-digit hex color to paint matched text. Include the # prefix.`#FFFF00`, `#FF2C00`

How to highlight text in a PDF with Zapier

1
Open or create a Zap

Sign in to Zapier and open an existing Zap, or click Create Zap to start fresh.

2
Set up a Trigger

Pick any app that supplies a PDF — Dropbox, Google Drive, Gmail, Webhooks, or any cloud storage that fires when a file arrives.

3
Add a PDF4me action step

Click the + button, search for PDF4me, and choose Text Highlighting as the Event.

4
Connect your account

If prompted, enter your PDF4me API key. You only authenticate once per Zapier account.

5
Map File or File URL

On the Configure tab, map File from your trigger when it hands you a file object, or enter a File URL when you only have a download link. Use one input, not both.

6
Set File Name

Build File Name from the name and extension tokens your trigger provides, for example "2. File Name" + "2. File Ext". This keeps runs traceable in Zapier history.

7
Define your highlight list

Under TextHighlightList, click Add and enter the Text to find and the HighlightColor as a hex code. Repeat for every word-color pair you need.

8
Test and activate

Click Test step and check that the output shows a File URL pointing to the annotated PDF. Open the link to confirm colors are applied correctly, then turn the Zap on.

Output

After a successful test or live run, the step returns:

Output fieldWhat it contains
FileThe annotated PDF file object — map this into any upload or send step.
File URLTemporary signed URL to download the highlighted PDF.
File NameFilename of the returned file, typically matching what you provided.
File ExtensionExtension of the output file, usually pdf.

Workflow patterns

Workflow patternsReal-world Zap patterns using Text Highlighting — swap apps to match your stack.
Contract review highlight
  1. New PDF contract uploaded to Google Drive.
  2. Text Highlighting marks "Liability", "Termination", "Indemnity" in red.
  3. Upload highlighted PDF back to a review folder in Drive.
  4. Send a Slack notification with the file link.
Invoice keyword audit
  1. New invoice email attachment triggers the Zap.
  2. Highlight "OVERDUE", "Past Due", and "Final Notice" in yellow.
  3. Email the marked invoice to the finance team automatically.
Compliance document annotation
  1. Policy PDF lands in a Dropbox folder.
  2. Highlight regulatory terms in blue, action items in green.
  3. Save annotated PDF to SharePoint for compliance archive.

Frequently asked questions

Can I highlight multiple different words with different colors in one step?+
Yes. Add multiple items to TextHighlightList, each with its own Text and HighlightColor. All highlights are applied in a single API call and the step returns one annotated PDF.
What color format does HighlightColor accept?+
Six-digit hex RGB format: #RRGGBB — for example #FFFF00 for yellow, #90EE90 for light green, or #FF2C00 for red. Always include the # prefix. Three-character shorthand (#FFF) is not supported.
Does this work on scanned PDFs?+
No. Text Highlighting requires a native text layer. For scanned documents, run an OCR action first to produce a searchable PDF, then pass that output into Text Highlighting.
Should I use File or File URL?+
Use File when a prior Zap step gives you an attachment object. Use File URL when you only have a link to the PDF bytes. Fill one of those two inputs per run.
Where does the output PDF go after the step finishes?+
The step returns a File URL and File object you can map directly into the next action — upload to Google Drive, attach to a Gmail, post to Slack, or save to Airtable.

Get Help