{"repo":"daemonp/batdoc","free":true,"listed":false,"github":"https://github.com/daemonp/batdoc","clone":"git clone https://github.com/daemonp/batdoc.git","description":"cat for Office documents and PDFs — dumps .doc, .docx, .xls, .xlsx, .pptx, and .pdf to your terminal as syntax-highlighted markdown","language":"Rust","stars":13,"topics":["cli","document-converter","markdown","rust","terminal","command-line-tools","markdown-converter"],"license":"MIT","category":"cli-tools","readme_excerpt":"batdoc cat had catdoc. bat gets batdoc . Dumps .doc , .docx , .xls , .xlsx , .pptx , and .pdf files to your terminal as markdown — and OCRs image files (png/jpg/gif/webp/bmp). To a tty it syntax-highlights and pages (using bat); piped, it gives you plain text. Format is detected by file signature, not extension. OLE2 files ( .doc / .xls ) are distinguished by peeking at internal streams; ZIP files ( .docx / .xlsx / .pptx ) by checking for word/document.xml vs xl/workbook.xml vs ppt/presentation.xml ; PDFs by the %PDF- header. For AI agents Copy the block below to /.agents/skills/batdoc/SKILL.md to give a local agent a discoverable batdoc skill for processing documents and images: Install Arch Linux (AUR): Homebrew: Linux (x86 64, static musl): macOS (Apple Silicon): From source: Formats .docx and .xlsx are parsed structurally from their XML — headings, bold/italic, lists, tables, and hyperlinks come through properly. Spreadsheets render as markdown tables, one ## section per sheet. Hyperlinks in all formats are rendered as text in markdown. Comments, footnotes, and endnotes are appended after the body when present, with [^1] / [^e1] markers at each reference site. .doc is trickier. The binary format buries style info in structures we don't fully parse, so markdown structure is inferred heuristically from the text: numbered headings, bold subheadings, tab-delimited tables. It works well on typical business documents; your mileage varies on weirder layouts. .xls gets a full BIF","default_branch":null,"files":null,"tree":[],"storefront":"/r/daemonp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/daemonp/batdoc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}