Skip to main content

Convert PDF to Editable PDF using OCR

Find & SearchConvert PDF to Editable PDF using OCR

The Convert PDF to Editable PDF using OCR API turns image-based or scanned PDFs into searchable, editable PDFs using OCR. You send the PDF as Base64 (docContent), docName, qualityType (Draft or High), ocrWhenNeeded (true/false), optional language, outputFormat, isAsync, and optionally mergeAllSheets. The API returns the converted PDF (editable text layer). Use the tester below to try it; more details are in the sections that follow.

Try the Convert PDF to Editable PDF using OCR API

Quick reference

Endpoint: POST /api/v2/ConvertOcrPdf · Required: api-key, docContent, docName, qualityType, ocrWhenNeeded, outputFormat, isAsync

Try it live

Use the form below to send your API key, PDF (Base64), quality (Draft/High), and whether to run OCR only when needed. The response is the converted editable PDF. No code required—fill the fields and click Send request.

Loading API Tester...

Overview, parameters, and use cases

What is Convert PDF to Editable PDF using OCR?

This endpoint converts image-based or scanned PDFs into fully editable, searchable PDFs using OCR. You provide the PDF (Base64), qualityType (Draft for faster processing, High for better accuracy on scanned documents), ocrWhenNeeded (true to skip OCR if text is already searchable, false to always run OCR), and optional language. The API returns a PDF with an invisible text layer so text can be selected, searched, and edited.

Key features

  • OCR – Extracts text from scanned or image-based PDFs and adds a searchable text layer.
  • QualityqualityType: Draft (faster, 1 call per file) or High (better accuracy, 2 calls per page for scanned docs).
  • ocrWhenNeededtrue skips OCR when the PDF already has searchable text; false always runs OCR.
  • Language – Optional language (e.g. English, Spanish, French, German) for better recognition.
  • AsyncisAsync for large or multi-page scanned PDFs.
Best for

Use when you have scanned documents or image-only PDFs and need searchable, editable text. For extracting text only use Extract Resources or Image Extract Text.

Prerequisites

Before using this endpoint, make sure you have:

  • A valid PDF4me API key (Get your API Key)
  • A PDF document in Base64 format or a public URL to a PDF file

Response Format

The API returns a JSON response with the converted editable PDF encoded in Base64 format.

Get Help