PDF OCR Convert API

Start building for free today – no credit card required.

Transform scanned PDF documents into searchable, selectable text files with our powerful OCR API. Convert image-based PDFs into fully accessible documents with selectable text, making them searchable and editable. Perfect for digitizing archives, processing invoices, and automating document workflows.


Benefits of our PDF OCR Convert API

Unlock the full potential of your scanned documents with our advanced OCR Convert API. Transform image-based PDFs into fully searchable, accessible documents with selectable text layers. Whether you're digitizing paper archives, processing invoices, or automating document workflows, our API delivers accurate text recognition that preserves your original document layout while making content fully accessible and editable.

Read our API documentation to learn how to convert scanned PDFs to searchable documents.

Multi-language Code Example

curl -X POST https://apdf.io/api/pdf/ocr/convert \
  -H "Authorization: Bearer TOKEN" \
  -d file="FILE_URL"
const data = new FormData();
data.append('file', 'FILE_URL');

fetch('https://apdf.io/api/pdf/ocr/convert', {
    headers: {'Authorization': 'Bearer TOKEN'},
    method: 'POST',
    body: data
})
.then(response => response.json())
.then(json => console.log(json));
use GuzzleHttp\Client;

$client = new Client();
$response = $client->post(
    'https://apdf.io/api/pdf/ocr/convert', [
    'headers' => [
        'Authorization' => 'Bearer TOKEN'
    ],
    'form_params' => [
        'file' => 'FILE_URL'
    ]
]);

$body = $response->getBody();
echo json_encode($body->getContents());
require 'rest-client'

response = RestClient.post(
  'https://apdf.io/api/pdf/ocr/convert',
  {
    'file' => 'FILE_URL'
  },
  {
    Authorization: "Bearer TOKEN"
  }
)

puts response.body
import requests

response = requests.post(
    'https://apdf.io/api/pdf/ocr/convert',
    headers = {
        'Authorization': 'Bearer TOKEN'
    },
    data = {
        'file': 'FILE_URL'
    }
)

print(response.text)
import (
  "fmt"
  "github.com/go-resty/resty/v2"
)

func main() {
  client := resty.New()
  data := map[string]string{
    "file": "FILE_URL"
  }

  resp, _ := client.R().
    SetFormData(data).
    SetHeader("Authorization", "Bearer TOKEN").
    Post("https://apdf.io/api/pdf/ocr/convert")

  fmt.Println(resp.String())
}
import okhttp3.*;

class Pdf {
  public static void main(String[] args) throws Exception {
    OkHttpClient client = new OkHttpClient();
    FormBody formBody = new FormBody.Builder()
      .add("file", "FILE_URL")
      .build();

    Request request = new Request.Builder()
      .url("https://apdf.io/api/pdf/ocr/convert")
      .addHeader("Authorization", "Bearer TOKEN")
      .post(formBody)
      .build();

    Response response = client.newCall(request).execute();
    System.out.println(response.body().string());
  }
}

No-Code OCR PDF Conversion

Integrate our PDF API with Zapier Webhooks to automate your OCR conversion workflows effortlessly. Whether you're digitizing scanned contracts, invoices, or historical documents, you can trigger OCR conversion from hundreds of apps supported by Zapier. Automatically transform image-based PDFs into searchable documents with selectable text, eliminating manual retyping and enabling full-text search capabilities.


Start using our API today — no trial needed!
Get Started for Free