Is the PDF uploaded to be compressed?
No. PDF.js renders in the tab and pdf-lib writes the download in the tab. Disconnect after the page has loaded and both modes still run. The network panel shows the script for this tool, then no request that carries the document.
Which mode should I start with?
If you can drag to select a sentence in the PDF, start with lossless and expect almost no change. If the pages are photographs of paper, choose re-encode and look at the size it reports. The wrong choice on a text file is blocked when the result grows. The wrong choice on a scan is a file that is still huge.
Why was the lossless result the same size?
Because the pages were already stored efficiently and the Info dictionary was tiny. The 12-page scan lost 36 bytes. The 40-page text PDF lost 30. A toast tells you when nothing meaningful was stripped, instead of announcing a 0.0% saving as if it were a result.
What does the quality number mean?
It is the JPEG quality passed to the canvas encoder, from 20 to 100 in steps of 10. The default, 70, is what produced 1,644,152 bytes from the 10,324,119-byte scan. Higher keeps more detail and more bytes. The control is absent in lossless mode so it cannot pretend to affect a path that ignores it.
Will the text still be selectable?
After lossless, yes. After image mode, no. The page says so next to the radio button, because this is the trade that matters more than the percentage. Annotations and a real text layer do not survive being photographed.
Why did nothing download?
The new file was not smaller. Image mode on the 40-page text fixture produced 14,810,686 bytes from 165,897, and the button stopped. You still see both numbers on the card. Lossless mode shows the same refusal when the rewrite does not beat the original, which is the usual case.
Does this resize the page or change the paper size?
No. Image mode renders at scale 2 so the JPEG has enough pixels to look acceptable on a dense screen, then places that JPEG on a page of the original point size. Lossless mode does not render at all. Neither mode crops, rotates, or reflows paragraphs.
Can I compress one page and leave the rest?
Not on this page. Both modes walk the whole document. Cut the pages you care about with the splitter first, then compress that smaller file, if the weight is concentrated in a few sheets.
A password-protected PDF will not open. What now?
This tool does not ask for a password. If you know it, remove it with the unlock tool and compress the clear copy. There is no password search here.
Are fonts and vectors preserved in image mode?
Only as pixels. The font program is not copied, and a vector logo becomes part of the JPEG. Zoom in and you will see compression blocks rather than crisp outlines. Lossless mode keeps the fonts and the vectors exactly, and usually keeps the file size too.
Does compression need a connection?
Only to load this page the first time, including PDF.js when you have not opened it before. The render loop and the file write do not call an API. There is no queue and no account the job is charged against.
Is there a free-tier cap on how many PDFs I can compress?
No cap, and no account to attach one to. The cost is your CPU and your RAM. A twelve-page scan took a bit over two seconds on the measurement laptop and will take longer on a phone, because the work is on the main thread.
Can I open the page already aimed at 100 KB or 200 KB?
Yes. Compress a PDF to 100 KB and compress a PDF to 200 KB load this same tool with that ceiling selected. 1 KB is 1024 bytes. Lossless is attempted before any page is turned into a picture.
What is the largest PDF this will accept?
Nothing in the page checks a maximum. The scan fixture was about 10 MB and finished. A few hundred megabytes has to fit in memory twice, once as the source and once as the rendered bitmaps, and a phone will fail that sooner than a laptop will.