The orientation of the scanned PDF page is reversed. How to correct it before OCR?

When the scanned pages are laid out horizontally, upside down, or the orientation of several pages is different, OCR recognition is prone to errors. This article explains how to first determine the orientation page by page, then rotate the page in the PDF editor, and finally perform recognition and check the results.

Key points of this article

  • The scanned document first determines whether the text can be selected. If not, it will be a picture page, which needs OCR first to turn it into editable text.
  • When the page is upside down or horizontal, rotate it to the forward orientation in the PDF editor first, and then perform OCR. The recognition results are usually more complete.
  • If there are reversed pages in the same scan, check them page by page and rotate only the pages that need to be adjusted, not the entire page.
  • After the recognition is completed, numbers, formulas, names and title levels must be checked. Machine recognition may make mistakes, and important content needs to be confirmed manually.

After many people submitted their scans to OCR, they found that the recognized text was all garbled, or the order of the paragraphs was reversed. When you open the original document, you will find that the problem is often not the recognition itself, but the page orientation is wrong: some pages are placed sideways, some pages are upside down, and some pages are mixed in and placed upside down. At this time, if you change the identification tool or try again and again, the results will mostly not improve.

If you are processing a picture PDF and want to know how to convert the picture PDF into editable text, this article gives a sequence: first determine whether the file is a scan, then confirm the orientation page by page, straighten the page, and finally perform OCR and check the results. The entire process can be completed in OmniDoc's PDF editor, and there is no need to find additional tools.

The scanned page is reversed. Do I need to correct it before OCR? One sentence conclusion: Yes, correct it first and then identify it, the result will be more reliable.

OCR recognizes according to the text arrangement on the page. If the page orientation is wrong, the recognition engine will treat vertical, upside down or sideways text as abnormal content. After the text is corrected and then recognized, the paragraph order and title position will be closer to the original text. The table below gives the methods according to the situation.

your situationRecommended practicesreason
The entire scan is upside down.Rotate uniformly 180 degrees in the PDF editor, check and then OCRThe direction is unified, only one adjustment is needed, and the recognition sequence will not be messed up.
Only some pages are placed horizontallyOnly rotate these pages and keep the other pages unchanged.Avoid corrupting normal pages, and the scope of modification is small.
Several pages of forward and several pages of reverse mixedTurn through the pages one by one, note the angle required for each page, and rotate the pages one by one.The mixed direction cannot be processed at one time, so check it page by page to ensure it is safe.
The page orientation is correct, but there are still a lot of typos in the recognitionZoom in to check clarity and tilt, and rescan if necessaryOrientation is not the main reason, image quality is
The original documents need to be retainedSave a copy first, rotate and identify on the copyThe original remains unchanged, and you can return to the starting point and reprocess it if something goes wrong.

First determine what kind of problem it is

The performance of direction problems and other problems are sometimes very similar. Confirming the cause first can save a lot of invalid attempts.

symptomsCommon causesHow to confirm
The recognition results are garbled, or almost no words can be recognized.The page is rotated 90 degrees or 180 degreesLook at the preview image to see if the title is vertical or upside down.
Only some pages are recognized abnormallyPaper placed horizontally or backwards was mixed in during scanning.Turn the pages to view them one by one and write down the page number of the abnormal page.
The text can be recognized, but the order of the paragraphs is out of orderThe page is slightly skewed, or the page orientation is inconsistentCheck whether the lines of text are slanted and whether some pages are forward while others are upside down.
Text can be selected without OCRIt is a text version PDFDrag the mouse on the page to select a piece of text, as long as it is selected
The direction is correct, but there are many typosLow resolution, shadows, or paper wrinklesZoom in enough to see individual characters and observe whether the strokes are stuck together

Check and repair item by item

