cd /news/ai-tools/i-built-a-pdf-word-and-powerpoint-to… Β· home β€Ί topics β€Ί ai-tools β€Ί article
[ARTICLE Β· art-178218] src=dev.to β†— pub= topic=ai-tools verified=true sentiment=↑ positive

I built a PDF, Word and PowerPoint to Markdown tool for AI, and here is what it does with a real table

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.

recommendation

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.

more in playbook: Retrieval and RAG
by read2 min views1 publishedNov 29, 2026

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.

If 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.

I 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.

I ran it on a public document: the NIST Cybersecurity Framework 2.0 (a US government PDF). This is Table 1 on page 20.

Plain text extraction (the "copy and paste" version):

Function   Category   Category Identifier
Govern (GV)   Organizational Context   GV.OC
Risk Management Strategy   GV.RM
Roles, Responsibilities, and Authorities   GV.RR
Policy   GV.PO
Oversight   GV.OV
Cybersecurity Supply Chain Risk Management   GV.SC
Identify (ID)   Asset Management   ID.AM

An 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.

What my tool gives you:

| Function Category | Category Identifier |
| --- | --- |
| Govern (GV) Organizational Context | GV.OC |
| Risk Management Strategy | GV.RM |
| Roles, Responsibilities, and Authorities | GV.RR |
| Policy | GV.PO |
| Oversight | GV.OV |
| Cybersecurity Supply Chain Risk Management | GV.SC |
| Identify (ID) Asset Management | ID.AM |

Now 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.)

$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.

https://apify.com/tedock/doc-to-markdown?ref=devto

Paste 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.

tedock

── more in #ai-tools 4 stories Β· sorted by recency
── more on @apify 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/i-built-a-pdf-word-a…] indexed:0 read:2min 2026-11-29 Β· β€”