.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 typeDocument
Human readabilityLow
Nesting supportNo
LLM token efficiencyLow
File extension.pdf
MIME typeapplication/pdf
Best forPrint-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

Related Formats

All 24 formats

PDF 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.