Page size, not file size
People search for "resize PDF" for two different jobs. This page changes the paper size of each page, for example from US Letter to A4. If what you need is a smaller file in megabytes for an email or an upload limit, use Compress PDF instead. A page-size change hardly alters the file size, because the content is reused as it is: nothing is converted to images.
Fit, stretch or actual size
"Fit" scales each page by the same amount across and down so it fills the new page as far as it can without being cut, centred, with the rest left white. This is the right choice for documents. "Stretch" fills the area exactly, so shapes and letters become slightly wider or taller when the proportions differ; it suits backgrounds and forms made to fill the sheet. "Actual size" keeps everything at 100% and only centres it, so a larger page is trimmed at the edges and a smaller one gets a white border. The drawing beside the options shows where page 1 lands and the percentage it is scaled to.
Margins and the add-margins mode
Margins keep content away from the edge of the new page, for printers that cannot print to the edge, for hole punching or for a stamp. Set one value for all sides or four separate ones, in millimetres. With a paper size chosen, the content shrinks to fit inside the margins. With "Add margins", the page grows instead: the content stays at 100% and white space is added around it, which is what you want for a binding edge or for room to write notes. Margins are measured on the page as you see it, even when it is rotated.
Rotated, landscape and mixed pages
Each page is handled on its own. A page shown landscape, whether it was made that way or turned with a rotation flag, gets a landscape sheet when the orientation is "Automatic", so a wide table does not shrink to a strip across a portrait page. Choose portrait or landscape to force one or the other. Files that mix Letter, A4 and odd scanner sizes come out with every page the same size, which is often what an upload portal or a printer wants. A page range lets you change only some pages and leave the rest exactly as they were.
Text, links and comments stay
The tool does not redraw the page. It changes the page box and places the existing content with one transformation, so text stays real text that can be selected, searched and read by screen readers, vector drawings stay sharp, and links and comments move with the content they belong to. We check every change with Poppler: pdfinfo must show the new size and pdftotext must still read the words, including Arabic.
Limits and privacy
Password-protected PDFs need Unlock PDF first. Files up to 200 MB are accepted; a 200-page file usually takes about a second. Bookmarks that point to an exact spot on a page may land slightly off after scaling. Everything runs in your browser with pdf-lib, so the PDF never leaves your device. To cut away margins rather than add them, use Crop PDF.