---
search:
  tags:
    - Documents
    - POST
seo:
  description: >-
    Runs ocrmypdf --skip-text in the pdf-tools container — pages that lack a
    text layer are… Reference for the POST /documents/pdf/ocr endpoint in the
    Seal API.
sidebar:
  label: OCR a draft PDF (add a searchable text layer)
  badge: POST
title: OCR a draft PDF (add a searchable text layer)
type: openapi-operation
---
Runs ocrmypdf --skip-text in the pdf-tools container — pages that lack a text layer are OCR'd and existing text is preserved. The searchable PDF claims the document's storageKey. Honours the org `egress.allow_convert` gate.

`POST /documents/pdf/ocr`
