<?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: Swayam Agrawal</title>
    <description>The latest articles on DEV Community by Swayam Agrawal (@swayam_agrawal).</description>
    <link>https://dev.to/swayam_agrawal</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%2F3909289%2Fe301178c-f1a1-4aa8-9635-23518d883880.png</url>
      <title>DEV Community: Swayam Agrawal</title>
      <link>https://dev.to/swayam_agrawal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/swayam_agrawal"/>
    <language>en</language>
    <item>
      <title>How I Built 24+ Free PDF Tools Using Next.js and pdf-lib</title>
      <dc:creator>Swayam Agrawal</dc:creator>
      <pubDate>Sat, 02 May 2026 16:19:17 +0000</pubDate>
      <link>https://dev.to/swayam_agrawal/how-i-built-24-free-pdf-tools-using-nextjs-and-pdf-lib-54h</link>
      <guid>https://dev.to/swayam_agrawal/how-i-built-24-free-pdf-tools-using-nextjs-and-pdf-lib-54h</guid>
      <description>&lt;p&gt;I spent the last few months building &lt;strong&gt;AuraPDF&lt;/strong&gt; — a completely free online PDF tool suite with 24+ tools. No signup, no watermarks, no hidden fees.&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;Live:&lt;/strong&gt; &lt;a href="https://aurapdf.com" rel="noopener noreferrer"&gt;aurapdf.com&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I Built This
&lt;/h2&gt;

&lt;p&gt;Every time I needed to merge or compress a PDF, I'd land on sites that either:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Required signup for basic features&lt;/li&gt;
&lt;li&gt;Added watermarks to free users&lt;/li&gt;
&lt;li&gt;Had sketchy privacy practices (uploading files to unknown servers)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I built my own. All processing happens &lt;strong&gt;client-side&lt;/strong&gt; using JavaScript — your files never leave your browser for most tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Next.js 15 (App Router) + TypeScript&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PDF Processing:&lt;/strong&gt; pdf-lib (server-side), pdfjs-dist (client-side rendering)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Styling:&lt;/strong&gt; Custom CSS design system with dark mode&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auth:&lt;/strong&gt; Clerk (optional, not required to use tools)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment:&lt;/strong&gt; Vercel&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Node.js API routes for heavy operations (compress, convert)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tools Available
&lt;/h2&gt;

&lt;h3&gt;
  
  
  📁 Organize
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Merge PDF — combine multiple files&lt;/li&gt;
&lt;li&gt;Split PDF — separate into parts&lt;/li&gt;
&lt;li&gt;Rotate, Delete, Extract, Reorder pages&lt;/li&gt;
&lt;li&gt;Add page numbers&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🔄 Convert
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;JPG/PNG/HEIC → PDF&lt;/li&gt;
&lt;li&gt;PDF → Word/Excel/JPG/PNG&lt;/li&gt;
&lt;li&gt;URL → PDF (headless Chrome)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🔒 Security
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Password protect (AES-256)&lt;/li&gt;
&lt;li&gt;Unlock PDF&lt;/li&gt;
&lt;li&gt;Add watermark&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ⚡ Optimize
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Compress PDF (up to 90% reduction)&lt;/li&gt;
&lt;li&gt;Crop PDF&lt;/li&gt;
&lt;li&gt;PDF Health Checker&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Biggest Technical Challenges
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Client-Side PDF Rendering on Mobile
&lt;/h3&gt;

&lt;p&gt;PDF.js + canvas on mobile browsers was a nightmare. Mobile Safari has strict canvas memory limits. I had to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Implement a &lt;strong&gt;render queue&lt;/strong&gt; (one thumbnail at a time)&lt;/li&gt;
&lt;li&gt;Cap canvas dimensions to prevent crashes&lt;/li&gt;
&lt;li&gt;Add auto-retry with breathing pauses between renders&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Drag &amp;amp; Drop on Touch Devices
&lt;/h3&gt;

&lt;p&gt;Used dnd-kit with custom &lt;code&gt;TouchSensor&lt;/code&gt; — needed 1.5s long-press delay so users could scroll without accidentally triggering drag.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. SEO for 120+ Pages
&lt;/h3&gt;

&lt;p&gt;Built a programmatic SEO system generating tool pages, compression target pages, how-to guides, and multilingual content — all from TypeScript data files.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Client-side PDF processing is surprisingly powerful&lt;/strong&gt; — pdf-lib can do most things without a server&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile is a completely different beast&lt;/strong&gt; — test on real devices, not just Chrome DevTools&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SEO takes months&lt;/strong&gt; — even with perfect technical SEO, new domains need time to build trust&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try It Out
&lt;/h2&gt;

&lt;p&gt;👉 &lt;a href="https://aurapdf.com" rel="noopener noreferrer"&gt;https://aurapdf.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback from the dev community. What features would you want in a PDF tool? Drop a comment! 🙌&lt;/p&gt;

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