Combine PDFs and JPGs into One File

The Annoying Little Job

A printer wants one PDF. You have four scanned pages as JPGs and two existing PDFs. Every online combiner wants an account, uploads your documents to someone else's server, and stamps a watermark on the result.

This is a small Windows utility I wrote for exactly that job: drop everything in one folder, run it, get one combined file. No upload, no account, nothing installed.

A photorealistic shot of a messy desk with several printed documents, a scanner lid open, and a laptop showing a folder of file icons, warm office lighting, realistic photography, no legible text or lettering.

Two Versions, and the Difference Matters

There are two builds and they behave differently after they finish:

  • v1.2 deletes everything in the folder once it has produced the combined file
  • v1 leaves your originals untouched

Start with v1. The delete behaviour in v1.2 is genuinely useful when you are processing a scanner dump you do not care about, and genuinely dangerous when you are not. There is no undo and no recycle bin involved.

Download

How To Use It

  1. Make a folder, name it what you want the output called (for example Rates-Notice).
  2. Put every PDF and image you want combined into that folder.
  3. Put the .exe in the same folder.
  4. Run it.

You get Rates-Notice.pdf in that folder, containing every file in order.

The order is alphabetical, not date order. This is the thing that catches people. doc.pdf, img04646.jpg, img64565.jpg will combine in that sequence, which for most scanner output is fine because the scanner names files sequentially. If your files are named page1, page10, page2 you will get page10 before page2 — rename them with zero padding (page01, page02, page10) before running.

Large images are downscaled during conversion so the output stays a sensible size. If you need print-resolution output, this tool is the wrong choice; keep the originals.

A photorealistic close-up of a laptop screen showing a folder window with a mix of PDF and JPG file icons and a single executable, a hand on the trackpad, daylight from a window, realistic photography, no readable text.

Why a Folder-and-Exe Rather Than an App

Because the job is one step and I did not want an installer, a service, a tray icon or an update prompt. It is a small executable that does one thing on the files next to it.

That shape has a trade-off worth naming: there is no GUI, no preview and no confirmation. You point it at a folder and trust the alphabetical order. For a job you do twice a month that is the right trade. For anything involving originals you cannot recreate, use v1 and keep a copy elsewhere first.

What the Output Actually Contains

The combined file is one PDF with one page per source file, in alphabetical order. Existing PDFs keep their internal page count, so a three-page PDF followed by two JPGs gives a five-page result. Images are converted to a single page each at the downscaled resolution.

Something worth checking before you send it anywhere: whether page size is consistent. A scan at A4 and a photo at 3:2 will both land in the same document but produce pages that look different on screen and print at different scales. If the result is going to a printer, open it once and scroll through; it takes ten seconds and catches the mismatch before a client does.

A photorealistic shot of a printed multi-page document fanned out on a desk beside a laptop, one page showing a scanned table and another a photo, natural window light, realistic photography, no legible text.

When Not To Use It

If the pages need to be reordered, use something with a preview. If the PDFs are signed, combining can invalidate signatures — check before you send a contract. If the source images are photos of documents rather than scans, run them through a decent scanning app first, because a 12-megapixel photo of a page produces a needlessly large PDF even after downscaling.

And if you are on Linux or macOS, do not bother with this at all: pdfunite or qpdf --empty --pages will do the same job in one command, and ImageMagick handles the image-to-PDF side.

# images to pdf, then concatenate everything
magick page1.jpg page2.jpg pages.pdf
qpdf --empty --pages pages.pdf existing.pdf -- combined.pdf

Don't trust the download button. Trust the hash.

If this was useful, More hands-on tech guides at TechGeek. No pressure — read it whenever it's useful.


Luke Keam
Spot a bug or want a custom utility built? I'd love to hear from you. Get in touch
Luke Keam | techgeek.biz