Sub topic 4
DOCX or PDF: choosing a file format
This chapter assumes you have read the previous chapters on what an ATS does and how a parser turns a CV into a profile. You should know that a parser extracts text first, then sorts that text into fields such as job title, employer and dates. You should also be able to save a document as DOCX and as PDF from your word processor.
The file format decides how easy the first step is. If the parser cannot get clean text out of the file, nothing later in the pipeline can fix it.
What the parser receives
A parser does not look at your CV the way a person does. It receives a file, extracts a stream of text from it, and then analyses that stream. The two common formats store text in very different ways.
- A DOCX file is a ZIP archive of XML files. The main content sits in
word/document.xml. Paragraphs, runs of text, tables and text boxes are all marked up explicitly, so the parser can read the text in the order the author wrote it. - A PDF file describes pages. It records where each piece of text is drawn, with a font and a position. There is no built-in idea of a paragraph or a reading order. The extractor must work out lines and order from coordinates.
Both can work well. The risks differ, and they depend on how the file was made.
DOCX: strengths and failure modes
DOCX is the safer default when an employer does not state a preference. The text is stored in the order the author typed it, and most parsers have handled Word files for many years.
Strengths:
- Reading order follows the document structure, so single-column text comes out in sequence.
- Headings, bullet lists and paragraphs are explicit in the file.
- Recruiters can open and edit the file if they need to.
Failure modes:
- Text boxes and shapes. Content in a text box is stored apart from the main body. Some parsers skip it, and others place it at the end of the text. A name or contact line inside a text box can go missing.
- Headers and footers. Many parsers ignore them. If your phone number or email sits only in the page header, the profile may have no contact details.
- Tables used for layout. Cells may be read row by row, column by column, or in an odd order. Chapter on layout covers this in more detail.
- Older formats. A
.docfile (the pre-2007 format) is less reliably supported than.docx. Do not upload.docunless asked. - Compatibility problems. A file made in a different word processor and exported to DOCX may carry odd structure, such as every line stored as its own paragraph. Open it in Word or a compatible tool and check it before you upload it.
- Templates with decorative elements. Icons used as bullets or as labels for contact details can appear as stray characters.
PDF: strengths and failure modes
A PDF keeps your layout identical on every screen and printer. That matters when a human recruiter will read the file. For a parser, a PDF is fine only if it has a proper text layer and a simple reading order.
Strengths:
- Fonts, spacing and page breaks stay exactly as designed.
- No risk of a recipient's missing font or different Word version changing the look.
Failure modes:
- Image-only PDFs. A scan, a photo, or a PDF made by printing a page to an image has no text layer. The parser needs OCR (optical character recognition), which turns pixels into text. OCR makes mistakes with small fonts, low contrast and unusual typefaces. Some systems do not run OCR at all and will show an empty profile.
- Text that is outlined. Some design tools convert text to shapes ("create outlines"). The result looks like text but is not text.
- Reading order from coordinates. With two columns or sidebars, the extractor may read straight across the page and mix both columns into one line.
- Odd character encoding. A few fonts embed text in a way that extracts as wrong characters. Ligatures such as "fi" may become a single odd symbol, which breaks keyword matches for words like "financial".
- Design-tool exports. PDFs made from design software often split text into many small fragments positioned independently. Extraction can break words or lines apart.
A quick check tells you which kind of PDF you have. Open it in a PDF reader, then select a line of text with the mouse and copy it. If you can select individual words, there is a text layer. If the whole page highlights as one block, it is an image.
Comparing the two formats
| Question | DOCX | PDF (text layer) |
|---|---|---|
| Reading order | Stored in the file structure | Rebuilt from page coordinates |
| Layout fidelity | Can shift between programs | Identical everywhere |
| Text boxes, headers | Often skipped by parsers | Treated as ordinary positioned text |
| Risk of no text at all | Very low | Real if the file is an image |
| Editable by recruiter | Yes | Difficult |
| Best when | Employer gives no instructions, or asks for Word | Employer asks for PDF, or you have checked extraction |
Decision rules
Use these rules in order.
- Follow the instruction on the application page. If it says "upload a PDF" or "DOCX only", do that. A stated requirement overrides any general advice. If it lists accepted types, choose from that list.
- If no instruction is given, use DOCX made from a simple single-column document, unless you have tested the PDF and it extracts cleanly.
- If you choose PDF, export it from a word processor, using "Save as PDF" or "Export". Do not use "Print to PDF" through an image-based driver, and do not take screenshots.
- Never upload a scan or a photo of a CV.
- Avoid other formats such as
.pages,.odt,.rtfor.txt, unless the employer asks. Plain text loses structure, which makes headings and dates harder to detect. Pages files are not supported by many systems.
The common claim that "ATS cannot read PDFs" is out of date. Modern parsers read text-layer PDFs well. The claim that "PDF is always safer" is also wrong, because a badly built PDF is worse than a plain DOCX. The deciding factor is how clean the extracted text is, not the format name.
File hygiene
Small details in the file can cause trouble in an upload form.
- File name. Use something clear, such as
jane-doe-cv.docx. Recruiters download many files, and a name likefinal_v7_new.docxlooks careless. Avoid unusual characters, which some systems reject. - File size. Keep it small, under about 1 MB for a text CV. Embedded images and logos add size and give the parser nothing to read.
- One file, one CV. Do not merge your CV and cover letter into one document unless the form asks for it. Parsers may treat the cover letter as part of the work history.
- Password protection and restrictions. An encrypted or locked PDF may block text extraction or fail to upload. Remove passwords before sending.
- Document properties. Check the title and author fields in the file's metadata. Some people leave an old employer's name or a template title there.
- Fonts. Standard fonts such as Arial, Calibri or Times New Roman extract reliably. Rare fonts risk wrong characters in PDFs.
Checking text extraction yourself
You can see roughly what a parser starts from by extracting the text yourself. The script below reads a DOCX file with the standard library only, so it needs no installation. It reads the main body, so it shows what a simple parser sees there. It does not read text boxes in the same order a real parser might, but it will reveal missing or scrambled body text.
import re
import sys
import zipfile
import xml.etree.ElementTree as ET
W_NS = "{http://schemas.openxmlformats.org/wordprocessingml/2006/main}"
def docx_paragraphs(path):
with zipfile.ZipFile(path) as archive:
xml_bytes = archive.read("word/document.xml")
root = ET.fromstring(xml_bytes)
paragraphs = []
for para in root.iter(W_NS + "p"):
pieces = [node.text or "" for node in para.iter(W_NS + "t")]
text = "".join(pieces).strip()
if text:
paragraphs.append(text)
return paragraphs
def check_contact_details(paragraphs):
joined = "\n".join(paragraphs)
has_email = re.search(r"[\w.+-]+@[\w-]+\.[\w.]+", joined) is not None
has_phone = re.search(r"\+?\d[\d\s()-]{7,}\d", joined) is not None
return has_email, has_phone
if __name__ == "__main__":
if len(sys.argv) != 2:
sys.exit("Usage: python check_docx.py your-cv.docx")
paras = docx_paragraphs(sys.argv[1])
for line in paras:
print(line)
email_ok, phone_ok = check_contact_details(paras)
print("-" * 40)
print("Email found:", email_ok)
print("Phone found:", phone_ok)Run it with python check_docx.py your-cv.docx. If your email or phone does not appear in the output, it probably sits in a header, footer or text box. Move it into the main body.
For a PDF, open it in a reader, press Select All, copy, and paste into a plain text editor. Read the pasted text from top to bottom. Look for these signs of trouble:
- Lines from two columns merged into one.
- Words split by spaces, such as "Mana ger".
- Odd symbols where bullets or ligatures should be.
- Nothing pasted at all, which means the file is an image.
The testing chapter returns to this with a fuller procedure.
Edge cases
- The form asks for both a CV and a "resume". Upload the same file in the same format to both unless told otherwise.
- The form parses your file and fills in fields. Whatever the format, check the pre-filled fields and correct them by hand. The parsed profile is often what a recruiter searches, not your original file.
- Email applications. There is usually no parser at the first step. A person opens the attachment, so PDF is a reasonable choice if the file also extracts cleanly. If the employer later loads it into an ATS, the same rules apply.
- Recruitment agencies. Agencies often reformat your CV or ask for Word so they can edit it. DOCX is the usual request.
- Mobile uploads. Some phone apps convert files or offer to scan a document. Upload the original file, not a scan.
- Accessibility. A tagged PDF or a DOCX with real heading styles helps screen readers, and it also gives parsers clearer structure. Using Word's built-in heading and list styles costs little.
Summary of the choice
For most applications, a plain single-column DOCX made in a word processor is the lowest-risk choice. A text-layer PDF is equally good when the employer asks for it or when you have confirmed that its text copies out in the right order. An image-based PDF, a scan or an unusual file type is the main thing to avoid, because it can leave the parser with no usable text.
Exercise
You have a two-column CV designed in a graphic design tool and exported as PDF. The job page does not state a preferred file type. List the steps you would take to decide what to upload.
Show answer
First, select and copy text from the PDF to check that it has a text layer. Paste it into a plain text editor and read it for merged columns, split words and odd symbols. Because the layout is two-column and from a design tool, extraction is likely to be scrambled. The safer option is to rebuild the CV as a single-column document in a word processor and save it as DOCX, since no file type was requested. Then run the extraction check again on the new file, and confirm that the email and phone number appear in the main body, not in a header or text box.
Exercise
A DOCX CV shows the candidate's email and phone number only in the page header. What can go wrong, and what is the fix?
Show answer
Many parsers ignore headers and footers, so the profile may be created without contact details. A recruiter could then be unable to reach the candidate. The fix is to move the contact line into the main body at the top of the first page, then re-check the extracted text to confirm it appears.