<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: HeavyToolz</title>
    <description>The latest articles on DEV Community by HeavyToolz (@heavytoolz).</description>
    <link>https://dev.to/heavytoolz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261034%2F82251ed5-e668-4dc9-ab44-d1e3d774f475.png</url>
      <title>DEV Community: HeavyToolz</title>
      <link>https://dev.to/heavytoolz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/heavytoolz"/>
    <language>en</language>
    <item>
      <title>I Built a PDF Compressor That Never Uploads Your File — Here's How It Works</title>
      <dc:creator>HeavyToolz</dc:creator>
      <pubDate>Mon, 23 Nov 2026 16:55:45 +0000</pubDate>
      <link>https://dev.to/heavytoolz/i-built-a-pdf-compressor-that-never-uploads-your-file-heres-how-it-works-jo5</link>
      <guid>https://dev.to/heavytoolz/i-built-a-pdf-compressor-that-never-uploads-your-file-heres-how-it-works-jo5</guid>
      <description>&lt;p&gt;Most PDF compressors ask you to upload your file first. That is fine for a random document, but not for a CNIC, a degree, a bank form, or a job application.&lt;br&gt;
I built a compressor that does the whole job in your browser, so the file never leaves your device. You can try it here: &lt;a href="https://heavytoolz.com/tools/compress-pdf" rel="noopener noreferrer"&gt;Compress PDF — HeavyToolz&lt;/a&gt;&lt;br&gt;
The problem I was solving&lt;br&gt;
Forms in Pakistan — and in a lot of other places — often say "PDF must be under 100 KB" or "under 500 KB". A scanned CNIC or degree is usually 2–5 MB.&lt;br&gt;
The usual fix is: upload it to a website, wait, download it back, and hope the site deletes it. I wanted a version where that upload step does not exist at all.&lt;br&gt;
How it works&lt;br&gt;
Instead of asking for a quality setting and hoping, the tool asks for the size you need: 100 KB, 200 KB, 500 KB, 1 MB, 2 MB, or a custom limit.&lt;br&gt;
Then it searches for the sharpest version that fits that limit, measuring the real file each time.&lt;br&gt;
The trade-off is honest, and it matters:&lt;br&gt;
Every page is drawn as a picture and saved again as a JPEG, at a resolution between 150 and 60 DPI.&lt;br&gt;
The pages keep their size and look, but the text becomes part of the picture. It can no longer be selected, copied, or searched, and links, bookmarks, and form fields are lost.&lt;br&gt;
So keep your original, and use the compressed copy only for uploading, emailing, or printing.&lt;br&gt;
That is why it works best for scanned PDFs. A scan is already a set of pictures, so little is lost beyond sharpness.&lt;br&gt;
A few things I learned building it&lt;br&gt;
Fewer pages = sharper result. The limit is shared across all pages. 500 KB across 5 pages gives each page far more room than 500 KB across 50 pages. Split first if you only need a few pages.&lt;br&gt;
Use the largest limit the form allows. The tool picks the sharpest version that fits, so a bigger limit always means a better-looking file.&lt;br&gt;
Don't compress twice. Compressing an already compressed copy blurs it further. Always start from the original.&lt;br&gt;
Check the small print. After downloading, zoom in on stamps, phone numbers, and ID digits before you upload it anywhere.&lt;br&gt;
There is a floor. It never goes below 60 DPI, because text becomes unreadable. If a very small limit can't be met, it gives you the smallest version it can make and tells you by how much it missed.&lt;br&gt;
Why client-side?&lt;br&gt;
No upload means:&lt;br&gt;
No watermark&lt;br&gt;
No sign-up&lt;br&gt;
No daily limit&lt;br&gt;
No waiting for a server, and no trusting a server with a private document&lt;br&gt;
The same idea is behind the rest of &lt;a href="https://heavytoolz.com/" rel="noopener noreferrer"&gt;HeavyToolz&lt;/a&gt; — PDF merge and split, image compression, JSON and Base64 tools, and Pakistan calculators for Marla, FBR salary tax, and CGPA. All of them run in the browser.&lt;br&gt;
If you have ever had a form reject a PDF for being too big, what did you use to fix it? I would like to hear what worked — and what did not.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>pdf</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
