How to merge PDF documents
Order, mixed page sizes, bookmarks, forms and what to do afterwards
How combining PDFs actually works, how to control the page order, what happens to different page sizes, bookmarks, links and form fields, and when a merged file is worth compressing.
- By HelpMeJPG editorial team
- Published
- Updated
- 9 min read
On this page
Quick answer: To merge PDFs, add the files to the Merge PDF tool, put them in order with the arrow buttons beside each file and press Merge; the pages of each file are copied into one new document in that order. Nothing is re-rendered, so text stays selectable and every page keeps its own size and orientation. The merged file is roughly the sum of its parts, so compress it afterwards only if the size matters for where it is going.
What merging actually does to a PDF
A PDF is a collection of numbered objects: page objects, content streams that describe what to draw, fonts, images, annotations, and a page tree that lists the pages in display order. When two documents are merged, a new, empty document is created and the page objects of each source are copied into it, together with every object they refer to – their fonts, images and the content streams that paint them. The page tree of the new file simply lists the copied pages one after another.
This is why merging is lossless. The copier does not look at how a page is drawn; it copies the instructions and the resources they need. A scanned page remains the same JPEG it was, a page of vector artwork remains vectors, and a page of text keeps its embedded font program. Nothing is converted to an image at any point, so the quality of the merged document is identical to the quality of its parts. Merging also never recompresses anything: a merged file is at least as large as the files that went into it, and usually a little larger, because resources shared by several source documents (the same font in three reports, say) are copied once per source rather than deduplicated.
Getting the order right
The order of the files in the merge list is the order of their pages in the result, so the whole exercise comes down to arranging that list correctly before you press the button. A few habits make this far less error-prone:
- Name the files with a numeric prefix before you start.
01-cover.pdf,02-report.pdf,03-appendix.pdfsort correctly in every file picker and leave a record of the intended order. Use two digits (or three for very long sets) so that10does not sort before2. - Use the thumbnails and page counts. Each file in the list shows its first page and how many pages it contains. Two files called
scan.pdfandscan (1).pdfare indistinguishable by name but usually obvious by thumbnail. - Check the total. The sum of the page counts shown is the length of the result. If it is not what you expected, a file is missing or duplicated.
- Reorder before merging, not after, where you can. Moving a whole file is one action; moving its forty pages individually later is forty.
If the pages of a single source file are themselves in the wrong order – a scan that came out back to front, say – fix that file first with the Reorder PDF Pages tool, then merge; the guide on arranging and reordering PDF pages covers reversing and interleaving. When the final sequence interleaves pages from different sources, merge first and reorder the combined document instead.
Everything in the list can be done without a mouse: focus a file card and use the move buttons, which is also the most precise way to nudge a long list by a single position.
Mixed page sizes and orientations
PDFs do not have a single page size. Every page carries its own dimensions and rotation attribute, and a merged document inherits all of them. Combining an A4 letter, a Letter-sized contract and a landscape spreadsheet produces a valid PDF whose pages simply differ in size. Whether that matters depends on what happens next:
| Situation | What you see | What to do |
|---|---|---|
| Reading on screen | The viewer fits each page to the window; different sizes are fine | Nothing |
| Printing on one paper size | The print dialog scales or crops pages that do not match | Set the printer to "fit to page", or make the pages uniform first |
| Submitting to a portal with size rules | Some systems reject mixed or non-standard sizes | Run the merged file through Resize PDF Pages and choose A4 or Letter |
| A few pages are sideways | Landscape scans appear rotated among portrait pages | Rotate just those pages with Rotate PDF; rotation is a page attribute, not a redraw |
| Combining photos or scans saved as images | Each image becomes a page at its own pixel size | Convert the images with JPG to PDF using one page size, then merge |
Resizing is the one step in this table that is not a pure copy. To put a page onto new paper, its content is embedded as a graphics object and scaled, which keeps text and vectors sharp but does not carry links or form fields across. If a merged form needs uniform paper, resize the non-form parts first and merge the form last.
What happens to bookmarks, links and forms
This is where merging stops being a simple copy, and where most surprises come from. The rule of thumb: anything attached to a page travels with the page; anything that belongs to the document as a whole does not.
Bookmarks (the outline panel). Bookmarks are stored in a document-level outline tree that points at pages. When pages are copied into a new document, that tree is not rebuilt, so the merged file has no outline even if each source had one. If you need a navigable table of contents, add it in a PDF editor after merging, when the final page order is known.
Links. A link is an annotation placed on a page, so it is copied with the page, and a link to a web address keeps working. A link that jumps to another page of the same source document may not: its destination referred to a page in the old file, and whether the copied annotation still resolves depends on how the destination was written. Test internal links in the merged document rather than assuming they survived.
Form fields. The visible part of a form field is a widget annotation on a page and therefore travels with it. The field's definition, however, is also registered in a document-level form dictionary, and fields in different source files can share a name – "Signature", "Date" and "Name" appear in every template. When that happens the first definition wins, so two unrelated "Date" fields may start showing the same value. Expect this when merging several copies of the same form, and check the result before sending it on.
Document metadata. The merged file takes its title from the first document in the list; author, subject and keywords are not combined. If the metadata matters, set it afterwards – the PDF metadata viewer shows what the file currently claims about itself.
Attachments, scripts and page labels. File attachments, document-level JavaScript and custom page numbering (page labels such as "i, ii, iii" followed by "1, 2, 3") are document-level features and are not carried over. Printed page numbers that are part of the page content are of course unaffected; if you need new sequential numbers across the merged document, Add Page Numbers can stamp them on.
Encryption. A protected source has to be opened with its password, and the merged result is unprotected. If the combined document should still be protected, apply a password to it afterwards; the guide on PDF passwords and encryption explains what the different passwords control.
Merging scans and image-only PDFs
Scanned documents are the heaviest things people merge. Each page is a full-page photograph, often several megabytes, and because merging copies images unchanged the combined file grows in direct proportion: two twenty-page scans become one forty-page scan at the same bytes per page.
Two habits keep this manageable. Scan consistently – the same resolution and colour mode for every batch – so the merged document does not alternate between crisp greyscale pages and soft colour ones. And if some pages still exist only as JPG or PNG files, convert them to PDF at a fixed page size before merging so they line up with the rest.
When to compress afterwards
Merging never reduces file size, so the question is only whether the combined size is a problem. For a document that will be stored or printed, it usually is not; compressing it buys nothing and costs a little image quality. For a document that will be emailed, uploaded to a portal with a size limit or opened on a phone, it often is.
If you do compress, do it once, on the final merged file, with the Compress PDF tool. Compressing each part first and then merging gives the same images a second round of lossy re-encoding for no benefit. Pick the profile by content: the lossless profile only tidies the file structure and is safe for anything; the balanced profile re-encodes photographs and scans at a lower resolution and is the sensible default for email; the stronger profiles are for previews. Text, fonts and vector graphics are never rasterised by any profile, so a merged report stays searchable. The guide on reducing PDF file size walks through the profiles, and why PDF compression sometimes fails explains the cases – fonts, vector-heavy pages, already-compressed scans – where the file will not shrink much however hard you try.
If even a compressed file is too large for its destination, the alternative to compressing harder is splitting: send the document in two or three parts instead of one degraded whole. How to split large PDF files covers that, and preparing PDFs for email puts the two approaches side by side.
A checklist for a clean merge
- Rename the files with numeric prefixes in the intended order.
- Fix any file whose own pages are out of order or sideways before merging.
- Unlock protected files; the result will be unprotected.
- Add the files, confirm the order by thumbnail, and check the total page count.
- Merge, then spot-check the joins between documents and any internal links or form fields.
- Resize if pages must be uniform; add bookmarks if a table of contents is needed.
- Compress only if size is a problem for the destination, and protect the file again if it needs a password.
Try it: Merge PDF – add the files, check the order by thumbnail and download one document.
Your original files are never changed by any of these steps, so an unsatisfactory result costs nothing more than a second attempt.
Frequently asked questions
Does merging PDFs reduce their quality?
No. Pages are copied object for object rather than being rendered to images, so fonts, text, vector graphics and embedded pictures in the merged file are the same bytes as in the originals. Quality only changes if you deliberately compress the merged document afterwards, and even then text and vectors are left untouched.
Can I merge PDFs with different page sizes?
Yes. Each page keeps its own dimensions and rotation, and every reader displays mixed-size documents correctly. If you need every page on the same paper – for printing or for a portal that insists on A4 or Letter – run the merged file through the page resizer afterwards, bearing in mind that resizing drops links and form fields because the pages are placed as graphics.
Why has my merged file lost its bookmarks?
Bookmarks live in a document-level outline that points at pages; when pages are copied into a new document that outline is not rebuilt. Links and form fields that sit on the pages themselves do travel with them. Recreate the bookmarks in a PDF editor once the final page order is settled.
Sources and further reading
About the author
HelpMeJPG editorial teamEditorial team
The people who build and maintain the HelpMeJPG tools. Guides are written from the tools' own behaviour and the standards they implement, and are revised whenever a tool changes.