Merge PDFs Without Losing Bookmarks: What Actually Works
Most merge tools, including ours, do not carry each file's own bookmarks into the merged PDF. What works is one of three routes: merge at the source and export bookmarks from headings, use software that explicitly merges outlines, or merge first and rebuild the bookmarks with page offsets. This guide shows each route and how to check the result.
Losing bookmarks is easy to miss. The merged file opens, every page is there, and only later does someone notice that the navigation panel is empty or shows a single entry per file. For a long report that is an annoyance. For a regulatory submission, where agencies expect bookmarks to match the table of contents, it is a defect to fix before publishing.
Why do bookmarks disappear when you merge PDFs?
Bookmarks are not part of the pages. ISO 32000-1, the PDF standard, describes the document outline as a tree of outline items (sometimes called bookmarks) whose root is referenced from the document catalogue, a structure that belongs to the whole document (section 12.3.3). Each item points to a destination, usually a specific page.
When a tool merges PDFs, it typically creates a new document and copies the pages into it. The pages arrive, but the outline tree from each source file stays behind unless the tool is written to copy it, re-point every destination at the new page objects and stitch the trees together. Many tools do not do that last step. The open-source qpdf library is a good example of the usual behaviour: its manual states that, when you combine pages from several files, document-level information such as outlines is taken from the primary input file only.
What does Priya LifePDF's Merge PDF do with bookmarks?
Here is exactly what our Merge PDF tool does, from its code. It copies every page of every file into a new document in the order you set. It has one option, labelled "Preserve bookmarks (create bookmark for each file)", which is on by default.
- With the option on, the merged PDF gets one new bookmark per source file, titled with the file name without ".pdf" and pointing to that file's first page.
- It does not copy the bookmarks that were already inside each file. A report with 40 chapter bookmarks contributes one bookmark, named after the file.
- With the option off, the merged file has no bookmarks at all.
So, despite the word "preserve" in the label, the option builds a simple file-level index rather than keeping the original outlines. Our guide on how to merge PDF files covers the rest of the merge settings.
Route 1: merge at the source and export bookmarks again
If the PDFs were created from word-processor documents and you still have the sources, this is usually the cleanest route. Combine the source documents into one, check that every heading uses a real heading style, then export to PDF with bookmarks created from headings. The W3C's PDF accessibility technique PDF2 describes this approach for Microsoft Word: when the document's headings are converted, they appear as bookmarks in the PDF.
The bookmark tree then matches the document structure exactly, at every level, and the page numbers are right by construction. The drawback is that you need the sources and permission to regenerate the PDF, which is not always possible for signed or approved documents.
Route 2: use software that merges outlines
Some desktop PDF editors and publishing tools have an explicit option to keep or merge bookmarks when combining files. If you use one, test it on copies first and check the result against the checks below, because behaviour differs between products and versions. Do not assume an option labelled "preserve bookmarks" keeps the original outlines; as shown above, ours does not.
Route 3: merge, then rebuild the bookmarks
When you cannot regenerate from source, rebuild the outline after merging. This takes some care but needs only free tools, and everything runs in your browser.
- Record each file's bookmarks. Open each source PDF in Edit Bookmarks. It reads the existing bookmarks automatically when you load a file, so you can see each title, its level and its page. Note them down, or keep the file open in your PDF reader beside you.
- Note each file's page count. You need these to work out where each file's pages land in the merged document.
- Rename the files. The file-level bookmarks take their titles from file names, so "Module 2.7.3 Summary of Clinical Efficacy.pdf" is far better than "scan0042.pdf".
- Merge with the bookmark option on. You now have one top-level bookmark per file.
- Open the merged file in Edit Bookmarks and add the inner bookmarks. Add each original bookmark as a child of its file's bookmark, at the original level, and set its page to the original page plus the offset.
- Save and check the result, as described below.
Working out the page offset
The offset for a file is the total number of pages in all the files before it. For example:
| File (in merge order) | Pages | Offset | Bookmark on page 4 of the file goes to |
|---|---|---|---|
| Cover letter | 2 | 0 | page 4 |
| Report | 38 | 2 | page 6 |
| Appendix A | 12 | 40 | page 44 |
| Appendix B | 9 | 52 | page 56 |
Two details are worth knowing. Edit Bookmarks lets you nest bookmarks as children and drag them into order, and it replaces the file's whole outline when you save, so build the full tree before saving. Its bookmarks point to the top of the chosen page rather than to an exact position on it, so a heading halfway down a page takes the reader to the top of that page.
Add a clickable contents page if you need one
Once the bookmarks are right, Table of Contents can generate a linked contents page from them. It inserts the new pages at the start of the document, adjusts the links for them and can add a bookmark for the contents page itself. Because it adds pages at the front, run it last, after the bookmarks are final.
How to check the merged bookmarks
- Click every bookmark. Each one should land on the right page. A wrong offset shows up as every bookmark in one file being out by the same number of pages.
- Compare the hierarchy with the table of contents. Levels and order should match.
- Check the titles. File-level bookmarks named after files often need tidying.
- Check internal links too. Hyperlinks inside the original documents are a separate structure from bookmarks; test a sample of them after merging.
- Check page count. The merged total should equal the sum of the source files.
Bookmarks in eCTD submissions
Agencies are specific about bookmarks, which is why a merge that drops them matters in regulatory work. The FDA's PDF Specifications ask for a hypertext-linked table of contents and bookmarks in documents of five pages or longer, and suggest a bookmark hierarchy identical to the table of contents, up to four levels deep. They also ask for links and bookmarks to use the "Inherit Zoom" magnification setting. Bookmarks made by our Merge PDF and Edit Bookmarks tools leave the zoom value empty, which under ISO 32000-1 means the reader keeps its current magnification.
Appendix 7 of the ICH eCTD Specification v3.2.2 says that, for documents with a table of contents, bookmarks should be provided for each item listed, following its hierarchy and order, with no additional levels and no more than four levels recommended. The EMA's harmonised eCTD guidance (version 6.0.1) quotes ICH Q&A 53: any document that has a table of contents is expected to have bookmarks.
In practice, many submission documents are assembled from separately approved parts. If you merge them, rebuild and check the outline before publishing, and record the step in your publishing procedure. Our checklist on preparing PDFs for regulatory submissions covers the other checks agencies apply. Priya LifePDF is a general-purpose tool, not a validated eCTD publishing system.
Tools mentioned in this article
Frequently asked questions
Why are my bookmarks gone after merging PDFs?
Bookmarks are stored in a document-level outline, not on the pages. Many merge tools copy only the pages into a new file, so each source file's outline is left behind unless the tool is built to copy and combine it.
Does Priya LifePDF's Merge PDF keep the original bookmarks?
No. Its bookmark option creates one bookmark per source file, named after the file and pointing to its first page. The bookmarks inside each original file are not copied, so rebuild them afterwards with Edit Bookmarks.
How do I work out the new page number of a bookmark after merging?
Add the total page count of all files that come before it in the merge order to the bookmark's original page number. For example, page 4 of a file that follows 40 pages of earlier files becomes page 44.
How many bookmark levels should a submission PDF have?
The FDA PDF Specifications and Appendix 7 of the ICH eCTD Specification v3.2.2 both point to a hierarchy that mirrors the table of contents, with no more than four levels.
Sources
- ISO 32000-1:2008 (PDF 1.7), section 12.3.3 Document Outline (Adobe-hosted free copy)
- qpdf documentation: Running qpdf, page selection
- W3C: PDF2, Creating bookmarks in PDF documents (WCAG 2.2 Techniques)
- FDA: Portable Document Format (PDF) Specifications, v4.1
- ICH eCTD Specification v3.2.2, Appendix 7: Specification for Submission Formats
- EMA eSubmission: Harmonised Technical Guidance for eCTD Submissions in the EU, version 6.0.1