Follow the order below, eliminating simple causes first and then dealing with complex situations.

  1. Confirm whether it is a scanned copy. Use the mouse to drag on the page to select a piece of text. If it cannot be selected, it means that this page is a picture and requires OCR.
  2. Go through the entire document page by page, write down the page numbers that are in the wrong direction, and mark whether each page needs to be turned clockwise or counterclockwise.
  3. Open the file in OmniDoc's PDF editor, use the page rotation function on the page that needs to be adjusted, and select the corresponding angle.
  4. Check page by page after rotation: the title should be at the top of the page, the text should be arranged from left to right, top to bottom, and the page numbers should be in normal position.
  5. After confirming that the orientation is correct, perform OCR on the entire document and let the recognition engine process the corrected page.
  6. Check the recognition results against the original page, focusing on numbers, formulas, names, units and tables. Once such content is wrong, subsequent use will be affected.
  7. If you need to continue editing, you can export it to a format such as Word, and then adjust it in word processing software. It is recommended to save the current version before exporting.

Turn the entire page upside down or horizontally

The whole page is upside down usually because the paper is placed upside down when scanning. The solution is straightforward: just rotate the whole page to the forward direction. For horizontal pages, you need to determine whether to rotate clockwise or counterclockwise, which can be determined by looking at the position of the title. After the rotation is complete, confirm in the preview that the text line is horizontal before performing OCR.

Mixed directions for the same document

This situation often occurs when multiple paper materials are merged and scanned. Don't apply the same angle to all pages at once, as this will corrupt the original correct page. You should judge page by page and only change the pages with the wrong direction. If there are a large number of pages, you can first group them by category: the forward pages should not be moved, the horizontal pages should be processed together, and the upside-down pages should be processed separately. After checking group by group, they can be merged and identified.

How to avoid it happening again next time

A few habits before scanning can reduce subsequent rework.

  • Unify the paper orientation before scanning, and place all pages into the document feeder with the title at the top.
  • Immediately after scanning, flip through the pages page by page. If you find that the direction is wrong, rescan on the spot. Do not wait until the recognition is completed.
  • Before merging multiple scans, straighten them separately and then merge them to avoid difficulty in locating the problem pages after merging.
  • Maintaining a clear enough resolution in the scan settings, laying the paper flat, and avoiding wrinkles and shadows will significantly reduce typos during recognition.
  • Establish a checklist for important documents: check the direction, page numbers, figures, and tables before delivering or filing them.

❓ Frequently Asked Questions (FAQ)

1. What are the common formats for scanned documents?

The common form of scans is to save each page as an image and embed it in the PDF, or it may be a separate JPG, PNG or TIFF image. What they have in common is that the page content is an image, text cannot be selected directly, and OCR is required to obtain editable text.

2. Will rotating the page affect the text content?

Rotation only changes the display direction of the page, and the text content will not be rewritten. However, for safety reasons, it is recommended to work on a copy and keep the original.

3. How to convert image PDF into editable text? Is there any other way besides OCR?

If you have the original Word or text file, use the original to save trouble. If you only have scans, OCR is the main approach. Correcting, improving clarity, and checking results are three steps, and the effect is usually better than simply changing tools.

4. There are still many typos after rotation, what should I do?

First check whether the page is blurry, slanted or shadowed, and zoom in to see the strokes of individual words. If the image quality is not good enough, try to scan again. Recognition results also require manual verification, especially numbers and proper nouns.

5. There are many pages in the scanned document, can you only process a few of them?

Can. Just rotate the page with the wrong orientation, keep the page in the forward orientation, and then perform OCR on the page that needs to be identified. This way the scope of modifications is smaller and easier to check.

📝 Summary

The page orientation of the scanned document is wrong. The safe way is to check page by page first, then straighten the page in the PDF editor, and finally perform OCR and check the result. After the orientation problem is solved, the process of converting image PDFs into editable text will be much smoother, and the recognition quality will be easier to grasp.

Open OmniDoc to recognize and translate scans

Updated 2026-11-11