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.

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

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

How do I change the page size of a PDF?

  1. Upload a PDF.
  2. Choose A4, LETTER, or another supported size.
  3. Click Process. scaleFactor is unused.
  4. Open the PDF and check whether pages look stretched.

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)
  • 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

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.

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.