Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

pdf-lib can merge PDFs in a browser by copying pages from source documents into a destination PDF. But its documentation does not guarantee that every feature beyond the copied page content will survive. Treat forms, annotations, links, bookmarks, attachments, metadata, tagged structure, layers, and signatures as items to verify—not as a proven list of features the library always drops.

How browser-based merging works with pdf-lib

The pdf-lib project supports JavaScript use in browsers and lists copying pages between PDFs as a capability. Its PDFDocument API describes copyPages(srcDoc, indices) as copying selected pages from a source document into a destination document.

A typical merge flow is to load each source PDF, create or load a destination document, copy the pages you want in the desired order, add those pages to the destination, and save the resulting bytes. This describes the API flow; the documentation does not make that sequence an exhaustive guarantee about which non-page structures are preserved.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What pdf-lib documents—and what it does not

The official API also exposes separate operations for common document metadata and attachments. The form API covers interactive forms, while explicitly stating that XFA forms are unsupported for creation, modification, or reading. These separate APIs and the page-copying method do not amount to a complete preservation matrix for merging.

#1 Best Overall
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
  • Scanner type: Document
  • Connectivity technology: USB
  • With Auto Scan Mode, the scanner automatically detects what you're scanning
  • Digitize documents and images

So “silently drops” is too definite as a blanket claim: the reviewed documentation does not establish that pdf-lib always removes any particular set of features when copying pages. It also does not promise that every feature outside the copied page content will carry over. Which details survive can matter to the specific input and output, so check the merged file rather than assuming either preservation or loss.

Features to verify in the merged PDF

Inspect the output for features that matter to your use case. The documentation reviewed does not give a universal yes-or-no preservation guarantee for these categories:

Rank #2
Sale
Epson Workforce ES-50 Compact & Lightweight Mobile Document Scanner
  • PORTABLE SCANNER FOR USE ON-THE-GO — The fastest and lightest mobile single-sheet-fed compact document scanner in its class¹
  • QUICK DOCUMENT SCANNING ― This Epson ultra-fast scanner scans a single page as quickly as 5.5 seconds²; Windows and Mac compatible
  • VERSATILE PAPER HANDLING ― Portable scanner scans documents up to 8.5 x 72 in; Also easily digitizes receipts and ID cards to make accounting, bookkeeping, and organizing simpler
  • INTUITIVE, HIGH-SPEED SOFTWARE — Epson ScanSmart Software³ is a smart tool allowing you to easily scan, review, and save; Stay organized easily with the help of this Epson scanner
  • EASY SETUP — USB-powered connect to your computer for quick and simple scanning; No batteries or external power supply required to operate portable document scanner; Standard Connectivity: USB 2.0
  • Interactive forms: Check whether fields remain present and usable. XFA is explicitly unsupported by pdf-lib for creation, modification, or reading; do not assume an XFA workflow will work.
  • Annotations, links, and actions: Test that comments, clickable links, and any relevant actions behave as intended.
  • Bookmarks and navigation: Check outlines or bookmarks and page destinations if readers rely on them.
  • Attachments and metadata: Confirm that embedded files and document properties are present and correct. pdf-lib exposes APIs for attachments and common metadata, but that alone does not establish what page copying preserves.
  • Accessibility structure and layers: If tagged PDF structure or optional-content layers matter, inspect them with tools suited to the intended workflow. Their preservation is not established by the page-copying documentation.
  • Digital signatures: Treat a rewritten merged PDF as requiring signature validation. Do not assume a source signature remains valid after modification; determine whether the result must be signed again.

Validate output for the recipient’s workflow

  1. Open the merged PDF in the viewer the recipient is expected to use.
  2. Test every relevant interactive element: enter form data, follow links, inspect annotations, and use bookmarks or other navigation.
  3. Check metadata, attachments, layers, and accessibility structure when those features are part of the requirement.
  4. For signed documents, validate the output’s signature status and arrange for signing again if required.

Validation should reflect the actual file and workflow: a simple page compilation has different requirements from a form users must complete or a document being filed or signed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When to investigate a different PDF import tool

