---
title: "How PDF Files Work: A Plain-English Guide | FixMyPDFNow"
url: https://fixmypdfnow.com/learn/how-pdf-files-work/
---

# How PDF files work, and why they behave the way they do

By the FixMyPDFNow editorial team · Last updated: November 2026

PDF files seem simple until you try to edit one. This guide explains what a PDF actually contains, so that the behaviour of every PDF tool, ours included, makes sense.

## A PDF is a set of drawing instructions

The Portable Document Format was created so that a document would look the same on every screen and printer. To achieve that, a PDF does not describe paragraphs and sentences the way a word processor does. It describes a page as a list of drawing instructions: place this piece of text at these coordinates in this font, draw this line, paint this image in this rectangle. The viewer simply follows the instructions, which is why the page looks identical everywhere.

This design has consequences. Because text is placed piece by piece, a paragraph is not stored as a paragraph. A single sentence may be split into several fragments, and the gaps between words may be produced by positioning rather than by space characters. That is why copying text from a PDF sometimes gives broken lines or odd spacing, and why turning a PDF back into an editable document is an act of reconstruction, not a simple export.

## Text, vector graphics and images

Page content comes in three kinds. Text is stored as character codes plus a font. Vector graphics, such as logos, charts and lines, are stored as mathematical shapes that stay sharp at any zoom. Images are stored as grids of pixels, compressed with methods such as JPEG, and they stay at the resolution they were saved in. A file made by exporting from a word processor is mostly text and vectors and is therefore small. A scan is a full-page image on every page and is therefore large.

This is the single most useful fact for working with PDFs. A text-based file compresses a little, can be searched, and its text can be extracted. A scanned file compresses a lot, cannot be searched until text recognition has been applied, and has no text to extract. When a tool behaves unexpectedly on a file, the first question to ask is whether the file is text or pictures.

## Fonts and why they are embedded

For a PDF to look the same on every computer, it must carry the fonts it uses, otherwise the viewer would substitute a different font and the layout would change. Most PDFs embed a subset of each font, containing only the characters that were used. This keeps files small but means that a subset font cannot display characters that were never in the document, which is one reason editing existing text in a PDF is limited: if you type a letter that was not in the subset, the original font cannot draw it.

Standard fonts such as Helvetica, Times and Courier are the exception. Every PDF viewer knows them, so they need not be embedded. Tools that add text to a PDF often use these fonts for reliability.

## The page tree, metadata and other layers

Behind the pages, a PDF has a structure: a catalogue pointing to a tree of pages, each with a size, a rotation and its content. Around it sit optional parts: document information such as title and author, bookmarks forming an outline, links, form fields, annotations such as comments and highlights, attachments, and an optional invisible text layer in scanned documents that makes them searchable.

Each of these parts can be added or removed independently of the page content. That is why you can remove annotations without touching the text, flatten form fields into the page, edit the author field, or extract attachments. It is also why privacy matters: hidden metadata, comments and attachments can reveal more than the visible page.

## Rotation, page boxes and why pages look wrong

Every page has a size, called the media box, and can have a crop box that defines the visible area. A page also carries a rotation of 0, 90, 180 or 270 degrees applied when it is displayed. A scanned page that looks upright may actually be stored sideways with a rotation flag. Tools that place text or signatures have to account for the rotation and crop box, or the addition lands in the wrong place. This is a common source of bugs in PDF software, and handling it correctly is part of what separates careful tools from careless ones.

## What this means for the tools you use

Compression works mostly on images, so it helps scans and photos far more than text documents. Editing existing text is limited because the text is not stored as a flowing paragraph. Conversion to Word or Markdown is a best-effort reconstruction of structure from positions. Redaction must remove the underlying characters, not just cover them, because the text sits beneath any drawn box. Merging and splitting are almost lossless, because they only rearrange whole pages. Once you know how a PDF is built, you can predict which job will be easy and which will need care.

## Tools mentioned in this article

- [Compress PDF](https://fixmypdfnow.com/compress-pdf/)
- [Edit PDF text](https://fixmypdfnow.com/edit-pdf-text/)
- [Word to PDF](https://fixmypdfnow.com/word-to-pdf/)

## Keep reading

- [PDF compression explained: how to shrink a file and keep it readable](https://fixmypdfnow.com/learn/pdf-compression-explained/)
- [PDF passwords and encryption explained: what is protected and what is not](https://fixmypdfnow.com/learn/pdf-passwords-and-encryption-explained/)
- [How browser-based PDF tools work, and how to check that your files stay private](https://fixmypdfnow.com/learn/how-browser-based-pdf-tools-work/)
- [Electronic signatures explained: simple, advanced and qualified](https://fixmypdfnow.com/learn/electronic-signatures-explained/)
- [Scanning documents well: resolution, colour and cleanup for clean PDFs](https://fixmypdfnow.com/learn/scanning-documents-best-practices/)
- [Step-by-step how-to guides](https://fixmypdfnow.com/guides/)

Our content is written and reviewed under our [editorial policy](https://fixmypdfnow.com/editorial-policy/). Spotted a mistake? [Tell us](https://fixmypdfnow.com/contact/) and we will correct it.

---
Source: https://fixmypdfnow.com/learn/how-pdf-files-work/ · Index of all pages: https://fixmypdfnow.com/llms.txt · Contact: support@fixmypdfnow.com
