Resize PDFs
Normalises every page of a set of PDFs to one paper size (A4, Letter, Legal or A3), scaling each page's content to fit and centring it.
Resize PDFs changes the page size of every page that is not already the chosen size. The existing content is scaled down to fit and centred on the new page; it is not turned into an image, so text stays searchable and selectable. Links, comments and other annotations are moved and scaled with the content so they still sit on what they mark. Resized copies go to the run's files folder in the same folder structure; the originals are not changed.
Landscape pages become landscape pages of the new size unless you force portrait. A page's rotation is kept. Pages already within 1 point of the target size are not touched, and a PDF where no page needs resizing is copied byte for byte. Anything that was cropped out of view on the original page stays hidden.
Use it when
- A court book, brief or production must be on A4 paper and the documents are a mix of Letter, Legal, A3 and odd sizes.
- Documents from the United States need to print properly on A4, or the reverse.
- Scanned pages of slightly different sizes should be made consistent before Bates stamping.
How to run it
- Choose the folder of PDFs as Input and an Output folder outside it. Only
.pdffiles are processed. - Choose the size.
- Turn on force-portrait only if every page must be portrait.
- Turn on upscale only if small pages should be enlarged to fill the page.
- Click Run and read the notes.
- Click Open report and check PagesResized and PagesUnchanged for each file.
Settings
Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help resize-pdfs lists them.
Settings
| Setting | What it does | Type and default |
|---|---|---|
Size--size |
Page size every page is normalised to. A4 is 210 × 297 mm, Letter 8.5 × 11 in, Legal 8.5 × 14 in and A3 297 × 420 mm. |
choice: A4, Letter, Legal, A3A4 |
Force portrait--force-portrait |
Make every page portrait. Off (default): landscape pages stay landscape at the new size. A landscape page is then shrunk to fit across a portrait page, so its content becomes noticeably smaller. Leave it off for spreadsheets and plans. |
yes/nofalse |
Upscale--upscale |
Enlarge pages smaller than the target size to fill it. Off (default): small pages keep their size, centred on the new page. Off (default): pages smaller than the target, such as receipts or small scans, keep their size and are centred on the new page. On: they are enlarged to fill it. Large pages are always reduced to fit. |
yes/nofalse |
Common settings
| Setting | What it does | Type and default |
|---|---|---|
Input required--input |
Folder (or single file) to read. It is opened read-only and never modified. | folder empty |
Output required--output |
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. | folder empty |
Recurse--recurse |
Include sub-folders. | yes/notrue |
Extensions--extensions |
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set. | list empty |
Parallelism--parallelism |
Files processed at once. Use 1-2 for spinning disks or network shares. | number4 |
What you get
Each run creates its own folder inside the output folder, with the report resize-pdfs.csv, errors.csv and manifest.json (see Run folders and manifests).
files\…: The resized copies, with the same names and folder structure as the input.resize-pdfs.csv: One row per PDF: Status (Resized, or Already the right size), Pages, PagesResized, PagesUnchanged, Destination, MD5 and SourcePath.errors.csv: PDFs that could not be opened or resized, with the reason.
Report columns
RelativePathFileNameStatusPagesPagesResizedPagesUnchangedDestinationMD5SourcePath
Check the result
- Check
errors.csvfor PDFs that could not be processed. - Open a resized copy and look at pages that were much larger than the target, such as A3 or plans: reduced text may be small to read.
- Click a few bookmarks and links in a resized copy.
- Resize before Bates stamping, so the stamp is placed relative to the final page size.
- Content is only ever scaled evenly, never stretched, so the proportions of each page are kept. A page of a different shape from the target has blank margins on two sides.
- Bookmarks and links that jump to an exact spot on a resized page still open the right page, but may scroll to a slightly different position.
- Resizing does not change the resolution of scanned images; enlarging a small scan with upscale makes it bigger, not sharper.
From the command line
The command line is part of LitTechKit Pro. See Command line.
ltk run resize-pdfs --input "D:\Matter\Court Book\Documents" --output "D:\Matter\Court Book\A4" --size A4
Related tools
- Bates Stamp: Stamps sequential Bates numbers and an optional legend (e.g. CONFIDENTIAL) on every PDF page, correctly placed on rotated and cropped pages, writing stamped copies with a Beg/End Bates report.
- Court Book: Builds a court book from PDFs and an optional Excel/CSV index: a hyperlinked index, consecutive page numbers on every page, and bookmarks for each section and document. Every link and page number is checked.
- Combine PDFs: Combines PDFs into one: all of them, one per folder (e.g. an email with its attachments), or one per family by name. Each document is bookmarked, with its own bookmarks kept beneath.
- Split PDFs: Splits PDFs into parts no larger than a file size (for court upload limits) or of a set number of pages, named name_001.pdf… or by Bates number. Bookmarks are kept in the part they point to.