If preservation of imported structures is a hard requirement, compare libraries on the exact features your workflow needs rather than relying on a general claim that they “merge PDFs.” PDFlib 11’s vendor feature list names import support for annotations and form fields, including actions, document and page actions, encrypted documents, tagged PDF structure, and optional-content layers. See the PDFlib 11 feature list as a starting point for evaluation.

Rank #3
Sale
Brother DS-640 Compact Mobile Document Scanner, (Model: DS640)
  • FAST SPEEDS - Scans color and black and white documents a blazing speed up to 16ppm (1). Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • ULTRA COMPACT – At less than 1 foot in length and only about 1. 5lbs in weight you can fit this device virtually anywhere (a bag, a purse, even a pocket).
  • READY WHENEVER YOU ARE – The DS-640 mobile scanner is powered via an included micro USB 3. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan.
  • WORKS YOUR WAY – Use the Brother free iPrint&Scan desktop app for scanning to multiple “Scan-to” destinations like PC, Network, cloud services, Email and OCR. (2) Supports Windows, Mac and Linux and TWAIN/WIA for PC/ICA for Mac/SANE drivers. (3)
  • OPTIMIZE IMAGES AND TEXT – Automatic color detection/adjustment, image rotation (PC only), bleed through prevention/background removal, text enhancement, color drop to enhance scans. Software suite includes document management and OCR software. (4)

Those are vendor-documented capabilities, not an independent benchmark or a guarantee for every file. The feature list also does not establish suitability for every browser deployment or licensing arrangement; verify deployment, licensing, and behavior against representative PDFs before choosing a tool.

Quick Recap

Bestseller No. 1
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Scanner type: Document; Connectivity technology: USB; With Auto Scan Mode, the scanner automatically detects what you're scanning
$75.00
Best Value
Sale
ScanSnap iX1300 Wireless or USB Double-Sided Color Document Scanner, Black
  • FITS SMALL SPACES AND STAYS OUT OF THE WAY. Innovative space-saving design to free up desk space, even when it's being used
  • SCAN DOCUMENTS, PHOTOS, CARDS, AND MORE. Handles most document types, including thick items and plastic cards. Exclusive QUICK MENU lets you quickly scan-drag-drop to your favorite computer apps
  • GREAT IMAGES EVERY TIME, NO EXPERIENCE REQUIRED. A single touch starts fast, up to 30ppm duplex scanning with automatic de-skew, color optimization, and blank page removal for outstanding results without driver setup
  • SCAN WHERE YOU WANT, WHEN YOU WANT. Connect with USB or Wi-Fi. Send to Mac, PC, mobile devices, and cloud services. Scan to Chromebook using the mobile app. Can be used without a computer
  • PHOTO AND DOCUMENT ORGANIZATION MADE EFFORTLESS. ScanSnap Home all-in-one software brings together all your favorite functions. Easily manage, edit, and use scanned data from documents, receipts, business cards, photos, and more
Rank #4
Sale
Epson Workforce ES-400 II High-Speed Color Duplex Desktop Document Scanner
  • FAST DOCUMENT SCANNING — Document scanner with feeder allows you to speed through stacks with a 50-sheet Auto Document Feeder (ADF); Efficient office scanner to help you scan more productively
  • INTUITIVE, HIGH-SPEED SOFTWARE — Quickly scan with this desktop document scanner; Epson ScanSmart Software lets you easily preview scans, email files, upload to the cloud, and more; Plus, automatic file naming saves even more time
  • SEAMLESS INTEGRATION — Easily incorporate your data into most document management software with the included TWAIN driver; Office document scanner integrates seamlessly with business workflows
  • EASY SHARING — Duplex scanner allows you to scan straight to email or popular cloud storage2 services like Dropbox, Evernote, Google Drive, and OneDrive for simple storage and sharing
  • SIMPLE FILE MANAGEMENT — Scanner allows the creation of searchable PDFs with Optical Character Recognition (OCR) and convert scans to editable Word or Excel files effortlessly; Designed for home and office document scanning

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.