<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PrismResume]]></title><description><![CDATA[PrismResume]]></description><link>https://prismresume.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Dec 2026 19:49:16 GMT</lastBuildDate><atom:link href="https://prismresume.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Why Word (.docx) Resume Text Boxes Break ATS Parsers — OOXML Internals + a 35-Line Python Audit Script]]></title><description><![CDATA[A surprisingly common failure mode in technical hiring has nothing to do with a candidate's experience: a cleanly formatted .docx resume gets uploaded to…]]></description><link>https://prismresume.hashnode.dev/why-word-docx-resume-text-boxes-break-ats-parsers-ooxml-internals-a-35-line-python-audit-script</link><guid isPermaLink="true">https://prismresume.hashnode.dev/why-word-docx-resume-text-boxes-break-ats-parsers-ooxml-internals-a-35-line-python-audit-script</guid><category><![CDATA[Python]]></category><category><![CDATA[Open Source]]></category><category><![CDATA[xml]]></category><category><![CDATA[Career]]></category><dc:creator><![CDATA[PrismResume]]></dc:creator><pubDate>Sat, 05 Dec 2026 05:47:07 GMT</pubDate><content:encoded><![CDATA[<p>A surprisingly common failure mode in technical hiring has nothing to do with a candidate's experience: a cleanly formatted <code>.docx</code> resume gets uploaded to an Applicant Tracking System (ATS), and the parsed profile comes back missing the phone number, scrambling job dates, or dropping entire sections.</p>
<p>The root cause lives inside the <code>.docx</code> <strong>OOXML (Office Open XML)</strong> XML tree. Here is a quick breakdown of the 3 XML structures that break ATS parsers, plus a zero-dependency 35-line Python script to audit any <code>.docx</code> file in under a second.</p>
<h2>1. A <code>.docx</code> File Is Just a ZIP Archive</h2>
<p>Every <code>.docx</code> file follows the ECMA-376 standard. Unzip it and you will find:</p>
<ul>
<li><code>word/document.xml</code> — the main body</li>
<li><code>word/header1.xml</code>, <code>word/footer1.xml</code> — separate XML parts for headers and footers</li>
</ul>
<p>Most lightweight ATS parsers (<code>python-docx</code>, Apache Tika pipelines, or custom regex/XPath extractors) iterate linearly over direct children of <code>&lt;w:body&gt;</code> in <code>word/document.xml</code>:</p>
<pre><code class="language-xml">&lt;w:body&gt;
  &lt;w:p&gt;...&lt;/w:p&gt;      &lt;!-- Standard paragraph: extracted reliably in order --&gt;
  &lt;w:tbl&gt;...&lt;/w:tbl&gt;  &lt;!-- Table: extracted row by row (w:tr -&gt; w:tc) --&gt;
&lt;/w:body&gt;
</code></pre>
<h2>2. Three OOXML Patterns That Silently Drop or Scramble Text</h2>
<h3>Pattern 1: Floating Text Boxes (<code>w:txbxContent</code> / <code>mc:AlternateContent</code>)</h3>
<p>Many commercial Word templates use floating text boxes so designers can position blocks freely. Inside <code>word/document.xml</code>, that text is nested under <code>&lt;w:drawing&gt; -&gt; &lt;wps:txbx&gt; -&gt; &lt;w:txbxContent&gt;</code> and often duplicated inside a VML <code>&lt;mc:Fallback&gt;</code> block for legacy Word compatibility.</p>
<ul>
<li>Parsers that only walk top-level <code>&lt;w:p&gt;</code> nodes <strong>drop the entire text box silently</strong>.</li>
<li>Parsers that naively grab all <code>&lt;w:t&gt;</code> descendants <strong>extract every sentence twice</strong> (once from <code>&lt;mc:Choice&gt;</code>, once from <code>&lt;mc:Fallback&gt;</code>).</li>
</ul>
<h3>Pattern 2: Contact Info in <code>word/header1.xml</code></h3>
<p>Putting your name, email, and phone number in the document header saves vertical space, but parsers that only ingest <code>word/document.xml</code> leave your contact fields blank.</p>
<h3>Pattern 3: Multi-Column Layout Tables (<code>&lt;w:tbl&gt;</code>)</h3>
<p>When a two-column resume is built with multi-row tables, row-major extraction (<code>w:tr -&gt; w:tc</code>) interleaves left-column skills with right-column experience bullets.</p>
<h2>3. A 35-Line Standard-Library Python Audit Script</h2>
<p>Run this before submitting any <code>.docx</code> resume (no third-party packages required):</p>
<pre><code class="language-python">import sys
import zipfile
import xml.etree.ElementTree as ET
NS = {
    "w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main",
    "mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
}

