CloudConvert icon

CloudConvert

Use CloudConvert to convert files, create thumbnails, merge files, add watermarks and more!

PDF → Add PDF OCR Layer

AI-generated

Summary

Add an OCR (Optical Character Recognition) text layer to a scanned PDF file, enabling text extraction and searchability.

Inputs

  • Authentication (required) — Choose between OAuth2 (recommended) or API Key to authenticate with CloudConvert.
  • Binary Input Data (required) — Set to true to take the input PDF file from binary data; set to false to provide text content.
  • Input File Contents (required) — Provide the text content of the PDF file to upload when Binary Input Data is false.
  • Binary Property (required) — Name of the binary property containing the PDF file data when Binary Input Data is true.
  • Auto Orient — Enable to automatically detect and correct page orientation before performing OCR (default: true).
  • Languages — Comma-separated list of language codes to use for OCR, e.g., 'eng,deu'.

Output shape

One or more binary PDF files with OCR layers, each as a binary property in output items.

The operation processes each input item separately. Each output item contains the processed PDF file with the OCR text layer added. Outputs are returned as binary files keyed by 'data' or the input binary property name.

Links

Discussion