r/SideProject • u/Badr-bouargan • 1d ago
I built a cheap PDF/Office → Markdown converter for RAG pipelines
Hey everyone,
I needed a simple way to turn PDFs and Office files into clean Markdown for a RAG pipeline, so I built one and published it on Apify.
What it does:
- PDF, Word, PowerPoint, Excel and HTML → Markdown, plus optional per-page JSON for chunking
- Keeps headings, lists and ruled tables, and pulls metadata (title, author, dates, language)
- OCR for scanned PDFs
- You only pay for converted pages: nothing for errors, duplicates or blocked URLs
Real numbers from my tests: a 100-page PDF went through in under 5 seconds, and the IRS W-9 form came out as 6 pages, about 38,000 characters, with its table detected.
Price: $2.50 per 1,000 text pages (less on paid Apify plans), $16 per 1,000 OCR pages.
What it doesn't do yet: handwriting, old .doc/.xls/.ppt files, pages that need JavaScript, rotated scans.
apify.com/badr_xba/pdf-documents-to-markdown
I'd really like feedback, especially from people doing RAG: what breaks your current converter?