PDF

Make a scanned PDF searchable (OCR)

Rasterizes every page and adds an invisible, searchable text layer on top with Tesseract, hosted by us. The PDF looks identical, but its text becomes selectable and searchable. Max 30 pages per call; only eng and spa are supported today.

Costs 1 credit PER PAGE, not per call: real OCR work grows with the number of pages, unlike near-instant PDF operations.

post/pdf-ocr

Request

  • Base URL: https://api.cofferdock.com
  • URL: https://api.cofferdock.com/pdf-ocr
  • Auth: API key in header x-api-key

Request body

filestring byte required

The scanned PDF to make searchable, base64-encoded. Up to 30 pages per call.

language'eng' | 'spa'

Language of the text in the PDF: "eng" (English, default) or "spa" (Spanish). Pick the one that matches the text.

output'json' | 'binary' | 'url' | 'pdf'

How to return the pdf: "json" (base64 in the JSON response), "binary" (the pdf itself, ready for n8n/Make/Zapier) or "url" (a temporary download link, valid 15 minutes). Default: json when the request is JSON, binary when the input was sent raw.

Response

Result.

successboolean
pdfstring byte

Changes

No recorded changes to this operation across all 1 revision of this API.