Airline Boarding Pass (PDF)
An airline boarding pass laid out as a landscape PDF — passenger, flight, gate, seat, PNR, and a decorative barcode strip. A fixture for testing document-layout parsing and field extraction. Synthetic; the barcode is decorative.

Rendered preview of the pdf file (2.5 KB). Download above for the original.
Specifications
- Pages
- 1
- Size
- 200x90 mm
- Note
- decorative barcode (not scannable); synthetic
What is a .pdf file?
PDF (Portable Document Format) is a page-oriented document format that preserves fixed layout, fonts, vector and raster graphics, and text across platforms. It can also embed forms, annotations, attachments, and digital signatures. It is the de facto standard for finished, print-ready documents.
How to use this file
Use an example PDF to test text extraction, rendering, page-count and metadata parsing, form-field handling, and conversion or OCR pipelines.
Code examples
import pdfplumber # pip install pdfplumber
with pdfplumber.open("boarding-pass.pdf") as pdf:
print(len(pdf.pages), "pages")
print(pdf.pages[0].extract_text())Related files
- pdfImage-Only 'Scanned' PDF (OCR twin)An image-only PDF containing a rasterised 'scan' of the simple document, with no text layer. Paired with the text version so you can score OCR output against a known ground truth.

- pdfStore Receipt — Scanned (image-only PDF)The same café receipt as an image-only 'scan' — no text layer, with a slight rotation and grain so it reads like a photographed receipt. Paired with the searchable version as OCR ground truth.

- pdfStore Receipt — Searchable PDFA realistic café receipt as a searchable PDF with a real text layer — the OCR ground truth paired with an image-only scanned twin, so you can score OCR output against known text.

- pdf10-Page PDF with Bookmarked TOCA ten-page PDF with a table of contents and a full bookmark outline (10 entries) — for testing PDF navigation, outline parsing, and page extraction.

- pdf50-Page PDF (text-light)A 50-page, text-light PDF — for testing page-count handling, pagination, and large-document navigation without a large file.

- pdfBank Statement (PDF)A one-page monthly bank statement — account summary and a dated transaction table with running balances. Synthetic data for testing PDF statement parsers, table extraction, and OCR.

Generated by generation/docs_realworld.py. Free for any use, no attribution required — license.