<?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: Sam</title>
    <description>The latest articles on DEV Community by Sam (@epubtopdf_b26).</description>
    <link>https://dev.to/epubtopdf_b26</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%2F4237764%2F5bd1d347-a612-4200-b8ec-e0e2ef651d5c.png</url>
      <title>DEV Community: Sam</title>
      <link>https://dev.to/epubtopdf_b26</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/epubtopdf_b26"/>
    <language>en</language>
    <item>
      <title>How I built a private EPUB to PDF converter that never uploads your book</title>
      <dc:creator>Sam</dc:creator>
      <pubDate>Tue, 10 Nov 2026 19:28:17 +0000</pubDate>
      <link>https://dev.to/epubtopdf_b26/how-i-built-a-private-epub-to-pdf-converter-that-never-uploads-your-book-361f</link>
      <guid>https://dev.to/epubtopdf_b26/how-i-built-a-private-epub-to-pdf-converter-that-never-uploads-your-book-361f</guid>
      <description>&lt;h2&gt;
  
  
  The problem: printing an EPUB is harder than it should be
&lt;/h2&gt;

&lt;p&gt;I come from book marketing, and one request kept coming up: "How do I print this EPUB?" Students get open textbooks as EPUB files. Readers get review copies the same way. Then they need a PDF, because PDF is what printers, office laptops and annotation apps understand.&lt;/p&gt;

&lt;p&gt;The usual answers were not great. Calibre works well, but it is a desktop install that many people cannot add to a library or work computer. Most online converters upload your book to their server, convert it there and send it back, often with size limits or a daily cap.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://epubtopdf.net" rel="noopener noreferrer"&gt;EPUBtoPDF&lt;/a&gt;, a free converter that does the whole job inside the browser tab. Your book never leaves your device.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why convert in the browser
&lt;/h2&gt;

&lt;p&gt;A reading list says a lot about a person: their health questions, their politics, the manuscript they have not shown anyone. I did not want to hold anyone's books on a server, so the converter downloads to the browser and runs on the user's own computer or phone.&lt;/p&gt;

&lt;p&gt;That choice gave three practical wins:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Privacy you can check.&lt;/strong&gt; Open the Network tab in your browser's developer tools and convert a book. You will see the converter's own scripts load, but no request carries your file anywhere.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nothing to install.&lt;/strong&gt; It works in Chrome, Edge, Firefox and Safari on Windows, Mac, Linux, iPhone, Android and Chromebook.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No server cost per file.&lt;/strong&gt; That is what lets it stay free, with no signup, no watermark and no daily limit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;An EPUB is a ZIP package of XHTML pages, CSS, images and metadata. A PDF stores every page as a fixed layout. The converter's job is to read the first and lay it out again as the second, in five steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Unpack&lt;/strong&gt; the .epub file in the browser and read the package metadata (title, author, cover).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Follow the reading order&lt;/strong&gt; the book declares, chapter by chapter, and read headings, paragraphs, lists, quotes and images.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lay out fixed pages&lt;/strong&gt; at the size the reader picked: A4, US Letter, A5 or 6 x 9 in, with their chosen font size and margins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rebuild navigation:&lt;/strong&gt; each chapter starts on a new page, the table of contents becomes PDF bookmarks, and page numbers are added at the bottom.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write the PDF&lt;/strong&gt; with real, searchable text and hand it back as a download.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One detail mattered more than I expected: fonts. Books with accents, Greek or Cyrillic showed empty boxes until the converter loaded a Unicode font automatically. In my tests, Moby-Dick (a 1.55 MB EPUB) became a 731-page A5 PDF about 4 seconds after pressing Convert on a laptop.&lt;/p&gt;

&lt;h2&gt;
  
  
  What carries over, and what does not
&lt;/h2&gt;

&lt;p&gt;Most of the book survives the trip, but not everything. I would rather say so up front:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part of the book&lt;/th&gt;
&lt;th&gt;In the PDF&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Chapters, headings, bold, italics, lists, quotes&lt;/td&gt;
&lt;td&gt;Kept&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cover and images&lt;/td&gt;
&lt;td&gt;Kept; images scaled to fit the page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Table of contents&lt;/td&gt;
&lt;td&gt;Kept as PDF bookmarks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Title and author&lt;/td&gt;
&lt;td&gt;Copied into the PDF properties&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tables&lt;/td&gt;
&lt;td&gt;Simplified: each row becomes a line of text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Links&lt;/td&gt;
&lt;td&gt;Text kept, no longer clickable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Publisher fonts and colors&lt;/td&gt;
&lt;td&gt;Replaced by a clean serif font&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chinese, Japanese, Korean, Arabic&lt;/td&gt;
&lt;td&gt;Not supported yet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DRM-protected books&lt;/td&gt;
&lt;td&gt;Not converted, by design&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The DRM line is deliberate. Books bought or borrowed through store apps are locked to those apps, and an honest tool should not break that. The converter works with DRM-free files, such as open textbooks and public domain books.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Most "formatting problems" are page-size problems.&lt;/strong&gt; An A4 page read on a phone looks tiny. Offering A5 and 6 x 9 in sizes fixed more complaints than any layout tweak.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fixed-layout EPUBs are a different animal.&lt;/strong&gt; Comics and picture books are rebuilt as flowing text and images, so they are often better left as they are.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Be honest about limits.&lt;/strong&gt; A clear "this book is DRM-protected" message beats a broken PDF.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same in-browser approach now powers the site's other converters too, including &lt;a href="https://epubtopdf.net/pdf-to-epub/" rel="noopener noreferrer"&gt;PDF to EPUB&lt;/a&gt;, MOBI to PDF, EPUB to Word and AZW3 to EPUB.&lt;/p&gt;

&lt;p&gt;If you try &lt;a href="https://epubtopdf.net" rel="noopener noreferrer"&gt;EPUBtoPDF&lt;/a&gt; with your own books, I would like to hear two things in the comments: how the PDF layout looks, and which ebook format or feature you would want next.&lt;/p&gt;

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