{"slug": "i-built-a-pdf-word-and-powerpoint-to-markdown-tool-for-ai-and-here-is-what-it-a", "title": "I built a PDF, Word and PowerPoint to Markdown tool for AI, and here is what it does with a real table", "summary": "A developer built a tool that converts PDF, Word and PowerPoint files into clean Markdown with heading-based chunking, aimed at improving how AI tools read documents and enabling \"chat with your documents\" search. Tested on the NIST Cybersecurity Framework 2.0, the tool preserved table rows and category identifiers that plain-text extraction flattened, though it merged the original's first two columns into a single cell. The tool runs on Apify at $0.003 per document up to 100 pages, with scanned pages costing $0.005 each and failed or corrupt files free.", "body_md": "*I made this tool, so I'm biased, and I used AI (Claude) to help write the code and this post. I'll show you where it works and where it doesn't.*\n\nIf you have ever pasted a PDF into ChatGPT or Claude, you know the problem. Tables turn into a line of words and numbers, columns lose their meaning, and the AI answers from a mess.\n\nI built a small tool that turns PDF, Word (.docx) and PowerPoint (.pptx) files into clean Markdown. Markdown is plain text that still shows headings, lists and tables, which AI tools read much better. It also cuts the result into chunks that follow the headings, which is what you need to build a \"chat with your documents\" search.\n\nI ran it on a public document: the NIST Cybersecurity Framework 2.0 (a US government PDF). This is Table 1 on page 20.\n\n**Plain text extraction (the \"copy and paste\" version):**\n\n```\nFunction   Category   Category Identifier\nGovern (GV)   Organizational Context   GV.OC\nRisk Management Strategy   GV.RM\nRoles, Responsibilities, and Authorities   GV.RR\nPolicy   GV.PO\nOversight   GV.OV\nCybersecurity Supply Chain Risk Management   GV.SC\nIdentify (ID)   Asset Management   ID.AM\n```\n\nAn AI has to guess which words are the category and which are the code, and \"Govern (GV)\" only appears on the first line of its group.\n\n**What my tool gives you:**\n\n```\n| Function Category | Category Identifier |\n| --- | --- |\n| Govern (GV) Organizational Context | GV.OC |\n| Risk Management Strategy | GV.RM |\n| Roles, Responsibilities, and Authorities | GV.RR |\n| Policy | GV.PO |\n| Oversight | GV.OV |\n| Cybersecurity Supply Chain Risk Management | GV.SC |\n| Identify (ID) Asset Management | ID.AM |\n```\n\nNow it is a real table: every row has its code in its own column. It is not perfect. The first two columns of the original (Function and Category) got merged into one cell. The data is all there, but you may want to clean that cell. (I re-ran this on the current version today and got the same result.)\n\n$0.003 per document (up to 100 pages), no start fee. Scanned pages cost $0.005 each on top. Failed downloads, corrupt files and unreadable scans are free. You can set a maximum cost per run and it stops before going over.\n\n[https://apify.com/tedock/doc-to-markdown?ref=devto](https://apify.com/tedock/doc-to-markdown?ref=devto)\n\nPaste a link to a PDF and run it. If it gets one of your documents wrong, tell me on the Actor's issues page. I answer within a day, and real failures are the most useful thing you can send.\n\n*tedock*", "url": "https://wpnews.pro/news/i-built-a-pdf-word-and-powerpoint-to-markdown-tool-for-ai-and-here-is-what-it-a", "canonical_source": "https://dev.to/tedock/i-built-a-pdf-word-and-powerpoint-to-markdown-tool-for-ai-and-here-is-what-it-does-with-a-real-jf7", "published_at": "2026-11-29 18:04:14+00:00", "updated_at": "2026-11-29 18:16:13.578214+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "large-language-models", "ai-products"], "entities": ["Apify", "NIST", "Claude", "NIST Cybersecurity Framework 2.0"], "also_reported_by": [], "takeaway": "Converting PDFs and Office files to heading-chunked Markdown preserves table structure for AI ingestion, but expect merged columns—the NIST CSF 2.0 table's Function and Category fields collapsed into one cell.", "recommendation": {"advice": "Convert source documents to heading-chunked Markdown before embedding them for retrieval, and manually verify merged table cells like the NIST CSF 2.0 example.", "playbook": "rag-retrieval", "playbook_url": "https://wpnews.pro/playbooks/rag-retrieval"}, "alternates": {"html": "https://wpnews.pro/news/i-built-a-pdf-word-and-powerpoint-to-markdown-tool-for-ai-and-here-is-what-it-a", "markdown": "https://wpnews.pro/news/i-built-a-pdf-word-and-powerpoint-to-markdown-tool-for-ai-and-here-is-what-it-a.md", "text": "https://wpnews.pro/news/i-built-a-pdf-word-and-powerpoint-to-markdown-tool-for-ai-and-here-is-what-it-a.txt", "jsonld": "https://wpnews.pro/news/i-built-a-pdf-word-and-powerpoint-to-markdown-tool-for-ai-and-here-is-what-it-a.jsonld"}}