Skip to main content
PPDF123

Change the Page Size of a PDF

Adjust Page Scale sets every page of a PDF to a paper size you choose, such as A4, Letter or Legal, and stretches the content to fill it. Width and height scale independently, so the aspect ratio is not kept.

Drag and drop files here, or click to choose

Accepts PDF · up to 500.0 MB per file · up to 20 files at once

You can also paste a file with Ctrl/Cmd+V, or from the clipboard menu.

Scale Pages sets every page's MediaBox and CropBox to a named paper size and prepends a `cm` transform so content stretches to that box. The form offers A0-A6, Letter and Legal; the API also resolves A7, A8, Half-Letter, Tabloid, Ledger, B4 and B5 and rejects other names.

`scaleFactor` is ignored. Scaling is whatever ratio maps the current box onto the target size, independently in x and y, so aspect ratio is not preserved.

Implementation is lopdf, not a reprint. Password-protected files are unlocked for you on this page once you enter the password; API callers run Unlock first.

If you meant to crop without stretching, use Crop. If you meant a uniform scale factor, this page cannot do that.

The math: for each page the tool reads its current width and height, divides the target width by the current width to get a horizontal factor and the target height by the current height to get a vertical factor, wraps the page content in `q`, a matrix with those two factors, the original content and `Q`, then writes the target size into both boxes. A US Letter page of 612 by 792 points moved to A4 (about 595 by 842 points) is shrunk by roughly 3 percent horizontally and stretched by roughly 6 percent vertically. Moving between two sizes with the same shape, such as A4 to A3, scales both directions by the same factor and looks clean.

Where it looks wrong: converting between different shapes, such as Letter to A4 or portrait to landscape, distorts circles into ovals and makes text slightly taller or wider than designed. Pages whose current size cannot be determined, such as a zero width or height, are skipped. The tool also does not account for page rotation flags or a non-zero page origin, so a page that is rotated or whose box does not start at the origin may come out shifted or cut off.

Decision guide: use this tool when the target size matters more than perfect proportions, for example an uploader that rejects anything other than A4, and the source and target shapes are close. Use Crop to cut a page down without stretching. Use Add Page Numbers or Rearrange Pages when you want to change the pages rather than their size.

Features

  • Rewrites page boxes to A-series, LETTER, or LEGAL
  • Content scaled with `cm`; aspect ratio not kept
  • `scaleFactor` does not work
  • Anonymous API at /api/v1/general/scale-pages
  • Every page gets the same target size
  • Text, vectors and images are not rasterized

When to use this tool

  • Force every page into A4 boxes for a picky uploader
  • Map LETTER scans into A4 for a European portal
  • Accept stretching when the alternative is rejection
  • Bring an A3 drawing down to A4 for printing, where the same shape means a clean uniform reduction
  • Normalize a bundle of mixed-size pages to one size before merging

How do I change the page size of a PDF?

  1. Upload the PDF and check in a viewer what its current page size is, since that decides how much distortion you will see.
  2. Pick the target `pageSize` from the list: A0 to A6, Letter or Legal. The API also accepts A7, A8, Half-Letter, Tabloid, Ledger, B4 and B5.
  3. Click Process. Every page is resized to the chosen size; there is no per-page option.
  4. Open the result and look at a page with a circle, a logo or a table; stretching shows up there first.
  5. If the shape looks wrong, go back to the original and try Crop, a nearer paper size, or print the document to the size you need from your viewer.

Limits and edge cases

  • No uniform scaleFactor
  • Does not preserve aspect ratio
  • Page rotation flags and a non-zero page origin are not accounted for; content is scaled from (0,0)
  • One target size for the whole document
  • Pages with zero or unreadable size are left unchanged
  • Not suitable when exact proportions matter
  • Upload limit on this website: 500 MB per file, sent in chunks above about 95 MB. A single direct API request body is capped at 100 MB.

Examples

  • A LETTER page to A4 is stretched to A4 width and height
  • A4 portrait to A3 portrait grows evenly in both directions and looks like an enlargement
  • A landscape A4 slide to portrait A4 is squeezed horizontally and stretched vertically, so charts look tall and narrow
  • A 12-page Letter report sent to A4 returns 12 pages with the same content, each with 595 by 842 point boxes, approximately
  • An unsupported name such as `A10` in an API call is rejected with an unsupported page size error; use a listed name

Privacy for this tool

Files are uploaded over HTTPS, processed in memory or a short-lived temporary directory on our servers, and deleted when your result is ready. We do not keep copies for later browsing, training, or advertising profiles. See the Privacy Policy for retention details and AdSense cookie disclosures.

Frequently asked questions

Does scaleFactor 2 double the page?
No. The field is ignored. Size comes only from pageSize.
Will a landscape A4 become portrait A4 without distortion?
No. X and Y scale separately to the target width and height.
Is this print-to-PDF at a new paper size?
No. It sets MediaBox and CropBox to the target size and inserts a transform.
Why does my Letter document look slightly tall after converting to A4?
A4 is taller and slightly narrower than Letter, so content is stretched vertically and compressed horizontally. The distortion is a few percent but visible on circles and photos.
Can I keep proportions and add white space instead?
Not here, because the transform is non-uniform. This tool cannot pad a page; use Crop to remove space instead.
Are mixed-size documents all made the same size?
Yes. Each page is mapped to the target size from its own current size, so a mix of portrait and landscape pages all end up with the same box and the landscape ones are distorted more.
Why is my rotated scan cut off or shifted?
Rotation flags and a non-zero page origin are not taken into account, and content is scaled from the origin. Rotate the file with Rotate or normalize it first and try again.
Which sizes are supported?
The form offers A0 to A6, Letter and Legal. Other names are rejected by the API as an unsupported page size unless they are A7, A8, Half-Letter, Tabloid, Ledger, B4 or B5.

Last updated:

Call this from code

Every tool on this site is a plain REST endpoint - no account or API key needed for anonymous use. Built for AI agents and developers as much as for browsers.

curl -X POST "https://pdf123.xyz/api/v1/general/scale-pages" \
  -F "[email protected]" \
  -F "pageSize=A4" \
  -o output.pdf

Also available as an MCP tool for agent clients that speak Model Context Protocol (JSON-RPC 2.0 over POST /mcp). Full API reference

Use it from an AI agent

Skill

Claude Code, Codex, Cursor and other AI agents can run Adjust page-scale for you with this skill: /skills/pdf123-scale-pages.md

All agent skills

Files are used only for this processing job and deleted automatically afterward.