<?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: Enea Zani</title>
    <description>The latest articles on DEV Community by Enea Zani (@enea).</description>
    <link>https://dev.to/enea</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%2F2635413%2F6e4fe6f1-5c93-415c-aa50-48710926cf6b.png</url>
      <title>DEV Community: Enea Zani</title>
      <link>https://dev.to/enea</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/enea"/>
    <language>en</language>
    <item>
      <title>I built a PDF editor where the file never leaves the browser</title>
      <dc:creator>Enea Zani</dc:creator>
      <pubDate>Mon, 02 Nov 2026 10:34:13 +0000</pubDate>
      <link>https://dev.to/enea/i-built-a-pdf-editor-where-the-file-never-leaves-the-browser-53ab</link>
      <guid>https://dev.to/enea/i-built-a-pdf-editor-where-the-file-never-leaves-the-browser-53ab</guid>
      <description>&lt;p&gt;Open almost any "free PDF editor" and the first thing it asks for is the file. That is not a UI detail. Your document is copied to a server, written to disk, processed by a queue, and returned as a new file. For a recipe that is fine. For a contract, a payslip or a medical letter, it is a decision with legal weight.&lt;/p&gt;

&lt;p&gt;I maintain &lt;a href="https://github.com/Frenxys/pdfcanvas" rel="noopener noreferrer"&gt;pdfcanvas&lt;/a&gt;, an MIT-licensed PDF editor that runs entirely in the browser. This post is about the engineering behind it, including the parts that are still ugly.&lt;/p&gt;

&lt;h2&gt;
  
  
  The privacy claim is the easy part
&lt;/h2&gt;

&lt;p&gt;The architecture is boring on purpose. The site is static files, and the editor is JavaScript plus WebAssembly. There is no API route that accepts a document.&lt;/p&gt;

&lt;p&gt;Rendering is done by PDF.js. Editing existing text is done by a WebAssembly build of PDFium, the engine inside Chrome. Writing the output is done by pdf-lib. All three run in the tab, and the worker is served from the same origin, never from a CDN.&lt;/p&gt;

&lt;p&gt;You do not have to trust that paragraph. Open the editor, load a file, open the network panel, and switch it to Offline. Keep editing and export. If the document were processed remotely, the export would fail.&lt;/p&gt;

&lt;p&gt;The privacy guarantee is the easy part because it falls out of the architecture. The hard part is what happens when a PDF contains text that was never designed to be edited.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three engines, because one library cannot do all of it
&lt;/h2&gt;

&lt;p&gt;A PDF editor has three jobs, and each has a different best tool:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Render&lt;/strong&gt; pages, with fonts, CMaps and colour spaces. PDF.js is the renderer maintained by Mozilla and used by Firefox.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edit&lt;/strong&gt; text that already exists in the file. This is the rare capability. pdf-lib can draw new content but cannot change a glyph in the original content stream. PDFium can.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write&lt;/strong&gt; the result. pdf-lib produces valid PDFs with images, fonts and page trees.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pulling PDFium in for everything would be simpler, but it is also the largest asset in the build. Using each engine for its job keeps the initial path smaller.&lt;/p&gt;

&lt;p&gt;The snippets below target &lt;code&gt;pdfcanvas&lt;/code&gt; 0.8.x and were checked against 0.8.0 in November 2026.&lt;/p&gt;

&lt;p&gt;Mounting the engine looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;PdfCanvas&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;pdfcanvas&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;pdf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;PdfCanvas&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#editor&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;workerSrc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/pdfjs/pdf.worker.min.mjs&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;pdfiumWasmUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/pdfium/pdfium.wasm&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;fontAssetsUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/fonts/&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;pdf&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="nx"&gt;file&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Approved&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;fontSize&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#6b4eff&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;download&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The container needs an explicit height. That is the first bug every integration hits.&lt;/p&gt;

&lt;h2&gt;
  
  
  PDF text is not a text box
&lt;/h2&gt;

&lt;p&gt;This is the part I underestimated.&lt;/p&gt;

&lt;p&gt;A PDF content stream does not store paragraphs. It stores glyphs at coordinates, with a font and a transformation matrix. Sometimes a line of text is one text-showing operator. Sometimes every character is placed individually, because the producing tool was optimizing for something else. There is no &lt;code&gt;line&lt;/code&gt; object to select.&lt;/p&gt;

&lt;p&gt;So "click a line and edit it" is a heuristic, not a lookup. PdfCanvas groups characters into editable line runs by comparing their baseline, spacing and font. On a normal document exported from Word or LaTeX this works. On a scan there is no text to group. On unusual encodings it can fail, and when it fails the editor should say so instead of silently corrupting the file.&lt;/p&gt;

&lt;p&gt;Once a run is selected, changing it is a separate operation. The original glyphs are removed and new text is drawn with a matching font:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="nx"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setTool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;text-edit&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;originaledit&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="nx"&gt;edit&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;edit&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nx"&gt;pdf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;updateOriginalText&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;boldOverride&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;fontSizeOverride&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;11&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;That distinction matters for the export, and it is where most of the debugging time went.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fonts lie about what they contain
&lt;/h2&gt;

&lt;p&gt;PDFs usually embed a subset of a font: only the glyphs the document uses. If you edit a word and introduce a character outside that subset, the original font cannot render it.&lt;/p&gt;

&lt;p&gt;The editor tries to reuse the embedded font first, which keeps line lengths and shapes identical. When it cannot, it falls back to Work Sans or to Liberation Sans, which has Arial metrics. Close is not the same as equal: a replaced font can shift line breaks and make accented characters look wrong.&lt;/p&gt;