def audit_docx(path: str) -&gt; None:
    with zipfile.ZipFile(path) as zf:
        names = zf.namelist()
        root = ET.fromstring(zf.read("word/document.xml"))

        txbx = root.findall(".//w:txbxContent", NS)
        alt = root.findall(".//mc:AlternateContent", NS)
        tables = root.findall(".//w:tbl", NS)
        headers = [n for n in names if n.startswith("word/header") and n.endswith(".xml")]

        header_text = []
        for h in headers:
            h_root = ET.fromstring(zf.read(h))
            txt = "".join(t.text or "" for t in h_root.findall(".//w:t", NS)).strip()
            if txt:
                header_text.append((h, txt))

        print(f"File: {path}")
        print(f"  Text boxes (w:txbxContent): {len(txbx)}")
        print(f"  Fallback blocks (mc:AlternateContent): {len(alt)}")
        print(f"  Layout tables (w:tbl): {len(tables)}")
        print(f"  Non-empty headers: {len(header_text)}")
        for name, txt in header_text:
            print(f"    {name}: {txt[:80]}")

if __name__ == "__main__":
    audit_docx(sys.argv[1])
</code></pre>
<h2>4. What a Clean, ATS-Safe <code>.docx</code> Output Looks Like</h2>
<p>For maximum compatibility across legacy and modern parsers, aim for zero hidden XML detours:</p>
<ul>
<li><code>w:txbxContent</code>: <code>0</code> (replace floating text boxes with standard paragraphs and paragraph borders/spacing)</li>
<li><code>mc:AlternateContent</code>: <code>0</code> (avoids duplicated text extraction)</li>
<li><code>w:tbl</code>: <code>0</code> (avoid multi-column layout tables; use single-column linear <code>&lt;w:p&gt;</code> flow with tab stops only where needed)</li>
<li><code>Non-empty headers</code>: <code>0</code> (move name, phone, email, and links directly into the top of <code>word/document.xml</code>)</li>
</ul>
<p>Keeping the underlying OOXML linear ensures both automated ATS pipelines and PDF conversion tools read your resume in exact top-to-bottom order.</p>
]]></content:encoded></item><item><title><![CDATA[Why HTML-to-PDF Resumes Scramble ATS Text Extraction (and How to Debug Them with pdftotext)]]></title><description><![CDATA[A practical engineering breakdown of PDF text layers, flex/grid reading order, and why single-column DOM flow matters for headless Chromium exports.]]></description><link>https://prismresume.hashnode.dev/why-html-to-pdf-resumes-scramble-ats-text-extraction-and-how-to-debug-them-with-pdftotext</link><guid isPermaLink="true">https://prismresume.hashnode.dev/why-html-to-pdf-resumes-scramble-ats-text-extraction-and-how-to-debug-them-with-pdftotext</guid><category><![CDATA[Career]]></category><category><![CDATA[webdev]]></category><category><![CDATA[pdf]]></category><category><![CDATA[puppeteer]]></category><category><![CDATA[Open Source]]></category><dc:creator><![CDATA[PrismResume]]></dc:creator><pubDate>Fri, 04 Dec 2026 03:12:40 GMT</pubDate><content:encoded><![CDATA[<p>When developers build or export resumes from HTML/CSS (via Puppeteer, Playwright, or browser print-to-PDF), the visual output often looks crisp — right up until an applicant tracking system (ATS) or recruiter preview pane parses the PDF and produces garbled text.</p>
<p>Here is what actually happens inside the PDF text layer, and a 3-step engineering check you can run locally on any exported resume PDF.</p>
<h2>1. Visual Order vs. PDF Content Stream Order</h2>
<p>A PDF does not store "paragraphs" or "columns" the way HTML does. It stores positioned text drawing operators (<code>BT ... Tj ... ET</code>) in the order the rendering engine emitted them.</p>
<p>When you use CSS Grid, Flexbox with <code>order</code>, <code>position: absolute</code>, or two-column sidebars in an HTML resume:</p>
<ul>
<li>Visually, "Experience" is on the right and "Skills" is on the left.</li>
<li>In the PDF content stream, text chunks from the left column and right column can interleave line by line — or dates right-aligned with <code>position: absolute</code> can detach from their corresponding job title.</li>
</ul>
<p>Older ATS parsers (and basic <code>pdftotext</code> extraction) read the stream linearly or by naive y-coordinate clustering. If two columns sit on the same horizontal baseline, they get merged into a single nonsense line.</p>
<h2>2. Three Common Rendering Traps in Headless Chromium</h2>
<h3>Trap A: Icon fonts and SVG glyphs inside contact lines</h3>
<p>Using FontAwesome or Material icon fonts next to your email/phone often emits Private Use Area Unicode characters (<code>\uf0e0</code>, <code>\uf095</code>) directly adjacent to your email address. Some regex-based ATS email extractors fail when an unknown glyph touches the address without whitespace.</p>
<p><strong>Fix</strong>: Use plain text labels (<code>Email:</code>, <code>GitHub:</code>) or separate visual icons with <code>aria-hidden="true"</code> and explicit spaces — or skip icons entirely in ATS-facing resumes.</p>
<h3>Trap B: Rasterized text from CSS <code>filter</code> or <code>&lt;canvas&gt;</code></h3>
<p>If a resume builder renders pages onto <code>&lt;canvas&gt;</code> and embeds PNGs into a PDF wrapper, the resulting PDF has <strong>zero selectable text</strong>. To an ATS without OCR fallback, the file is effectively blank.</p>
<h3>Trap C: Uncontrolled page breaks (<code>break-inside</code>)</h3>
<p>Without explicit <code>@page</code> margins and <code>break-inside: avoid</code> on individual role blocks, Chromium can slice a bullet point in half across pages or leave a section heading orphaned at the bottom of page 1:</p>
<pre><code class="language-css">@page {
  size: letter;
  margin: 0.5in 0.6in;
}

