A boarding pass packs the facts a traveller needs into small print: flight, date, seat and gate. OCR misreads are common on the small type, and a wrong gate is worse than a missing one. This guide checks the four fields on one pass.
Prerequisites
A scanned boarding pass PDF and an OCR tool. Boarding passes carry a booking reference, so keep the copy private and delete it after the trip.
Steps
1. Run OCR on the boarding pass
Run OCR on the pass and save the searchable copy. Expected result: flight, date, seat and gate become selectable text.
2. Read the flight number and date
Read the flight number and the date from the OCR text. Expected result: flight BA249 on 2026-11-12.
3. Read the seat and gate
Read the seat and the gate from the OCR text. Expected result: seat 14A and gate B7.
4. Compare all four fields with the printed pass
Compare each OCR field with the printed pass. Expected result: all four fields match the printed pass.
Practice check: fictional boarding pass, flight BA249, 2026-11-12
The table below is fictional practice material. It lists the four fields on one boarding pass.
| Field | As printed |
|---|---|
| Flight | BA249 |
| Date | 2026-11-12 |
| Seat | 14A |
| Gate | B7 |
Expected result. all four OCR fields match the printed pass: flight BA249, date 2026-11-12, seat 14A and gate B7.
Limits
- Gate information changes at the airport, so the OCR check only proves the pass was read correctly, not that the gate is still B7.
- UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.
Sources
- Adobe Acrobat, Extract key data from scanned PDFs with OCR – Try to select a word first; OCR adds text you can search, select, copy and extract; tables can flatten, so compare totals with the original page. Checked 2026-11-29.
- Tesseract OCR Documentation, output formats – Tesseract supports plain text, searchable PDF, hOCR, TSV, ALTO and PAGE output; –psm sets the page segmentation mode. Checked 2026-11-29.
