If you're collecting thirty resume PDFs for a career-readiness class or a bootcamp, check what text you can get out of them before you start on feedback. A PDF can look fine on screen and give up no text, and a resume parser can leave the name blank even when the name copies correctly.

Before students hand in their resumes, have them export a PDF, paste its text into a blank document and check that their name, contact details and dates appear in order. That's the lesson idea that comes with these free resume templates for students on Cube for Teachers, which use one column and come as Google Docs and Word files. For a class that works in Figma, this one-column resume template in Figma, in US Letter and A4 keeps each line on its own text layer. The paste check catches a PDF with no text, but not a name a parser skips: 王小明 below pastes fine.

The paste test also works one file at a time. When the PDFs come back, run the script below on the submissions folder. In the CSV, start with the rows where characters is 0.

The script

It needs Python 3 and Ghostscript (brew install ghostscript or your package manager). Ghostscript's txtwrite device extracts the text and uses each piece's position to rebuild the page layout.

import csv, re, subprocess, sys from pathlib import Path EMAIL = re.compile(r"[\w.+-]+@[\w-]+\.[\w.]+") PHONE = re.compile(r"\(?\d{3}\)?[ .-]?\d{3}[ .-]?\d{4}") CJK = re.compile(r"[぀-ヿ㐀-鿿가-힯]") DATE_RANGE = re.compile(r"[A-Z][a-z]{2} \d{4} ?[–-] ?([A-Z][a-z]{2} \d{4}|Present)") def extract_text(pdf): result = subprocess.run( ["gs", "-q", "-sDEVICE=txtwrite", "-o", "-", str(pdf)], capture_output=True, text=True, check=True) return [re.sub(r"\s+", " ", line).strip() for line in result.stdout.splitlines()] writer = csv.writer(sys.stdout) writer.writerow(["file", "characters", "first_line", "email", "phone", "date_ranges", "notes"]) for pdf in sorted(Path(sys.argv[1]).glob("*.pdf")): lines = [line for line in extract_text(pdf) if line] text = "\n".join(lines) first_line = lines[0] if lines else "" notes = [] if not text: notes.append("no text: exported as an image or outlines?") elif CJK.search(first_line) and not re.search(r"[A-Za-z]", first_line): notes.append("first line: CJK characters, no A-Z") writer.writerow([ pdf.name, len(text), first_line, "yes" if EMAIL.search(text) else "NO", "yes" if PHONE.search(text) else "NO", len(DATE_RANGE.findall(text)), "; ".join(notes)]) 
python3 check_resumes.py submissions > report.csv 

Five test files

I tested five made-up resumes exported from Google Docs. Two compare fonts, two compare scripts for the name, and one has its text converted to outlines:

  • student-01 and student-02: the same resume in Arial and in Georgia.
  • student-03: a different resume, with the name replaced by 王小明.
  • student-04: the same resume as 03, with the name Иван Петров.
  • student-05: the Calibri export, run through Ghostscript's pdfwrite with -dNoOutputFonts to turn the letters into outlines.

Here's the CSV:

file,characters,first_line,email,phone,date_ranges,notes student-01.pdf,2600,Jordan Ellis,yes,yes,5, student-02.pdf,2600,Jordan Ellis,yes,yes,5, student-03.pdf,1937,王小明,yes,yes,3,"first line: CJK characters, no A-Z" student-04.pdf,1945,Иван Петров,yes,yes,3, student-05.pdf,0,,NO,NO,0,no text: exported as an image or outlines? 

Reading the report

Zero characters is the one to act on first. student-05 looks fine when you open it, but Ghostscript extracted zero characters from it. Have the student export again from the original with selectable text, then rerun the check.

The name column. Scan first_line for the name you expect. In an October test, OpenResume, an open-source resume parser, read Иван Петров correctly and left the name field blank for 王小明, while the other fields in that file came through. OpenResume gives points to text made up only of A–Z letters, spaces and periods, and separately to text whose font name says bold. 王小明 missed both: the characters aren't A–Z, and Google Docs had set them in a fallback font, MS PGothic, that isn't marked bold. The CSV flag only says the first line has CJK characters and no A–Z letters, so treat it as a reason to look at the header. If a student wants a romanized name for US applications, try "Xiaoming Wang (王小明)" and check what the parser returns.

email and phone show whether anything in the extracted text matches either pattern. The phone check looks for a US-style 10-digit number, so adjust it for the formats your students use.

date_ranges counts strings like "Aug 2022 – May 2026" or "Jan 2024 – Present". If it's 0, open the PDF and check whether the dates are missing or written another way, such as "2022-2026" or "Summer 2025".

What it doesn't check

Ghostscript groups text by position. In a separate test, it put an internship bullet under the right job while OpenResume, following the order the PDF stores its text in, filed it under Skills. To see that stored order, you need a tool that prints it, such as pdfminer.six with layout analysis turned off. And you'll still need to read every resume to give feedback on the writing.