.job-entry {
  break-inside: avoid;
  page-break-inside: avoid;
}

.section-heading {
  break-after: avoid;
  page-break-after: avoid;
}
</code></pre>
<h2>3. How to Test Any Resume PDF in 10 Seconds</h2>
<p>Install <code>poppler-utils</code> (or <code>brew install poppler</code> on macOS) and inspect both raw stream order and embedded fonts:</p>
<pre><code class="language-bash"># 1. Raw reading order (closest to basic ATS text extraction)
pdftotext resume.pdf - | head -n 60

# 2. Check embedded fonts (ensure real text fonts, not empty/Type3 bitmap)
pdffonts resume.pdf
</code></pre>
<p>What you want to see:</p>
<ol>
<li>Your name, email, and links appear cleanly at the top with no garbled characters.</li>
<li>Each job title is immediately followed by its company, dates, and bullets in chronological order.</li>
<li><code>pdffonts</code> lists embedded TrueType/OpenType fonts (<code>yes</code> under <code>emb</code>) rather than zero fonts.</li>
</ol>
<h2>4. Open-Source Single-Column Reference Templates (MIT)</h2>
<p>If you prefer starting from clean, verified single-column files (both <code>.docx</code> built with native OOXML styles — no floating text boxes — and Markdown/plain-text baselines), we open-sourced 15 templates plus our 60-second ATS audit checklist under MIT:</p>
<ul>
<li><strong>GitHub repo (v1.0.0 zip available)</strong>: <a href="https://github.com/poetsc/ats-resume-templates">poetsc/ats-resume-templates</a></li>
<li><strong>Browser plain-text formatter (no login)</strong>: <a href="https://prismresume.com/paste">prismresume.com/paste</a></li>
<li><strong>Original guide</strong>: <a href="https://prismresume.com/blog/plain-text-to-formatted-resume-pdf-guide-2026">Plain Text to Formatted Resume PDF Guide</a></li>
</ul>
]]></content:encoded></item></channel></rss>