Doc to Markdown - PDF, DOCX & HTML to Markdown Converter
Pricing
Pay per usage
Doc to Markdown - PDF, DOCX & HTML to Markdown Converter
Converts your own PDF, DOCX, HTML or TXT file into clean Markdown. Built for RAG pipelines, LLM ingestion and AI agents that need plain, structured text instead of binary document formats.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Cuantic Data
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Share
Doc to Markdown — PDF, DOCX & HTML to Markdown Converter
Converts a PDF, DOCX, HTML or TXT document into clean Markdown. Built to feed RAG pipelines, index content for an LLM, or prepare documents for use by an AI agent.
What it does
- Downloads the file from the URL you provide.
- Detects the format by extension or
Content-Type. - Converts to Markdown, preserving headings, lists and bold text when the source format carries them (DOCX, HTML). PDFs are converted to plain text (see limitation below).
Who it's for
- RAG/agent pipelines that need plain text before indexing.
- Turning PDF/Word reports or contracts into a format that's easy to process with another program.
Input
| Field | Type | Required | Description |
|---|---|---|---|
fileUrl | string | Yes | Direct http(s) URL to the file. Maximum 20 MB. |
{ "fileUrl": "https://example.com/report.pdf" }
Output
{"sourceUrl": "https://example.com/report.pdf","format": "pdf","markdown": "Extracted text from the document...","characterCount": 4213}
Formats supported today (and what's not yet)
| Format | Support | Note |
|---|---|---|
| Yes | Plain text, no heading structure (see TERMS.md) | |
| DOCX | Yes | With structure (headings, lists, bold) |
| HTML | Yes | With structure |
| TXT | Yes | Passthrough |
| XLSX / XLS | Not yet | The Actor returns an explicit error, not an incorrect result |
| PPTX / PPT | Not yet | Same as above |
| DOC (Word 97-2003) | No | Use .docx, PDF or HTML instead |
Pricing
Pay-per-event, provisional. Starting reference: USD 0.01 per document
converted (03-plan.md §2). Final calibration against real compute before
publishing.
How to call it
curl "https://api.apify.com/v2/acts/cuantic-data~doc-to-markdown/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"fileUrl": "https://example.com/report.pdf"}'
Terms and limits
See ./TERMS.md: the document is always supplied by the user, the conversion libraries are open source under permissive licenses (Apache-2.0, BSD-2-Clause, MIT), and format limitations are disclosed, not hidden.
FAQ
Why doesn't my PDF have headings in the result? This is a known limitation of PDF text extraction: the format doesn't carry "this is an H1" as metadata, only visually positioned text. To keep headings, convert from DOCX or HTML if you have that version.
Do you support Excel/PowerPoint? Not yet. The Actor tells you explicitly instead of failing silently or returning an empty result.
Found a bug?
Email cuanticwindows@gmail.com — we reply within 72 hours.
See build/README.md for how to run tests and publish this Actor.