---
title: Fix PDF Orientation API
slug: auto-correct-pdf-pages
url: https://apyhub.com/flowdocs/service/auto-correct-pdf-pages
provider: FlowDocs
categories: [Data Extraction, File Manipulation, Image Processing]
tags: [pdf, ocr, document-processing, page-rotation, batch-jobs]
auth: api_key
---

# Fix PDF Orientation API

Auto-rotate PDF pages with OCR and track job progress. Returns job IDs, status, progress, and corrected PDF downloads.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Uploads one or more PDF files and starts an OCR-based auto-rotation process to correct… | 50 |
| GET | `/status/:job_id` | What it does Returns the current status of an auto-correct PDF pages job identified by jobid. The r… | 1 |
| GET | `/download/:job_id` | What it does Downloads the finished auto-correct PDF output for a completed job, identified by jobi… | 5 |
| GET | `/overall-status` | What it does Returns the aggregate status and overall progress for one or more auto-correct PDF job… | 1 |

## About

## What it does
PDF Orientation Fixer auto-rotates PDF pages into the correct orientation using OCR. Send one or more PDF files in `files`, and the service creates a job for each file so you can process them asynchronously.

The POST response gives you a `jobs` array with `job_id`, `filename`, `status`, and `progress` for each file. Use `/status/:job_id` to check an individual job; it returns `job_id`, `status`, `progress`, and an optional `error` string when something fails. When a job is finished, `/download/:job_id` returns the corrected PDF as binary output.

If you need to track multiple files together, `/overall-status` accepts `job_ids` as a query value and returns aggregate `status`, `progress`, `total_files`, `completed_files`, and per-job `details`. This is useful for document pipelines that ingest scanned PDFs, rotated uploads, or mixed-orientation archives and need pages normalized before storage, review, or OCR extraction.

Use PDF Orientation Fixer when users upload scans from phones, fax exports, or batch document captures where page rotation is inconsistent and manual correction would be slow.

> **Note:** Pricing is 1 atom per page + 50.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/flowdocs/service/auto-correct-pdf-pages
