Node.js
Read local files, uploads, S3/R2 objects, and other byte sources.
Convert PDF files to GitHub-Flavored Markdown directly in your browser.
Your PDF stays on your device. No upload. No account.
Starting local converter
$
npm install @mdgate/pdf
import { toMarkdown } from '@mdgate/pdf';
const markdown = await toMarkdown(bytes);
Pure TypeScript, Node.js, Cloudflare Workers, Edge, Browser, No Python, No native addons, No WASM, Zero third-party runtime dependencies
Read local files, uploads, S3/R2 objects, and other byte sources.
Parse PDFs directly inside Workers without a Python service or native binary.
Convert text-based PDFs locally without uploading them to a server.
Run the same TypeScript converter in compatible Edge runtimes.
PDF text → @mdgate/pdf → Markdown
PDF images → your image / vision pipeline
@mdgate/pdf does not silently send PDFs to an OCR or AI service.
No separate processing service. The converter is TypeScript you can call from Node.js, Cloudflare Workers, Edge runtimes, and browsers.
PDF files can stay inside your application or browser.
Recognizes PDF files from their contents, not only the filename.
The same PDF file produces repeatable Markdown without model inference.
No Python. No native addons. No WASM. No third-party runtime dependencies.
Turn PDF files into content your agent can actually work with.
@mdgate/pdf
@mdgate/core
+ @mdgate/pdf
+ @mdgate/docx
+ @mdgate/pptx
@mdgate/converters
Yes. PDF files can be converted locally in the browser.
Yes. @mdgate/pdf runs directly in Cloudflare Workers.
No.
No.
GitHub-Flavored Markdown.
Yes. Install @mdgate/pdf instead of the complete converter set.
@mdgate/pdf deterministically parses textual PDF content. Text visible only inside scanned images requires an image or vision pipeline.