How to merge PDFs and keep their bookmarks

Putting several PDFs into one file is easy. Keeping their bookmarks is the hard part. Bookmarks are the clickable table of contents in a PDF app’s sidebar, and most mergers either drop them or leave them pointing at page numbers from the original files. This guide shows how to merge PDFs on a Mac, iPhone, or iPad with Sheafly and keep every bookmark pointing at the right page.

Quick answer

  1. Add your PDFs to Sheafly and put them in order. They merge top to bottom.
  2. Check the combined bookmarks in Edit TOC (Mac and iPad) or Table of Contents (iPhone), and tidy them if you like.
  3. Optionally turn on Settings › General › Add a Table of Contents page. Your bookmark edits stay put.
  4. Choose Save Merged PDF. Each file’s bookmarks come along, nested and re-pointed to their new pages, and Sheafly checks the saved file before it reports success.

Why bookmarks break when you merge

A PDF bookmark is a pointer to a page inside its own file. Once four chapters become one book, the first page of chapter 3 might be page 6 instead of page 1. A merger has to rebuild every pointer and keep the nesting, or throw the bookmarks away. Sheafly reads each file’s outline before merging. It adds one top-level entry per file, nests that file’s own entries under it, and points every one at its page in the finished PDF.

For this guide we merged four chapter PDFs of a fictional Riverside Community Garden Handbook. Between them they carry 25 bookmarks, up to three levels deep, and one chapter has a reviewer’s highlight on it.

Merge PDFs on a Mac

  1. Add the PDFs. Drag them onto the Sheafly window, click +, choose File › Open (⌘O), or drop them on Sheafly’s Dock icon. You can mix in images too.
  2. Put them in order. Files are merged top to bottom. Drag rows to reorder, or select one and use the arrow buttons (⌥⌘↑ / ⌥⌘↓). The TOC Entries column shows how many bookmarks each file brings.
  3. Name the chapters. Each file becomes a top-level bookmark named after its Title in Merged TOC. Double-click a title to rename the bookmark. The file on disk keeps its name.
  4. Review the combined bookmarks. Click the Inspector toolbar button (⌥⌘I) and choose Edit TOC. The page numbers are the real pages of the finished file.
Sheafly on Mac with four handbook chapter PDFs listed in order and the Edit TOC inspector showing their merged, nested bookmarks with output page numbers
Four chapter PDFs in Sheafly for Mac. The Edit TOC tab shows the merged file’s outline before you save, with real page numbers.
  1. Optional: add a printed contents page. Open Settings (⌘,) › General and turn on Add a Table of Contents page. Its entries are clickable links by default. Turn off List nested entries if you only want one line per file.
  2. Save. Click Save Merged PDF and choose where to put it. Sheafly re-opens the finished file and checks it before reporting success. If Open the merged PDF automatically is on, the file then opens in your default PDF app.
Sheafly Settings on Mac, General pane, with Add a Table of Contents page switched on and its List nested entries and Make entries tappable options
Settings › General controls the automatic bookmarks and the optional printed Table of Contents page.

Your edits stay putRenamed, removed, and added bookmarks survive changes in Settings, such as turning on the contents page, flattening comments, or adding blank pages between documents. Only changing which documents are combined, their order, or which of their pages are included starts the table of contents afresh. See how to edit a PDF’s table of contents for renaming, removing and adding entries.

Merge PDFs on iPhone or iPad

  1. Start a session and pick the files. Tap New Session, then Choose Files…. In the Files picker, select every PDF you want from On My iPhone, iCloud Drive, or another provider, and tap Open.
  2. Check the order. The picker doesn’t guarantee an order (ours arrived shuffled). Tap Edit, select a document, and use the ↑ and ↓ buttons or drag the handles, then tap the checkmark (Done).
  3. Review the bookmarks. On iPhone, tap Table of Contents under Merged PDF. For a printed contents page, open Settings… › General. On iPhone, Settings… is in the ⋯ (More) menu. On iPad, tap the gear button in the toolbar.
  4. Save. Name the file and tap Save Merged PDF. There’s no save dialog. The PDF goes into Sheafly’s PDF Library, which also shows up in the Files app under Sheafly. If Open the merged PDF automatically is on (it is by default), the file opens in the built-in viewer, and the list button shows its bookmarks. To send it elsewhere, use Share or Save to Files… from the library.
The iPhone Files picker inside Sheafly with four handbook chapter PDFs selected in the Garden Handbook folder
Pick all the PDFs at once in the Files picker.
Sheafly on iPhone in Edit mode with one chapter selected and move up, move down and remove buttons along the bottom
Edit mode: select a document and move it up or down.
Sheafly’s built-in PDF viewer on iPhone showing the saved handbook’s contents page with its Table of Contents sheet listing bookmarks and page numbers
The saved file’s bookmarks in Sheafly’s viewer.

On iPad the steps are the same. In a full-width window, the document details and the Edit TOC tab sit in an inspector column beside the document list, and the viewer can keep the bookmarks open in a sidebar.

Sheafly’s viewer on iPad in landscape with the saved handbook’s bookmarks in a sidebar and page 3 open at Plot guidelines, where the Seasonal fees heading carries a flattened yellow highlight
iPad: the saved handbook with its bookmarks in the sidebar. Tapping “Seasonal fees” opened page 3.

Flattening comments? The bookmarks still come through

If your PDFs carry comments or highlights that should become a permanent part of the page, open Settings › Content and choose Flatten into the page. The markup stays visible but can no longer be edited or deleted. Sheafly flattens only the pages’ own markup, so the bookmarks and the links on a generated contents page keep working.

Sheafly Settings on Mac, Content pane, with Annotations and comments set to Flatten into the page
Settings › Content › Flatten into the page.

Every save is checkedSheafly 2.1 re-opens each PDF it saves and compares it with what it wrote. If any Table of Contents entry or contents-page link didn’t make it into the file, the save ends with a warning that says what went missing instead of a success message. That check was added after a change in macOS 27 and iOS/iPadOS 27 caused Sheafly 2.0 to save flattened merges with a contents page but no bookmarks. In our test on macOS 27, version 2.0 saved this handbook with 0 bookmarks and 25 contents-page links that went nowhere. Version 2.1 fixes it. Update if you use these settings.

What the merged file looks like

We saved the handbook on a Mac, an iPhone, and an iPad. Each time we tidied away the duplicate chapter titles and turned on Flatten into the page, a Table of Contents page, and page-number footers. Then we checked every file with two independent PDF readers (qpdf and Apple’s PDFKit). Each has 8 pages and all 25 bookmarks, nested in three levels, each opening the right page. All 25 lines on the contents page are working links, and the reviewer’s highlight is painted into the page with no editable markup left.

The first page of the merged handbook: a Table of Contents page generated by Sheafly listing four chapters and their nested sections with dotted leaders and page numbers 2 to 8
Page 1 of the saved PDF, rendered straight from the output file. Every line is a link.
Page 3 of the saved handbook, Plot guidelines, with the Seasonal fees heading highlighted in yellow and a Page 2 of 7 footer
Page 3: the reviewer’s highlight is now part of the page, and the footer counts from the first chapter page.

Limits

Sheafly app icon

Try it on your own files

Sheafly is a one-time purchase on the App Store, and one purchase covers Mac, iPhone, and iPad. No subscription, no account, and your documents never leave your device.

Requires macOS 14 or later, or iOS/iPadOS 17 or later.