Combine PDF pages into one page by placing two or four source pages onto each output sheet through a local N-up tool, where the first page of the source PDF defines the output sheet box and every embedded page keeps its aspect ratio without stretching. The browser loads the PDF, embeds each page using the pdf-lib page-embedding API (page embedding API), computes a 2×1 or 2×2 grid on the first-page box, scales each source page by the smaller of the available width fit and the available height fit factor, centers the result inside its cell, and writes a downloadable PDF without sending the file to any server. Reading order is preserved left to right and then top to bottom, mixed page sizes are supported because the fit calculation runs separately for every page, and when the source page count does not fill the final sheet, the remaining cells stay empty. Empty, mislabeled, encrypted, damaged, oversized, or over-limit documents surface a visible error rather than being silently rewritten or rasterized into screenshots.

combine pdf pages into one page
combine pdf pages into one page

Merging Files vs N-Up: Two Different Tasks

The phrase "combine PDF pages into one page" hides two distinct jobs that often show up in the same search results. The first job is merging several PDF files into one document — combine files, keep one page per sheet, and you will generally want a Merge PDF workflow that joins files in a chosen order. The second job, which this article covers, is taking the pages of a single PDF and pressing several of them onto one physical sheet — keep the pages you already have, group them onto output sheets in pairs or in fours, and let each output sheet box be defined by the first source page.

If your goal is a review sheet, a printed handout, or a compact archive where each output sheet is a self-contained packet, N-up is the right operation. If your goal is to consolidate several separate reports into one downloadable file so they can sit side by side, you are merging files, not N-up-ing them. The two tools solve different problems, so picking the right one up front saves you from redoing the layout later.

Building an N-Up PDF in Your Browser

The PDF N-Up: Multiple Pages Per Sheet tool runs locally, so the steps below assume the source PDF stays on your device the entire time. The control stays disabled while the operation is running to avoid duplicate work, and each new file or arrangement invalidates the previous result so a slower earlier read cannot overwrite a newer selection.

  1. Choose a non-empty PDF that is no larger than 25 MiB.
  2. Select two source pages per sheet (2-up, 2×1) or four source pages per sheet (4-up, 2×2).
  3. Select Create N-up PDF, check the source-to-sheet count that the tool reports, and download the new PDF.

For a deeper walk-through that pairs the same tool with print-handout framing, the print multiple PDF pages on one sheet guide covers the practical reasons readers choose 2-up over 4-up for paper handouts, classroom packets, and meeting agendas.

How the Output Sheet Is Sized and Margined

Every output sheet uses the width and height of the first source PDF page as its bounding box. That choice is explicit: the tool does not switch to a hidden paper-size preset such as A4 or US Letter, so if the first source page is 612 × 792 points the output sheet is 612 × 792 points, and if it is a smaller 300 × 400 point box the output sheet is the same. The first source page also seeds the cell grid, which keeps the layout predictable when the source PDF mixes portrait and landscape pages.

Within that box, each sheet reserves an 18-point outer margin and a 12-point gap between cells. Two-up uses two columns and one row, and four-up uses two columns and two rows. The table below summarizes the grid values the tool applies deterministically so you can reason about output sheet count before you click Create.

Feature2-up (two pages per sheet)4-up (four pages per sheet)
Grid layout2 columns × 1 row2 columns × 2 rows
Outer margin per sheet18 points18 points
Gap between cells12 points12 points
Source pages per output sheet24
Output sheet bounding boxWidth × height of first source pageWidth × height of first source page
Per-cell scaling ruleSmaller of width-fit and height-fit, then centeredSmaller of width-fit and height-fit, then centered

How Source Pages Are Scaled and Centered

Each embedded page is scaled by the smaller of two fit factors: the available cell width divided by the source page width, and the available cell height divided by the source page height. Using the smaller factor guarantees the embedded page fits inside its cell in both directions without ever being stretched to fill the cell. The result is centered horizontally and vertically inside its cell, so a tall source page in a 2-up layout keeps its aspect ratio with white space at the sides, while a wide source page can leave space above and below.

The fit calculation runs per page, not per document. A mixed source PDF that combines Letter pages with smaller receipts, sticky notes, or scanned forms still works because every page is evaluated against its own dimensions. Embedding is done by the PDFPage.drawPage method, which generally preserves vector shapes and selectable text as PDF content rather than rasterizing pages into image-based snapshots. That difference matters for compact archives and searchable handouts, where the vector content and the underlying text layer remain available in the output.

Reading Order, Mixed Sizes, and Partial Final Sheets

Pages flow left to right and then top to bottom, so a 4-up document reads the same way as a normal paginated PDF — top-left cell first, then top-right, then the second row, and so on. That matches the convention of a printed book or a slide handout, which keeps the layout familiar for review work.

Worked example for a 10-page source in 4-up mode: 10 divided by 4 = 2 remainder 2. The output sheet count is the ceiling of the source page count divided by the pages per sheet, that is the ceiling of 10 ÷ 4 = 3 output sheets. The first two sheets are full (four cells each, eight pages), and the third sheet carries the remaining two pages in its top-left and top-right cells, with the two bottom cells left empty. The same rule applied to 5 pages in 4-up mode gives the ceiling of 5 ÷ 4 = 2 output sheets — one full sheet and one sheet with a single page in the first cell. The contract documents that final-cell arrangement explicitly as a worked example.

Because each cell fits its own source page independently, mixing tall, wide, and unusual page sizes in the same PDF does not break the layout. Tall pages keep their aspect ratio with bands of white space on the sides of their cell, while wide pages keep their aspect ratio with bands of white space above and below — neither is ever cropped, rotated, or zoomed out of proportion.

Local Processing, File Limits, and Filename

The entire operation — loading, embedding, layout, serialization, and download — runs locally in the browser. The source PDF is not uploaded, and the original file is not altered. Input is bounded for predictable browser work: the source PDF is limited to 25 MiB and 500 pages, and documents outside that range surface a visible error rather than being silently rewritten.

The filename the download receives appends the chosen arrangement as a suffix, so report.pdf becomes report-2-up.pdf or report-4-up.pdf. Saving only happens after every selected source page has been embedded and positioned, so you never get a half-finished file. The tool is intentionally narrow in scope: it does not impose booklet signature order, add crop marks, rotate pages automatically, reorder source pages, flatten forms, remove annotations, or alter the original file. It also does not rasterize ordinary PDF pages into screenshots, which is why the resulting output stays compact and the underlying text layer remains selectable in most readers.