Merge PDF Files Without Uploading Them
Combine several PDFs into one in your browser: reorder files, mix A4 and A3 pages, keep bookmarks and handle password-protected PDFs.
Contents
Application and submission desks sometimes ask you to “combine all attachments into one PDF file.” In Japan you meet this instruction at public offices and with job or grant applications, and an online form may offer only one upload slot for attachments. What you actually have is a set of separate PDFs: the application form you filled in, a drawing made separately, and a quote sent by a supplier. All you need is to join them in the right order, but I would rather not upload these documents to an online conversion service. The application form contains a name and an address.
The PDF Merger joins the files inside the browser without sending them to a server. Here I reordered and merged three PDFs with different paper sizes, then opened the result in other software to check the page order, the page sizes and whether the text survived. I also looked at what happens when the input contains bookmarks (an outline), form fields or a password.
The PDFs I used
I made three PDFs for the test. Save them from the links below if you want to follow the same steps.
| File | Pages | Paper | Notes |
|---|---|---|---|
| 01_application.pdf | 2 | A4 portrait | A bookmark for each page |
| 02_floor-plan.pdf | 1 | A3 landscape | Stands in for a drawing |
| 03_quote.pdf | 1 | A4 portrait |
A4 is 210 × 297 mm, slightly narrower and longer than US Letter, and A3 is twice A4 at 297 × 420 mm, a common size for drawings. Let’s say the recipient asks for the order “application form, quote, drawing.” Compared with the numbers in the file names, the quote and the drawing are swapped.
Merging step by step
1. Add the PDFs
Open the tool and pick all three files at once with “Select PDF files (multiple)”. You can also drag them from Explorer or Finder into the “Preview & reorder” area on the right. Each added PDF appears as a card with a thumbnail of its first page and its file name.
The thumbnail shows only the first page of each file, so the two-page application form also gets just one card. Merging works file by file, and the page order inside each file is kept as it is.
2. Drag the cards into order
The merge order is the order of the cards, read from the top left to the right and then on to the next row. I dragged the 03_quote.pdf card in front of 02_floor-plan.pdf to get “application form, quote, drawing.”
If you added a file by mistake, remove it with the × at the top right of its card. To start the selection over, press “Clear”, which resets the added PDFs and the output file name.
3. Enter an output file name, press “Merge”, then “Download”
The “Output file name” defaults to merged.pdf. If the recipient specifies a file name, type it here. You can leave out the .pdf at the end: I entered application-set, and the file was saved as application-set.pdf.
Press “Merge”, and once the message at the top changes to “Merge complete. Ready to download.”, press “Download”.
If you reorder the cards or remove one with × after merging, the merged result is discarded. Pressing “Download” at that point shows “Please merge the files first.”, so press “Merge” again.
Checking the merged PDF
I checked the downloaded file with Poppler’s pdfinfo and pdftotext.
$ pdfinfo -f 1 -l 4 application-set.pdf
Pages: 4
Page 1 size: 595.276 x 841.89 pts (A4)
Page 2 size: 595.276 x 841.89 pts (A4)
Page 3 size: 595.276 x 841.89 pts (A4)
Page 4 size: 1190.55 x 841.89 pts (A3)
| Page | Source file | Paper |
|---|---|---|
| 1 | Page 1 of 01_application.pdf | A4 portrait |
| 2 | Page 2 of 01_application.pdf | A4 portrait |
| 3 | 03_quote.pdf | A4 portrait |
| 4 | 02_floor-plan.pdf | A3 landscape |
The four pages follow the order of the cards, and the landscape A3 drawing is still landscape A3. The tool does not shrink pages to A4 or rotate them to a common orientation. When you print, depending on the printer settings, only page 4 may come out on different paper or scaled down. If the recipient wants everything on A4, export the drawing at A4 first.
When I extracted the text with pdftotext, words such as “Application form”, “Quote” and “Floor plan (A3 landscape)” on each page came out as they were. The pages are not converted to images and pasted together, so the text in the merged PDF can still be searched and copied, and the quality does not drop.
What merging does not carry over
The tool takes the pages out of each PDF and arranges them in a new PDF. Some information that lives outside the pages does not move to the new file.
Bookmarks (outline)
I gave 01_application.pdf two bookmarks, “Application page 1” and “Application page 2”. Checking the merged file with qpdf --json --json-key=outlines showed that the outline was empty. The page content remains, but you can no longer jump to each page from the bookmarks panel of a PDF viewer. If you are combining a long document with chapters, add the bookmarks again with your viewer’s bookmark feature after merging.
The “Title” in the document properties is not carried over either. The original application form had the title “Application form”, but in the merged file the title was empty, and pdf-lib was recorded as the software that created or converted it.
Form fields
I also tried a PDF with a fillable field. When I merged a PDF whose text field already contained “Taro Yamada” (the stock example name on Japanese forms) with the quote, the typed text remained on the page and pdftotext could read it. The document-wide form definition (AcroForm), however, was not included in the merged file. It may still look filled in, but you cannot count on reopening it in a viewer and editing it as a form field. Finish filling in forms before you merge.
PDFs that cannot be merged
Files with the same name
The tool detects duplicates by file name. After adding 03_quote.pdf, I added another 03_quote.pdf with the same name from a different folder, and no card was added. No error appeared on screen either. If scanning or downloading has left you with several files with the same name, such as scan.pdf or document.pdf, rename them before merging.
Password-protected PDFs
PDF protection comes in two kinds: one asks for a password to open the file, the other lets you open it but forbids editing or changes. I made both with qpdf and tried them.
A PDF that needs a password to open shows “Failed to create thumbnail: file name” as soon as it is added, and no card is added. A PDF that only forbids editing shows a thumbnail, but stops when you press “Merge”.
The tool does not support encrypted PDFs. If you need to combine protected PDFs received from a government office or a business partner, ask the recipient whether you may submit them as separate, still-protected files, or ask the issuer for an unprotected version.
When you need only some pages, or photos as well
Because merging works on whole files, if you want only page 2 of the application form, first extract the page range you need with the PDF Splitter, save it, and use that file for merging. To fix the order or orientation of individual pages after merging, use the Reorder, Rotate and Delete PDF Pages tool covered in “Reorder, rotate and delete PDF pages”.
If what you have is a JPG or PNG image, such as a photo of an ID document or a screenshot, turn it into a PDF with Images to PDF and then merge it with the other documents.
If you email the combined PDF and the receiving server limits the size of a single message, keep in mind that the conversion for sending makes an attachment larger than the original file. I measured how much you can actually send in “With a 10 MB email limit, exactly how many bytes can you attach?”.
Test environment
- PDF Merger (operated in the English UI), Chromium (via Playwright)
- Test PDFs made with Python’s ReportLab 5.0.1. The password-protected PDFs were encrypted with AES-256 using qpdf
- The merged results were checked with Poppler (pdfinfo, pdftotext) and qpdf