&lt;p&gt;This is a limitation I would rather state than hide. If a document is typographically sensitive, check the export before sending it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Export has to stay vector
&lt;/h2&gt;

&lt;p&gt;There is a tempting shortcut: render the edited page to a canvas, wrap it in an image, and call it a PDF. It is a few lines of code. It also destroys the document. Text stops being selectable and searchable, file size explodes, and printing quality drops.&lt;/p&gt;

&lt;p&gt;The approach here is different. Pages you did not touch are copied as they are. Overlays are written as real PDF objects: text with an embedded font, shapes with a fill, images with a transform. The original page stays vector.&lt;/p&gt;

&lt;p&gt;That choice is also why the whiteout tool needs an honest warning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Whiteout is not redaction
&lt;/h2&gt;

&lt;p&gt;The editor has a tool that draws a filled rectangle over part of a page. It looks like redaction. It is not.&lt;/p&gt;

&lt;p&gt;The rectangle is drawn on top of the content. The text underneath is still in the file and can be extracted with any text tool. Real redaction removes or rewrites the content stream, and verifying that is its own project.&lt;/p&gt;

&lt;p&gt;Most online editors have the same behaviour and do not say so. I would rather lose a feature comparison than have someone send a "redacted" document that still contains the account number.&lt;/p&gt;

&lt;p&gt;For the same reason, the project does not claim AcroForm filling, OCR, certified digital signatures or PDF/A. Each of those has a correctness bar that a small editor cannot meet, and a broken version is worse than a missing one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bill: what local processing costs
&lt;/h2&gt;

&lt;p&gt;Client-side processing moves cost from a server bill to the user's first load. These are the assets in the production build at v0.8.0, measured with Node's &lt;code&gt;zlib&lt;/code&gt; on the files as shipped:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Asset&lt;/th&gt;
&lt;th&gt;Raw&lt;/th&gt;
&lt;th&gt;Brotli&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pdfium.wasm&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4.43 MB&lt;/td&gt;
&lt;td&gt;1.58 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;pdf.worker.min.mjs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1.21 MB&lt;/td&gt;
&lt;td&gt;0.30 MB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CMaps&lt;/td&gt;
&lt;td&gt;1.14 MB&lt;/td&gt;
&lt;td&gt;not measured&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Standard fonts&lt;/td&gt;
&lt;td&gt;779 KB&lt;/td&gt;
&lt;td&gt;not measured&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first visit pays for the engine. After that the browser caches it, and the editing session itself makes no network requests. On a slow connection the first load is the price of not uploading anything.&lt;/p&gt;

&lt;p&gt;The other limit is memory. The default maximum file size is 200 MB, but the real ceiling is the tab. A 500-page scan will open on a laptop and struggle on a cheap phone. There is no server to bail you out.&lt;/p&gt;

&lt;h2&gt;
  
  
  When you should not use it
&lt;/h2&gt;

&lt;p&gt;I would not recommend this editor for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Forms.&lt;/strong&gt; AcroForm fields are not supported. You can place text over a field, but the field itself stays empty.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redaction.&lt;/strong&gt; Use a tool that removes the content and lets you verify the result.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OCR.&lt;/strong&gt; Scanned documents can be annotated, not edited.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Certified signatures.&lt;/strong&gt; The signature tool draws a signature. It does not create a cryptographic one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Server pipelines.&lt;/strong&gt; It depends on browser APIs. For batch processing use a library built for Node.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mission-critical workflows without maintenance.&lt;/strong&gt; There is no support contract.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If those are requirements, &lt;a href="https://www.nutrient.io/" rel="noopener noreferrer"&gt;Nutrient&lt;/a&gt;, &lt;a href="https://apryse.com/" rel="noopener noreferrer"&gt;Apryse&lt;/a&gt; or Acrobat are the right products. They cost money because someone maintains the hard parts.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part I would do again
&lt;/h2&gt;

&lt;p&gt;Keeping the whole thing open source and client-side forced better decisions. There is no upload endpoint to secure, no retention policy to write, and no tenant isolation to get wrong. The security review is "read the code and watch the network panel".&lt;/p&gt;

&lt;p&gt;It also made the editor embeddable. The same package ships a core API and a ready-made UI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;PdfCanvasEditor&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;pdfcanvas/editor&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;editor&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;PdfCanvasEditor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#app&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;workerSrc&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/pdfjs/pdf.worker.min.mjs&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;pdfiumWasmUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/pdfium/pdfium.wasm&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;fontAssetsUrl&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/fonts/&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;locale&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;auto&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;autosave&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;contracts&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;editor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ready&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;editor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;file&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Autosave stores the original bytes and the scene in IndexedDB. Still no server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it, or read the code
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Editor: &lt;a href="https://pdf.eneawork.it/editor/" rel="noopener noreferrer"&gt;pdf.eneawork.it&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/Frenxys/pdfcanvas" rel="noopener noreferrer"&gt;github.com/Frenxys/pdfcanvas&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Package: &lt;code&gt;npm i pdfcanvas&lt;/code&gt; (&lt;a href="https://www.npmjs.com/package/pdfcanvas" rel="noopener noreferrer"&gt;npm&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://pdf.eneawork.it/docs/" rel="noopener noreferrer"&gt;pdf.eneawork.it/docs/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The honest summary: it handles text, images, signatures, highlights and pages, it keeps the file on the device, and it is missing features that other tools charge for. The gaps are documented in the repository, because finding them in production is worse.&lt;/p&gt;

&lt;p&gt;If you try it on a real document and something breaks, open an issue with the kind of PDF that broke it. The per-character text cases are the ones I want to see.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>pdf</category>
      <category>webdev</category>
      <category>privacy</category>
    </item>
  </channel>
</rss>
