A Docker image that adds an OCR text layer to scanned PDF files using PDFix SDK and Tesseract OCR.
You need Docker installed. The first run downloads the image and may take longer than later runs.
Mount a folder into the container and run a subcommand:
docker run --rm -v "$(pwd)":/data -w /data pdfix/ocr-tesseract:latest <command> [options]ocr: OCR a scanned PDF (PDF → PDF)
| Option | Required | Type / expected value | Description |
|---|---|---|---|
--input, -i |
yes | Path to an existing .pdf file |
Input PDF |
--output, -o |
yes | Path for the output .pdf file |
Output PDF |
--lang |
no | Tesseract language code string (e.g. eng); empty uses default handling |
OCR language |
--name |
no | String (PDFix account license name) | PDFix license name |
--key |
no | String (PDFix account license key) | PDFix license key |
OCR a scanned PDF:
docker run --rm -v "$(pwd)":/data -w /data pdfix/ocr-tesseract:latest \
ocr --name "${LICENSE_NAME}" --key "${LICENSE_KEY}" \
-i /data/scanned.pdf -o /data/ocr.pdf --lang engFor PDFix SDK licensing or issues, contact support@pdfix.net.