Sub topic 4
DOCX or PDF: choosing a file format
This chapter assumes you have written a CV before, have applied through online forms, and can export a document as DOCX and PDF. It covers which format a parser reads most reliably and how to check your file before you upload it.
What the parser needs from a file
A parser is the part of an applicant tracking system (ATS) that reads your file and turns it into a profile. The profile holds fields such as name, job titles, employers and dates. To do this, the parser must first pull plain text out of the file. If that step fails, nothing after it can work.
The two formats differ in how easy that step is.
- A DOCX file stores text as structured data. Paragraphs, headings and lists are labelled in the file itself, so the order of the text is explicit.
- A PDF file stores instructions for drawing characters at positions on a page. The parser must infer reading order from those positions. This works well for simple single-column pages and badly for complex ones.
Comparing the formats
| Format | Strengths | Common problems |
|---|---|---|
| DOCX | Reading order is explicit. Supported by almost every ATS. | Layout can shift between Word versions. Text in text boxes, headers and footers may be skipped. |
| Text-based PDF | Looks identical everywhere. Usually parsed well by modern systems. | Multi-column layouts can be read in the wrong order. Older parsers may extract text poorly. |
| Image-only PDF | None for parsing. | Contains no text. Many parsers extract nothing. |
| Scanned or photographed CV | None for parsing. | Same as image-only PDF. |
A practical rule
Follow the instructions on the application form first. If the posting asks for DOCX, send DOCX. If it asks for PDF, send PDF.
If no format is stated, DOCX is the safer default. It is accepted almost everywhere and its reading order is explicit. A text-based PDF is also usually fine, and it protects your layout from changing on the recruiter's screen. Choose a PDF only after you confirm that it contains real text.
Checking that a PDF contains real text
A PDF is text-based if you can select and copy words from it. Try this:
- Open the PDF in a viewer.
- Select all (Ctrl+A or Cmd+A) and copy.
- Paste into a plain-text editor.
- Read the result from top to bottom.
If nothing pastes, the file is an image. If the text pastes but the order is jumbled, the layout is confusing the parser. Section 2 of the next chapters covers layout fixes. For now, remember that the pasted text is close to what a parser sees.
You can also script a check. This example uses the pypdf library (install it with pip install pypdf) and reports whether a PDF has extractable text.
import sys
from pypdf import PdfReader
def extract_text(path):
reader = PdfReader(path)
return "\n".join(page.extract_text() or "" for page in reader.pages)
if __name__ == "__main__":
text = extract_text(sys.argv[1])
if len(text.strip()) < 50:
print("Warning: little or no text found. This may be an image-only PDF.")
else:
print(text)Run it as python check_pdf.py my_cv.pdf. Read the printed text as a parser would: check that the name, job titles, employers and dates appear in a sensible order.
Common errors
- Exporting with "Print to image" or a scan. The result looks fine but contains no text. Export using "Save as PDF" in your word processor instead.
- Putting contact details in a header or footer. Some parsers ignore these areas, so your email address may not be captured. Place contact details in the main body.
- Using unusual file names or types. Formats such as
.pages,.odtor.pngare often rejected. Use a clear name such asjane-doe-cv.docx. - Sending an old
.docfile. Many systems still accept it, but.docxis better supported. - Uploading a file that was never checked. The upload form may display a parsed profile. Compare it with your CV and correct errors before submitting.
Summary
Use the format the employer asks for. When no format is stated, choose DOCX, or a PDF that you have shown to contain selectable text. Avoid image-based files. Test by copying the text out and reading it.
Exercise
You export your CV to PDF and paste its contents into a plain-text editor. Nothing appears. What does this tell you, and what should you do?
Show answer
The PDF is image-only, so it contains no extractable text, and a parser would probably read nothing. Re-export from your original DOCX using "Save as PDF" or "Export" instead of printing or scanning, then repeat the copy-and-paste test. If it still fails, upload the DOCX.
Exercise
A job posting does not name a file format. Your PDF passes the copy-and-paste test but the pasted text is in the wrong order. Which format should you choose, and why?
Show answer
Choose DOCX. The jumbled order suggests the PDF layout confuses reading-order inference, while DOCX stores paragraph order explicitly. You should also simplify the layout so the text reads in order, because that fixes the cause.