DEV Community

Muhammad Wasim
Muhammad Wasim

Posted on Edited on

Why Your PDF Barely Shrinks — and How to Get It Under a Portal Limit Anyway

A friend in Lahore sent me a 14 MB “scanned transcript” that a university portal would not accept. The same week, a one-page offer letter barely moved when we compressed it. Both files were PDFs. Only one of them had any fat to cut.

That is the thing most “just compress it” advice skips: a PDF is a container, and the method that works depends on what is inside it.

What actually makes a PDF large

Text, fonts and vector drawings take relatively little space. The usual weight comes from:

  • Full-page scans and photos. A phone picture of a certificate, stored at full resolution, can be several megabytes on its own.
  • Leftover structure. Unused objects, page thumbnails, XMP metadata and editor-only data can stay in the file after you have finished editing it.
  • Fonts. Embedded typefaces keep the look consistent, but they are rarely why a file is 10 MB.

A CV exported from Word should already be small. A five-page phone scan of a transcript is a different job.

Pick the level that matches the file

The Compress PDF tool on ToolSphare exposes three levels:

  • Low is lossless. It cleans up the file structure and leaves images untouched. Use this for text documents — invoices, contracts, a typed resume — where you do not want a single pixel changed.
  • Recommended is the balance for most mixed files. Large photos and scans are re-encoded at good quality, with a maximum of 2000 px, according to the tool page.
  • Extreme is for strict upload caps when the file is mostly scans or photos. Images are pushed further, with a maximum of 1240 px.

Start with Recommended. If the result is still over the limit, go back to the original and run Extreme. Do not compress a compressed copy again: each lossy pass throws away more detail. The result panel shows the original size, the new size and the percentage saved.

How the in-browser pass works

On the tool page, compression is described as three local passes:

  1. The file is read in your browser. On Recommended or Extreme, large embedded images are re-encoded at a lower resolution and quality.
  2. Unreferenced objects are removed, along with XMP metadata, page thumbnails and editor-only data.
  3. The result is saved using compressed object streams.

Fonts, text and vector drawings are left alone, so searchable text should stay searchable, and links, bookmarks and form fields are kept. A lean text PDF may barely shrink because there is nothing left to strip.

The same page is explicit about privacy: the work runs in your browser with JavaScript, and the file is not sent to ToolSphare’s servers. Still, keep the original in a folder you control, and be cautious with highly sensitive documents.

How to use it

  1. Open the Compress PDF workspace and drop in the PDF, or click browse files.
  2. Choose Recommended, unless you already know you need lossless (Low) or the smallest possible scan (Extreme).
  3. Click Compress PDF.
  4. Compare original and compressed sizes in the result panel.
  5. Click Download compressed PDF. Open the new file and check it before you upload.

A practical example: one transcript, two limits

Say you have a 9 MB colour scan of a two-page transcript, an email that struggles with large attachments, and a portal that caps each file at 2 MB. (The tool page itself uses 2 MB and 5 MB as example limits; always read the form in front of you.)

Run the original on Recommended first. Open the result, zoom in, and check the university name, seat number, stamps and signature. If it is already small enough and still sharp, stop. If the portal still rejects it, run the original again on Extreme and repeat the check. If Extreme cannot get you under the cap without wrecking a stamp, split the pages or ask whether two files are allowed.

If the file is password-protected, the compressor cannot optimize the encrypted contents. Open it in a viewer with the password, save an unprotected copy, compress that copy, and put the password back on afterwards if the recipient needs it.

Check the output, not just the size

A smaller file is useless if it cannot be read. Before you submit, zoom in on the text, check stamps and signatures, confirm the page count, and try a link or form field if the original had them. Rename the file if the portal is picky about spaces. Keep the original: the next form may want a different size, and you do not want to start from a smeared Extreme copy.

FAQ

Why did the file size barely change?
If the PDF was already exported with strong compression, there is little left to remove. The tool keeps your original rather than handing you a copy that is not smaller. For scans, try Extreme on the original. For a text CV that is already 400 KB, you may already be done.

Will compression make the text fuzzy?
Not if the text is real text. The tool page states that text, fonts and vector illustrations are never re-encoded, so they stay crisp and searchable. Only embedded photos and scans are recompressed on Recommended and Extreme.

Is there a page or watermark limit?
The page says the compressor is free, with no document limits, no watermark and no subscription. If a run fails, the usual causes are an encrypted file or a document that is already as small as it can safely go.

Disclosure: I build ToolSphare, the free tools site that hosts the compressor described above.

About the Developer

Muhammad Wasim is a Software Engineer and the founder of ToolSphare. He designs and maintains ToolSphare, which has 718 live tools across 28 categories, free coding courses and a browser code editor. Everyday use needs no forced sign-up.

What he builds for ToolSphare:

  • Free online tools for PDF, image, text and utility workflows
  • Developer tools such as JWT, QR, color, favicon and coding helpers
  • Free coding courses with structured lessons
  • An online code editor for Python, C++, C#, Java and HTML/CSS/JavaScript

ToolSphare is a Laravel app built with crawlable HTML, canonical URLs, structured data, XML sitemaps and IndexNow-ready discovery.

Top comments (0)