Skip to main content

Make a Scanned PDF Searchable in Power Automate: A 4-Action Dropbox OCR Flow

8 min read
PDF4me Team

Convert PDF to editable PDF using OCR is a PDF4me action for Power Automate that adds a searchable text layer to a scanned document. This walkthrough wires it into a four-action flow: a manual trigger, Dropbox Get file content using path, the OCR action, then Dropbox Create file. It reads a two page scan from /pdf4metest/tempocrtest/ocrdevtest_2page.pdf. Swap the paths for yours and keep the wiring.

The short version

1. Manually trigger a flow → 2. Dropbox, Get file content using path with Infer Content Type on Yes → 3. PDF, Convert PDF to editable PDF using OCR: QualityType Draft, OCR Only When Needed false, Language en, Is Async No → 4. Dropbox, Create file with File Content from the OCR step.

The output looks identical whether the OCR worked or not

OCR leaves the page image untouched, so the document looks right whether the recognition was perfect or terrible. The only way to check is to open the output and search it for a word you can see on the page.

What you are automating​

OCR adds an invisible text layer positioned behind the picture of the page. The scan you see on screen stays exactly as it was, and the words underneath it become text a system can index and search.

At a glance​

  1. Manually trigger a flow
  2. Get file content using path (Dropbox)
  3. Convert PDF to editable PDF using OCR (PDF4me)
  4. Create file (Dropbox)
The completed Power Automate run making a scanned PDF searchable, every step ticked green
Trigger, Get file content using path, OCR, Create file.

Why this pattern works​

The page image is untouched

The text layer sits behind the existing page image, so the searchable copy looks exactly like the scan it came from.

The original stays

The OCR output is a new file. If the recognition turns out to be poor on a particular batch, you want the source to re-run against with different settings.

A production trigger drops in

Swap the manual trigger for When a file is created on the folder your scanner writes to. Everything downstream stays the same.

Before you start​

Checklist
  • The PDF4me PDF connector in your Power Automate environment.
  • A storage connection. This flow uses Dropbox.
  • A scanned PDF. This flow reads a two page scan from /pdf4metest/tempocrtest/ocrdevtest_2page.pdf.

Build the flow​

Step 1: Manually trigger a flow​

For a real archive, swap Manually trigger a flow for When a file is created on the folder your scanner writes to. Everything downstream stays the same, and the backlog takes care of itself from then on.

Step 2: Get file content using path (Dropbox)​

Flow so far: trigger only.

  1. Add Dropbox: Get file content using path.
  2. File path: the scan to read. This flow uses /pdf4metest/tempocrtest/ocrdevtest_2page.pdf.
  3. Infer Content Type: Yes.
The Dropbox Get file content using path step reading the scanned PDF
Step 2: Get file content using path, with Infer Content Type on Yes.

Step 3: Convert PDF to editable PDF using OCR (PDF4me)​

Flow so far: trigger, Get file content using path.

  1. Add PDF: Convert PDF to editable PDF using OCR.
  2. Map the file content and the file name from Get file content using path.
  3. Set the four fields in the table below.
FieldValue hereNotes
QualityTypeDraftThe setting PDF4me uses for OCR throughout
OCR Only When NeededfalseOCR everything. true skips files that already have text
LanguageenThe document's language, not your flow's
Is AsyncNoWaits for the result
The PDF4me OCR step with QualityType Draft, OCR Only When Needed false and Language en
Step 3: QualityType stays on Draft.
The rest of the same step, showing Is Async set to No
The rest of the same step: Is Async on No.

OCR Only When Needed is the setting that pays off at scale. On a mixed folder, where some PDFs came off a scanner and others were exported from Word, true checks for an existing text layer and skips the ones that have one. Across a few thousand documents that is a meaningful amount of processing you simply do not do. Set it false, as here, when you know everything in the folder is a scan and the check is wasted effort.

Language deserves a moment of thought rather than being left at the default. OCR works by matching shapes against the letter and word patterns of a language, so telling it the wrong one measurably hurts accuracy. If you process documents in several languages, that is an argument for routing by folder rather than running one flow over everything.

Step 4: Create file (Dropbox)​

Flow so far: trigger, Get file content, OCR.

  1. Add Dropbox: Create file.
  2. Set the folder to the output folder.
  3. File Name: a name that marks it as the searchable version.
  4. File Content: from the OCR step.
The Dropbox Create file step writing the searchable PDF
Step 4: Create file writes the searchable copy.

Keep the original. OCR output is a new file, and if the recognition turns out to be poor on a particular batch you want the source to re-run against with different settings.

Output check​

The searchable copy lands in the output folder under a name that marks it as the OCR'd version, and it still looks like the scan it was. Open it and search for a word you can see on the page.

Quick reference​

#ActionWhat to set
1Manually trigger a flowNothing. Swap for When a file is created on the scanner's folder
2Get file content using pathFile path, Infer Content Type Yes
3Convert PDF to editable PDF using OCRQualityType Draft, OCR Only When Needed false, Language en, Is Async No
4Create fileOutput folder, a searchable-version File Name, File Content from the OCR step

Troubleshooting​

Searching the output finds nothing

Check Language first. Then check the scan itself: OCR cannot read what a human cannot, and a skewed or low contrast scan needs fixing at the scanner.

The flow is slow across a large folder

Set OCR Only When Needed to true.

Large files time out

Set Is Async to Yes.

What to try next​

FAQ​

How do I make a PDF searchable in Power Automate?​

Add the PDF4me Convert PDF to editable PDF using OCR action, map File Content from your storage step, set Language to match the document, and write the result with Create file.

Can I skip files that are already searchable?​

Yes. Set OCR Only When Needed to true and files with an existing text layer pass through untouched. Worth doing on any mixed folder.

Does OCR change how the document looks?​

No. It adds an invisible text layer behind the existing page image. The appearance is unchanged.

How do I check the OCR actually worked?​

Open the output and search for a word you can see on the page. The document looking correct tells you nothing, because the image was never altered.

Set the paths to your own folders, set Language to the language of your own documents, and swap the manual trigger for When a file is created when you are ready to leave it running.