<?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: Anindya</title>
    <description>The latest articles on DEV Community by Anindya (@anindya_5d07fc245c6be78d3).</description>
    <link>https://dev.to/anindya_5d07fc245c6be78d3</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%2F4268854%2F184d7215-d4f5-4d29-a3b6-9f7d0be993ad.png</url>
      <title>DEV Community: Anindya</title>
      <link>https://dev.to/anindya_5d07fc245c6be78d3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anindya_5d07fc245c6be78d3"/>
    <language>en</language>
    <item>
      <title>How I Built 56 Client-Side PDF Tools in WebAssembly with $0 Server Costs</title>
      <dc:creator>Anindya</dc:creator>
      <pubDate>Fri, 27 Nov 2026 12:05:32 +0000</pubDate>
      <link>https://dev.to/anindya_5d07fc245c6be78d3/how-i-built-56-client-side-pdf-tools-in-webassembly-with-0-server-costs-3jm2</link>
      <guid>https://dev.to/anindya_5d07fc245c6be78d3/how-i-built-56-client-side-pdf-tools-in-webassembly-with-0-server-costs-3jm2</guid>
      <description>&lt;p&gt;Most online PDF tools follow the same architecture: you upload a 10 MB contract or bank statement to their S3 bucket, a backend server processes it, and you hope they actually delete it after two hours.&lt;/p&gt;

&lt;p&gt;I wanted to flip that model completely with &lt;strong&gt;&lt;a href="https://everydaypdf.me" rel="noopener noreferrer"&gt;EverydayPDF&lt;/a&gt;&lt;/strong&gt;—a suite of &lt;strong&gt;56 PDF tools&lt;/strong&gt; that runs &lt;strong&gt;100% inside the user's browser RAM&lt;/strong&gt; with &lt;code&gt;$0/mo&lt;/code&gt; in backend compute.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Client-Side Wasm Stack
&lt;/h2&gt;

&lt;p&gt;Instead of spinning up Python/LibreOffice containers, EverydayPDF orchestrates specialized browser libraries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;pdf-lib&lt;/code&gt;&lt;/strong&gt; for structural editing, merging, splitting, page-number stamping, booklet imposition, and metadata sanitization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;pdfjs-dist&lt;/code&gt; (Web Workers)&lt;/strong&gt; for high-DPI canvas rendering, visual diffing, and text extraction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;tesseract.js&lt;/code&gt; (WebAssembly)&lt;/strong&gt; for multi-language OCR with IndexedDB model caching.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom Canvas Pipelines&lt;/strong&gt; for photocopy shadow removal, grayscale luminance weighting (ITU-R BT.601), and exact-KB portal compression (&lt;code&gt;&amp;lt;200KB&lt;/code&gt;, &lt;code&gt;&amp;lt;100KB&lt;/code&gt;, &lt;code&gt;&amp;lt;50KB&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Three Lessons from Auditing All 56 Tools Live
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Watch out for &lt;code&gt;ArrayBuffer&lt;/code&gt; detachment:&lt;/strong&gt; Passing a raw &lt;code&gt;ArrayBuffer&lt;/code&gt; to a &lt;code&gt;pdf.js&lt;/code&gt; Web Worker transfers ownership and detaches it in the main thread. Always &lt;code&gt;.slice(0)&lt;/code&gt; before passing buffers to preview/thumbnail workers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never inflate a vector PDF during compression:&lt;/strong&gt; Naive canvas-based compressors turn a 2.5 KB vector PDF into a 70 KB JPEG-embedded PDF. Always compare &lt;code&gt;compressedBytes.length&lt;/code&gt; against &lt;code&gt;originalSize&lt;/code&gt; and fall back to lossless object-stream optimization when smaller.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;True PII Redaction requires flattening:&lt;/strong&gt; Drawing black rectangles over PDF text isn't redaction—the underlying text stream is still copyable. Real client-side redaction must burn boxes onto rendered page bitmaps so zero underlying text survives.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Try any of the 56 tools (and verify the zero-upload guarantee in your Network tab) at &lt;strong&gt;&lt;a href="https://everydaypdf.me" rel="noopener noreferrer"&gt;everydaypdf.me&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>webassembly</category>
      <category>nextjs</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
