<?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: frank20190926</title>
    <description>The latest articles on DEV Community by frank20190926 (@frank20190926).</description>
    <link>https://dev.to/frank20190926</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%2F4260724%2F1acb977a-360f-438b-ae22-f6350c27e7cc.png</url>
      <title>DEV Community: frank20190926</title>
      <link>https://dev.to/frank20190926</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/frank20190926"/>
    <language>en</language>
    <item>
      <title>I Built a 100% Offline PDF Blueprint Takeoff &amp; Quote Tool in Vanilla JS + PDF.js</title>
      <dc:creator>frank20190926</dc:creator>
      <pubDate>Mon, 23 Nov 2026 13:38:34 +0000</pubDate>
      <link>https://dev.to/frank20190926/i-built-a-100-offline-pdf-blueprint-takeoff-quote-tool-in-vanilla-js-pdfjs-292c</link>
      <guid>https://dev.to/frank20190926/i-built-a-100-offline-pdf-blueprint-takeoff-quote-tool-in-vanilla-js-pdfjs-292c</guid>
      <description>&lt;p&gt;Small flooring, landscaping, painting, and remodeling contractors are often pushed into $50–$200/month cloud subscriptions (PlanSwift, Measure Square, zzTakeoff) just to measure room square footage and linear feet off a client's PDF floor plan.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;PlanQuote&lt;/strong&gt; — a zero-signup, 100% offline browser takeoff and client quote PDF generator that runs completely on the user's device.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live free demo (loads a sample residential plan so you can try it in 5 seconds):&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://frank20190926.github.io/planquote/" rel="noopener noreferrer"&gt;https://frank20190926.github.io/planquote/&lt;/a&gt;&lt;/p&gt;

&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc58ewu9w2accy4j75db1.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc58ewu9w2accy4j75db1.png" alt="PlanQuote Desktop Workbench" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Key Technical Choices
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Zero network requests / strict CSP&lt;/strong&gt;: Bundled &lt;code&gt;pdf.js&lt;/code&gt; locally (&lt;code&gt;vendor/pdf.min.js&lt;/code&gt; + &lt;code&gt;pdf.worker.min.js&lt;/code&gt;) with &lt;code&gt;connect-src 'none'&lt;/code&gt;. Client blueprints never leave the browser, and it works completely offline on a job site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Procedural sample plan&lt;/strong&gt;: Instead of forcing users to hunt for a PDF just to test the UI, &lt;code&gt;sample-plan.js&lt;/code&gt; renders a crisp architectural floor plan with a known 20'-0" scale bar and 3 pre-drawn takeoffs (Living Room flooring, Rear Patio, and Baseboard linear run).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Core geometry in pure Canvas&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;2-click scale calibration with instant Imperial (&lt;code&gt;ft / sq ft&lt;/code&gt;) &amp;lt;-&amp;gt; Metric (&lt;code&gt;m / m²&lt;/code&gt;) conversion&lt;/li&gt;
&lt;li&gt;Polygon area + perimeter (Shoelace formula), linear path length, and pin counting&lt;/li&gt;
&lt;li&gt;Multi-page PDF switching with independent per-page scale&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Takeoff -&amp;gt; Client Quote PDF in one click&lt;/strong&gt;: Built-in trade presets (Flooring &amp;amp; Tile, Interior Painting, Landscaping &amp;amp; Decking, Roofing &amp;amp; Pergola, General Remodel) apply waste %, material/labor rates, and tax, then render a clean print-to-PDF quote embedding a high-res snapshot of the annotated floor plan (plus clean CSV export for Excel).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The web demo is free to use (exports carry a small footer credit). For contractors who want a zero-watermark offline zip with custom company logos and exportable JSON pricebooks, I also packaged a one-time $29 Pro bundle on Gumroad: &lt;a href="https://suiyiverse0.gumroad.com/l/planquote" rel="noopener noreferrer"&gt;https://suiyiverse0.gumroad.com/l/planquote&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open-source demo repo: &lt;a href="https://github.com/frank20190926/planquote" rel="noopener noreferrer"&gt;https://github.com/frank20190926/planquote&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to hear any technical feedback or edge cases on real-world PDF blueprints!&lt;/p&gt;

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