<?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: Himanshu Sharma</title>
    <description>The latest articles on DEV Community by Himanshu Sharma (@himanshu_sharma_8ae32731f).</description>
    <link>https://dev.to/himanshu_sharma_8ae32731f</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3764006%2Fed192130-fd08-4a67-ae71-1d0b502ff6f3.png</url>
      <title>DEV Community: Himanshu Sharma</title>
      <link>https://dev.to/himanshu_sharma_8ae32731f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/himanshu_sharma_8ae32731f"/>
    <language>en</language>
    <item>
      <title>Compressing PDFs to 200KB using a simple client-side approach</title>
      <dc:creator>Himanshu Sharma</dc:creator>
      <pubDate>Tue, 10 Feb 2026 10:24:23 +0000</pubDate>
      <link>https://dev.to/himanshu_sharma_8ae32731f/compressing-pdfs-to-200kb-using-a-simple-client-side-approach-2e7g</link>
      <guid>https://dev.to/himanshu_sharma_8ae32731f/compressing-pdfs-to-200kb-using-a-simple-client-side-approach-2e7g</guid>
      <description>&lt;p&gt;&lt;strong&gt;PDF size&lt;/strong&gt; limits are still annoying.&lt;/p&gt;

&lt;p&gt;I’ve run into this problem many times while filling online forms or uploading&lt;br&gt;
documents. A lot of websites still ask for PDFs under very specific limits,&lt;br&gt;
like 200KB or 1MB, which sounds small until you actually try uploading a file.&lt;/p&gt;

&lt;p&gt;While working on a small React project, I decided to experiment with a&lt;br&gt;
client-side PDF compression tool to see how much can realistically be done&lt;br&gt;
inside the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this tool is about
&lt;/h2&gt;

&lt;p&gt;This is not meant to be a replacement for full-featured PDF editors.&lt;br&gt;
It’s more of a lightweight solution for common cases.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F61mx8ihu1eudsu0z4zjo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F61mx8ihu1eudsu0z4zjo.png" alt=" " width="800" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The tool focuses on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Running fully in the browser&lt;/li&gt;
&lt;li&gt;No server uploads&lt;/li&gt;
&lt;li&gt;Simple file selection&lt;/li&gt;
&lt;li&gt;Handling strict size limits like 200KB&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I tried client-side compression
&lt;/h2&gt;

&lt;p&gt;The main reason was privacy.&lt;/p&gt;

&lt;p&gt;For many documents, uploading files to a server just to resize them feels&lt;br&gt;
unnecessary. Doing everything locally keeps things simple and avoids storing&lt;br&gt;
files anywhere.&lt;/p&gt;

&lt;p&gt;It’s also surprisingly fast for smaller PDFs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Live version
&lt;/h2&gt;

&lt;p&gt;I’ve put a working version online so it’s easier to understand how it behaves&lt;br&gt;
in real use:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://compresspdfto200kb.online&amp;lt;br&amp;gt;%0A![%20](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tomswmmccra5fpidsgcg.png)&amp;lt;br&amp;gt;%0A![%20](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vvl5alyxaas1hy2lp6sm.png)" rel="noopener noreferrer"&gt;Compress Now !&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  When this works well
&lt;/h2&gt;

&lt;p&gt;From my testing, this approach works best for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Form submissions with strict limits&lt;/li&gt;
&lt;li&gt;Quick document uploads&lt;/li&gt;
&lt;li&gt;Mobile users&lt;/li&gt;
&lt;li&gt;Situations where privacy matters more than perfect quality&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final notes
&lt;/h2&gt;

&lt;p&gt;Browser-based tools are getting better every year.&lt;br&gt;
For basic use cases, client-side PDF handling is actually quite practical.&lt;/p&gt;

&lt;p&gt;If you’re building React apps or experimenting with browser APIs, this kind of&lt;br&gt;
tool is worth exploring.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>pdf</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
