Published January 15, 2026 · By Tom Cannon
PDF (Portable Document Format) is one of the most widely used file formats in the world. Created by Adobe in 1993, it was designed to present documents consistently across every device and platform. Over three decades later, PDFs are everywhere — contracts, invoices, reports, ebooks, government forms, academic papers, and much more. But how do PDF files actually work, and how do tools merge, split, and modify them?
A PDF file is not a simple linear document like a text file. It is a structured binary format with four main sections. The header identifies the file as a PDF and specifies the version. The body contains objects that define the document's content — text, fonts, images, and page layouts. The cross-reference table maps each object to its byte position in the file, allowing random access without reading the entire document. The trailer points to the cross-reference table and the root object of the document.
Each page in a PDF is an independent object that references the content streams, fonts, and images it uses. This object-based structure is what makes operations like merging and splitting possible — you can copy page objects from one PDF to another without understanding the content of those pages.
When you merge multiple PDFs into one, the tool reads the page objects from each source document and copies them into a new PDF, preserving each page's content streams, fonts, images, and formatting. The cross-reference table of the new document is rebuilt to point to all the copied objects.
This process is generally reliable, but there are edge cases. Fonts embedded in one source PDF might conflict with fonts in another. Interactive form fields with the same name across documents can cause issues. Document-level JavaScript and bookmarks may not merge cleanly. Despite these potential complications, page content itself is almost always preserved perfectly.
Splitting a PDF involves creating a new document that contains only a subset of the original's page objects. The tool reads the original PDF, identifies the requested pages, copies those specific page objects (along with their referenced resources like fonts and images) into a new PDF, and writes the new cross-reference table and trailer.
One subtlety of splitting is resource sharing. If multiple pages share the same font or image, that resource needs to be included in the new document even if only one page explicitly references it. Good splitting tools handle this automatically, but it is why split PDFs sometimes seem larger than expected relative to their page count.
PDFs support two types of password protection. User passwords prevent opening the document entirely — without the password, the content is encrypted and unreadable. Owner passwords restrict specific actions like printing, copying text, or editing, but the document can still be viewed. Most PDF tools can work with owner-password-protected files (since the content is readable) but cannot process user-password-protected files without the password.
Libraries like pdf-lib (used by ToolPix) can parse, create, and modify PDF documents entirely in JavaScript. This means your browser can merge, split, and manipulate PDFs without sending them to a server. The library handles the complex binary format parsing, object copying, and cross-reference table rebuilding that make these operations possible.
For most common PDF tasks — merging a few documents, extracting specific pages, or creating simple new PDFs — browser-based processing is fast and reliable. Our PDF merger and PDF splitter handle these tasks instantly, with your files staying completely on your device.
Keep source files whenever possible — if you have the original Word, PowerPoint, or design file, editing that and re-exporting to PDF produces better results than modifying the PDF directly. Use optical character recognition (OCR) on scanned PDFs to make the text searchable and copyable. When merging many PDFs, put them in the correct order before starting — renaming files with number prefixes (01-intro.pdf, 02-chapter1.pdf) makes this easier. Always check the merged result to ensure all pages are present and correctly ordered.
Free weekly tips on image optimization, PC gaming, and web development. No spam.
We respect your privacy. Unsubscribe anytime.