<?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: Jose Dario</title>
    <description>The latest articles on DEV Community by Jose Dario (@lodcraftgames).</description>
    <link>https://dev.to/lodcraftgames</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%2F4243066%2F496a7843-c453-46ab-b259-5dd7d0601587.png</url>
      <title>DEV Community: Jose Dario</title>
      <link>https://dev.to/lodcraftgames</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lodcraftgames"/>
    <language>en</language>
    <item>
      <title>I built a PDF toolkit that never uploads your files</title>
      <dc:creator>Jose Dario</dc:creator>
      <pubDate>Fri, 13 Nov 2026 14:10:13 +0000</pubDate>
      <link>https://dev.to/lodcraftgames/i-built-a-pdf-toolkit-that-never-uploads-your-files-l0a</link>
      <guid>https://dev.to/lodcraftgames/i-built-a-pdf-toolkit-that-never-uploads-your-files-l0a</guid>
      <description>&lt;p&gt;Every "free" PDF converter I tried asked me to upload the file first. For a bank statement or a signed contract, that is the whole problem: you are handing a document to a server you know nothing about, and hoping it gets deleted.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://convup.lodcrafttools.workers.dev/" rel="noopener noreferrer"&gt;ConvUp&lt;/a&gt;, a converter that runs entirely in the browser. No upload endpoint, no account, no watermark.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is actually possible in a browser today
&lt;/h2&gt;

&lt;p&gt;More than I expected. The stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;pdf-lib&lt;/strong&gt; — create, merge, split, rotate, number pages, draw text, embed images.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;pdf.js&lt;/strong&gt; — render pages to canvas for JPG export and for OCR input.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tesseract.js&lt;/strong&gt; — OCR in a Web Worker, with the language model cached after first use.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;JSZip&lt;/strong&gt; — build &lt;code&gt;.docx&lt;/code&gt; and &lt;code&gt;.zip&lt;/code&gt; files client-side.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web Audio + a Worker&lt;/strong&gt; — decode and re-encode audio to MP3/WAV.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The only network requests are the app's own static files and, for OCR, the Tesseract language model from a public CDN. Your document never appears in any request. That is verifiable: open DevTools, go to Network, convert a file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rotating a PDF is one attribute, not a re-render
&lt;/h2&gt;

&lt;p&gt;The first tool I wrote was "rotate pages". It is four lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;PDFDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getPages&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getRotation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;angle&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setRotation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;degrees&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;current&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;90&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;360&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No pixels are touched. A PDF page carries a rotation attribute that the viewer applies when drawing; changing it fixes a sideways scan without recompressing anything, so text stays selectable and images keep their resolution.&lt;/p&gt;

&lt;p&gt;That distinction matters: most online tools re-render the page to an image and hand you back a heavier, blurrier file.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three parts that are genuinely hard
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Scanned PDFs.&lt;/strong&gt; A scan has no text layer. Converting it to Word gives you an empty document. The honest fix is OCR first, then convert — and even then, accuracy depends on 300 dpi, straight pages and printed text. Handwriting and shadows still fail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Multi-column layouts.&lt;/strong&gt; A PDF does not store paragraphs; it stores text fragments at coordinates. To rebuild a document you group fragments by baseline and guess the reading order. Single column: fine. Two or three columns, tables, footers mixed into the body: the order comes out scrambled and needs manual fixes. I decided not to pretend otherwise and said so in the UI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Memory.&lt;/strong&gt; Everything happens in the tab. A 200 MB audio file or a 600-page scan can kill it. The limits (15 minutes of audio, 40 PDFs to merge, 500 MB per file) exist because the browser is the machine doing the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The trade-off nobody mentions
&lt;/h2&gt;

&lt;p&gt;Local processing means the user's device pays the cost. A 40-page scanned PDF compressed in the browser takes seconds to minutes depending on the CPU, while a server farm would do it in one. I think it is the right trade for documents you would not email to a stranger, but it is a trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ads, stated plainly
&lt;/h2&gt;

&lt;p&gt;The site is free and has ads. They load when you open a tool, and in the EU, the UK and Switzerland only after you accept. No pop-ups on the homepage, no forced clicks, no "wait 30 seconds to download". The file is generated before any ad gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;I would start with the guides, not the tools. Search traffic came from
"compress a PDF for a 2 MB form", not from "pdf converter".&lt;/li&gt;
&lt;li&gt;I would test on a low-end Android phone from day one. That is where memory
limits actually bite.&lt;/li&gt;
&lt;li&gt;I would not build eleven tools before validating one.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to try it: &lt;a href="https://convup.lodcrafttools.workers.dev/" rel="noopener noreferrer"&gt;convup.lodcrafttools.workers.dev&lt;/a&gt;. If something breaks, tell me which file and what you expected — I would rather fix a real failure than add a feature nobody asked for.&lt;/p&gt;

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