<?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: daoming wen</title>
    <description>The latest articles on DEV Community by daoming wen (@daoming_wen_4ae1683cf7f50).</description>
    <link>https://dev.to/daoming_wen_4ae1683cf7f50</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%2F4171400%2F1102d2be-c73f-446a-9632-0ab68b4530ce.png</url>
      <title>DEV Community: daoming wen</title>
      <link>https://dev.to/daoming_wen_4ae1683cf7f50</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daoming_wen_4ae1683cf7f50"/>
    <language>en</language>
    <item>
      <title>How to check whether a browser PDF tool actually processes files locally</title>
      <dc:creator>daoming wen</dc:creator>
      <pubDate>Wed, 21 Oct 2026 10:00:23 +0000</pubDate>
      <link>https://dev.to/daoming_wen_4ae1683cf7f50/how-to-check-whether-a-browser-pdf-tool-actually-processes-files-locally-4mg</link>
      <guid>https://dev.to/daoming_wen_4ae1683cf7f50/how-to-check-whether-a-browser-pdf-tool-actually-processes-files-locally-4mg</guid>
      <description>&lt;p&gt;A browser can reorganize a PDF without sending the file to a processing server. That makes an interesting implementation choice, but a “local processing” label still needs a reproducible check.&lt;/p&gt;

&lt;p&gt;Disclosure: I represent &lt;a href="https://eliminarpaginas.com/" rel="noopener noreferrer"&gt;PDF Local&lt;/a&gt;, a free browser tool for deleting, extracting, reordering and rotating PDF pages. This article was prepared with AI assistance. It describes a test readers can reproduce; it is not an independent certification or a claim that the whole web page makes no network requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Separate loading the app from processing the file
&lt;/h2&gt;

&lt;p&gt;Downloading JavaScript, fonts or a PDF library is network activity. It does not by itself mean the document is uploaded. Conversely, seeing a local preview does not prove that the file stays local: a page can render a preview and upload the bytes afterward.&lt;/p&gt;

&lt;p&gt;Check the entire operation: selecting the file, rendering previews, changing the page selection and downloading the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use a disposable fixture
&lt;/h2&gt;

&lt;p&gt;Create a three-page PDF with large labels ONE, TWO and THREE. Include a unique, harmless marker such as LOCAL-PDF-TEST-2026. Do not start with a confidential document.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open developer tools and select the Network panel before loading the tool.&lt;/li&gt;
&lt;li&gt;Enable Preserve log. Keep all request types visible, rather than filtering only Fetch/XHR.&lt;/li&gt;
&lt;li&gt;Let the application finish loading, then note or clear the initial request list.&lt;/li&gt;
&lt;li&gt;Select the fixture and perform one page operation, such as keeping pages 3 and 1 in that order.&lt;/li&gt;
&lt;li&gt;Inspect requests triggered during selection, editing and download. Check destinations, methods and request payloads, including form data and binary request bodies. WebSocket traffic can matter too.&lt;/li&gt;
&lt;li&gt;Open the downloaded PDF in another reader. Expect two pages: THREE, then ONE.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An unexpected request deserves investigation even if its URL does not contain “upload”. Absence of the marker in a payload is not proof that the document was not sent: the file could be binary, compressed or encoded.&lt;/p&gt;

&lt;h2&gt;
  
  
  A useful offline cross-check
&lt;/h2&gt;

&lt;p&gt;After the app and its dependencies have loaded, use developer tools to simulate offline mode. Try the operation again with a fresh disposable fixture.&lt;/p&gt;

&lt;p&gt;If selection, page manipulation and download still work, that supports the claim that the operation can run without a processing server. It does not prove what happened during the earlier online run. A lazy-loaded dependency may also fail offline even when the PDF processing itself is local. Interpret the two checks together.&lt;/p&gt;

&lt;p&gt;For stricter assurance, examine the implementation, workers and third-party dependencies. The Network panel is an observation tool, not a complete security audit.&lt;/p&gt;

&lt;h2&gt;
  
  
  The small implementation boundary
&lt;/h2&gt;

&lt;p&gt;This is the essential distinction in browser code:&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="c1"&gt;// Reads bytes from a user-selected File into browser memory.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;inputBytes&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;file&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;arrayBuffer&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="c1"&gt;// A local PDF library can consume those bytes.&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&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="nx"&gt;inputBytes&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;output&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;PDFDocument&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&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;pages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;copyPages&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;source&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt; &lt;span class="c1"&gt;// human pages 3, 1&lt;/span&gt;
&lt;span class="nx"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&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;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;output&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here PDFDocument is imported from pdf-lib. The snippet deliberately omits the surrounding UI. Reading a File does not upload it; an upload requires some additional networking behavior. The rest of the page still needs inspection.&lt;/p&gt;

&lt;p&gt;When exposing a page-selection API, validate one-based user input before converting to zero-based library indexes. Reject an empty selection and out-of-range or fractional page numbers. Decide explicitly whether duplicate pages are permitted. I checked the selection and ordering behavior with a generated fixture before preparing this post.&lt;/p&gt;

&lt;h2&gt;
  
  
  Local processing has limits
&lt;/h2&gt;

&lt;p&gt;Memory still matters: a large PDF can exceed what a phone or browser tab can hold. Copying pages into a new document can affect document-level features, and modifying a digitally signed PDF can invalidate its signature. Keep the original and reopen the result to review it.&lt;/p&gt;

&lt;p&gt;Removing pages is also different from redacting sensitive information from a retained page. A page organizer should not be presented as a secure redaction tool, OCR engine or text editor.&lt;/p&gt;

&lt;p&gt;PDF Local includes a &lt;a href="https://eliminarpaginas.com/verificar-procesamiento-local" rel="noopener noreferrer"&gt;step-by-step local-processing verification guide&lt;/a&gt;. The same testing approach is useful for other browser file tools: give users an observable way to check what happens to a disposable file.&lt;/p&gt;

</description>
      <category>browser</category>
      <category>privacy</category>
      <category>security</category>
      <category>tools</category>
    </item>
  </channel>
</rss>
