<?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: Benedict</title>
    <description>The latest articles on DEV Community by Benedict (@muindebenedict).</description>
    <link>https://dev.to/muindebenedict</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%2F3973764%2Fd57351c1-5a3b-485a-b926-2afe0e24fc0c.jpg</url>
      <title>DEV Community: Benedict</title>
      <link>https://dev.to/muindebenedict</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muindebenedict"/>
    <language>en</language>
    <item>
      <title>How I built a privacy-first PDF toolkit with React on Vite and Flask</title>
      <dc:creator>Benedict</dc:creator>
      <pubDate>Mon, 08 Jun 2026 09:02:01 +0000</pubDate>
      <link>https://dev.to/muindebenedict/how-i-built-a-privacy-first-pdf-toolkit-with-nextjs-and-flask-f9f</link>
      <guid>https://dev.to/muindebenedict/how-i-built-a-privacy-first-pdf-toolkit-with-nextjs-and-flask-f9f</guid>
      <description>&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%2Ffjxn0wvsr6ooxrpguv96.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%2Ffjxn0wvsr6ooxrpguv96.png" alt=" " width="800" height="380"&gt;&lt;/a&gt;&lt;br&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%2Fwxie53xm6m2kpxv198cf.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%2Fwxie53xm6m2kpxv198cf.png" alt=" " width="800" height="380"&gt;&lt;/a&gt;&lt;br&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%2F6h6so9eewibejqmble8j.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%2F6h6so9eewibejqmble8j.png" alt=" " width="799" height="379"&gt;&lt;/a&gt;I got tired of PDF tools that upload your files to servers you know nothing about. So I built FoldPDF.&lt;br&gt;
The idea was simple — most PDF operations don't need a server at all. Merging, splitting, rotating, adding watermarks, signing, protecting — all of this can happen directly in the browser using JavaScript libraries. Your file never has to leave your device.&lt;br&gt;
The tech stack&lt;br&gt;
Frontend: Next.js hosted on Vercel. Most tools use pdf-lib and pdf.js running client-side in the browser.&lt;br&gt;
Backend: Python Flask hosted on Render. Only four tools actually hit the server — Compress PDF, PDF to Word, PDF to PowerPoint, and PowerPoint to PDF. These need server processing to deliver quality results that client-side libraries can't match.&lt;br&gt;
For compression I use Ghostscript with three presets — screen, ebook, and printer — which map to ultra, smart, and quality compression levels in the UI.&lt;br&gt;
For PDF to Word and PDF to PowerPoint I use Adobe PDF Services API. I tried pdf2docx and LibreOffice first but the output quality wasn't good enough. Adobe's API preserves fonts, spacing, and document structure properly.&lt;br&gt;
For PowerPoint to PDF I use LibreOffice on the server. It works well but takes 30-60 seconds on the free Render tier — something I'm actively working on improving.&lt;br&gt;
The privacy approach&lt;br&gt;
Files sent to the server are deleted immediately after download. Nothing is stored, nothing is logged. For the four server-side tools I added a clear notice on each tool page so users know exactly what's happening to their file.&lt;br&gt;
Everything else — merge, split, rotate, watermark, sign, protect, unlock, repair, OCR, image conversions — runs entirely in the browser.&lt;br&gt;
What I learned&lt;br&gt;
Client-side PDF processing is genuinely powerful but has real limits. pdf-lib is excellent for manipulation but struggles with complex documents. For anything involving document structure preservation, a proper server-side tool wins every time.&lt;br&gt;
Free hosting tiers are tricky for CPU-heavy tasks. LibreOffice cold starts on Render's free tier are slow. UptimeRobot keeps the server alive but doesn't pre-warm LibreOffice itself.&lt;br&gt;
Reddit and Hacker News block new accounts from posting — learned that the hard way today.&lt;br&gt;
Try it&lt;br&gt;
foldpdf.online — 30+ tools, no account needed, completely free.&lt;br&gt;
Would genuinely love feedback from this community — what's broken, what's missing, what could be better.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
