<?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: blankdocsua-ctrl</title>
    <description>The latest articles on DEV Community by blankdocsua-ctrl (@blankdocsuactrl).</description>
    <link>https://dev.to/blankdocsuactrl</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%2F4277126%2F793babf4-b8f6-433c-b7dd-98f24b936dbf.png</url>
      <title>DEV Community: blankdocsua-ctrl</title>
      <link>https://dev.to/blankdocsuactrl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blankdocsuactrl"/>
    <language>en</language>
    <item>
      <title>I built a legal document generator that never sees your data</title>
      <dc:creator>blankdocsua-ctrl</dc:creator>
      <pubDate>Tue, 01 Dec 2026 21:07:44 +0000</pubDate>
      <link>https://dev.to/blankdocsuactrl/i-built-a-legal-document-generator-that-never-sees-your-data-1jgc</link>
      <guid>https://dev.to/blankdocsuactrl/i-built-a-legal-document-generator-that-never-sees-your-data-1jgc</guid>
      <description>&lt;p&gt;Ukrainian bureaucracy runs on paperwork. Loan receipts, vacation applications, resignation letters, consumer claims. People search for a sample, download a random .docx, and spend twenty minutes fixing the header.&lt;/p&gt;

&lt;p&gt;So I built Blank: pick a template, fill a short form, watch a live A4 preview, download a ready file. 20 documents, 8 utilities, 6 export formats. Free, no signup, no ads.&lt;/p&gt;

&lt;h2&gt;
  
  
  The constraint that shaped everything
&lt;/h2&gt;

&lt;p&gt;These forms hold passport numbers, home addresses and money amounts. I did not want a database full of that. So there is no backend at all — every document is assembled in the browser.&lt;/p&gt;

&lt;p&gt;That decision turned out to be both the privacy guarantee and the reason hosting costs nothing. Static export on Cloudflare Pages, no server, no storage, no logs of user data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cyrillic PDF is the actual hard part
&lt;/h2&gt;

&lt;p&gt;Most JS PDF libraries ship fonts without Cyrillic glyphs. You get empty boxes where letters should be. The fix is embedding a real TTF — I use PT Serif, three weights.&lt;/p&gt;

&lt;p&gt;pdfmake plus the fonts is roughly 840 KB. Shipping that in the main bundle would be rude on mobile, so both load dynamically only when you click export.&lt;/p&gt;

&lt;h2&gt;
  
  
  The preview must not lie
&lt;/h2&gt;

&lt;p&gt;Early on I rendered the on-screen preview with a different font than the exported PDF. Different metrics meant different line breaks, so the preview showed a document the user would never actually get.&lt;/p&gt;

&lt;p&gt;Now the preview uses the exact same font file as the PDF, at real A4 proportions. Same margins, same wrapping. What you see is the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Static export has teeth
&lt;/h2&gt;

&lt;p&gt;No API routes, no server actions, no middleware. Everything client-side. Localization uses path prefixes so every language gets its own static URL. Drafts live in localStorage.&lt;/p&gt;

&lt;p&gt;It is a real constraint, but it forces a simpler architecture — and the whole site is 102 static URLs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would like feedback on
&lt;/h2&gt;

&lt;p&gt;Is the live preview readable on your screen? And if you work with documents in a non-Latin script, what did you use for PDF generation?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://blank-ua.pages.dev" rel="noopener noreferrer"&gt;https://blank-ua.pages.dev&lt;/a&gt;&lt;/p&gt;

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