.pdf · application/pdf
PDF: Portable Document Format
PDF stores fixed visual page layouts using binary streams and glyph coordinates rather than semantic paragraphs or headings.
Quick Answer: PDF stores fixed visual page layouts using binary streams and glyph coordinates rather than semantic paragraphs or headings. Print-exact contracts, invoices, research papers, and archival read-only distribution.
| Structure type | Document |
|---|---|
| Human readability | Low |
| Nesting support | No |
| LLM token efficiency | Low |
| File extension | .pdf |
| MIME type | application/pdf |
| Best for | Print-exact contracts, invoices, research papers, and archival read-only distribution. |
Strengths
- Preserves exact typography, margins, and layout across every OS and printer
- Ideal export format when generating shareable reports from Markdown
- Widely accepted for formal archiving and signed business paperwork
Trade-offs
- Binary format wastes context and fails raw text pasting unless extracted
- Multi-column layouts and line wraps fracture sentences when copied naively
- Scanned image-only PDFs lack selectable text layers without OCR
References
Convert & clean PDF locally
Related engineering guides
- Markdown to PDF & PDF to TXT: Clean Offline Document WorkflowsExport Markdown runbooks to A4 or Letter PDFs with CJK font support, and extract clean unwrapped TXT or Markdown from local PDFs via PDF.js.
- Preparing PDF, Word & Excel as Clean Markdown for RAG & LLMsTurn confidential PDFs, Word DOCX docs, and Excel sheets into structured Markdown for vector chunking and LLM context—100% locally.
- How to Anonymize Text, Contracts & Logs for ChatGPT LocallyReplace names, IBANs, contracts, and secrets with reversible [[TYPE-NN]] tokens locally in browser RAM before pasting prompts into ChatGPT or Claude.
- Why Server-Side Paste Tools Leak Secrets — Zero-Upload ArchitectureLearn why pasting .env files, JWTs, customer CSVs, or contracts into cloud converters leaks data—and how to verify 0 bytes uploaded locally.
Related Formats
All 24 formatsPDF frequently asked questions
How does TxtTo extract PDFs locally without uploading sensitive files?
TxtTo runs a self-hosted local PDF.js engine inside browser memory, reconstructing headings by font size and merging broken line wraps with zero network requests.
Can Markdown be exported as a real binary PDF locally?
Yes. Markdown to PDF generates genuine %PDF-1.7 files in browser memory using pdf-lib, including Canvas-to-PNG fallback for CJK characters.
Why do repeating headers or page numbers clutter extracted PDF text?
PDF pages repeat running headers and footers as visual text objects. Enabling Strip Headers/Footers detects and removes repeated margin lines.