What This Tool Does
This PDF merger combines the pages from selected PDF files into a new PDF document. After you select files, the page lists their names and enables the download button.
The script creates a new PDF with pdf-lib, copies every page from each selected file, and downloads the result as merged.pdf.
File Count and Order
The file input accepts one or more .pdf files. The script does not set a fixed number of files or file-size limit, so very large PDFs or many PDFs may depend on browser and device memory.
Files are merged in the order shown in the list. If you select more files later, they are added after the files already listed. The current page does not include drag-and-drop reordering controls.
How to Merge PDFs
- Click Select PDF files and choose one or more PDF files.
- Review the file list. The list order is the merge order.
- Click Download Merged to create and save
merged.pdf. - Use Reset Inputs to reload the page and start over.
Privacy and Processing
The merge script reads selected files in the browser with file.arrayBuffer(), uses pdf-lib to copy pages into a new PDF, and creates a local Blob download. The script does not contain an upload request for selected PDFs.
Error Handling
The current script does not show a custom error message for unreadable, encrypted, or unsupported PDFs. If pdf-lib cannot load one of the selected files, the merge may stop and no merged file may download.
Common Uses
- Combining several PDF sections into one document.
- Joining separate scanned PDF files in the order they are selected.
- Creating one PDF from multiple PDF exports before sharing or archiving.