PDF to Markdown Examples
Concrete examples of PDF inputs, Markdown outputs, and API calls for common document workflows.
Invoice
Invoices usually need line items, totals, dates, and vendor fields preserved.
# Invoice INV-2024-1337
**Vendor:** Northwind Electronics GmbH
**Invoice date:** 2024-06-12
| Item | Qty | Unit Price | Total |
|---|---:|---:|---:|
| Industrial sensor module v3 | 50 | $124.00 | $6,200.00 |
**Total due:** $9,682.73 Scanned document
For image-only PDFs, the API uses OCR and layout recognition rather than the PDF text layer.
## Delivery Note
**Received by:** J. Smith
**Date:** 2024-04-18
1. Pallet A - accepted
2. Pallet B - damaged corner noted Research paper
Two-column reading order and section headings matter most for academic PDF ingestion.
# Attention Is All You Need
## Abstract
The dominant sequence transduction models are based on complex recurrent or convolutional neural networks...
## 1. Introduction API call
curl -X POST https://pdftomarkdown.dev/v1/convert \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"pdf_url":"https://pdftomarkdown.dev/samples/invoice.pdf"}}' CLI call
The same conversion from the terminal, no code required (Node 18+) — see the CLI guide:
npx pdftomarkdown https://pdftomarkdown.dev/samples/invoice.pdf > document.md Known limitations
Low-resolution scans, handwritten annotations, password-protected PDFs, CAD drawings, and documents with important visual figures may need manual review after conversion.