Got an empty .md file with only '# filename' and '<!-- Page N -->' comments? Your PDF has no text layer—convert scans offline on Windows with bundled Tesseract OCR.
How Scanned PDF & Images (Offline OCR) Conversion Works
Why do browser PDF converters sometimes output an empty file containing only `# filename` and `<!-- Page N -->` comments? In MarkItDown's browser converter, `pdfjs-dist` reads embedded digital text via `getTextContent()`. When a PDF is created by a scanner or camera, it stores raster page images with zero selectable text items—so text-only browser parsing has nothing to extract. Quick 5-second diagnostic check: open your PDF and try highlighting one word. If text selects cleanly, convert it in your browser at /pdf-to-markdown (requires free account sign-in with 7-day history sync). If clicking only drags over an image, your PDF requires OCR. MarkItDown for Windows (MarkItDown Setup 1.1.1.exe, 352.2 MB All-in-One bundle, or Microsoft Store on Windows 10/11 x64) bundles Microsoft MarkItDown together with local offline Tesseract OCR, FFmpeg/FFprobe for MP3/WAV/M4A audio, ZIP unpacking, and Outlook .msg extraction—with zero Python, pip, or cloud API keys.
Attaching multi-page scanned PDFs, signed NDA contracts, or photographed lecture handouts directly to ChatGPT or Claude forces vision models to process high-resolution page rasters, eating context tokens fast while exposing confidential pages to external servers. Running offline Tesseract OCR locally on Windows converts image-only PDFs and photos (JPG, PNG, WEBP, TIFF, BMP, GIF) into lean, searchable Markdown before a single prompt is sent.
Frequently Asked Questions
Why did my PDF convert to an empty file with only '# filename' and '<!-- Page N -->' comments?
The browser converter uses pdfjs-dist getTextContent(), which only reads embedded selectable text layers. Image-only scanned PDFs contain zero text items, producing page markers with empty body text—switch to MarkItDown for Windows (/download/windows) for offline Tesseract OCR.
What is the fastest way to tell browser pdfjs-dist parsing vs. Windows offline OCR apart?
Open the PDF and try highlighting a word with your cursor. If text highlights, convert it locally in the browser at /pdf-to-markdown (requires free account sign-in). If clicking only drags a box over an image, use MarkItDown for Windows.
Does MarkItDown for Windows require Python, pip, or external OCR API keys?
No. MarkItDown Setup 1.1.1.exe (352.2 MB) and the Microsoft Store build bundle Microsoft MarkItDown and offline Tesseract OCR in one Windows 10/11 x64 app with zero Python setup or cloud keys.
What other formats does MarkItDown for Windows handle besides scanned PDFs?
Alongside scanned PDFs and JPG/PNG/GIF/BMP/TIFF/WEBP images (/convert/image-ocr-to-markdown), the Windows desktop app converts DOCX, PPTX, XLSX/XLS, CSV, JSON, XML, HTML, TXT/MD, EPUB, ZIP archives, Outlook .msg emails, and MP3/WAV/M4A audio workflows via bundled FFmpeg/FFprobe.
How do MarkItDown's offline Tesseract OCR and cloud parsers like LlamaParse differ?
MarkItDown for Windows keeps sensitive scans 100% offline on your PC with zero API keys, whereas cloud parsers like LlamaParse (/compare/markitdown-vs-llamaparse) upload files to external servers for VLM layout parsing.