{
 "id": 37778,
 "slug": "2026-01-19_offline-reading",
 "url": "https://agents.willem.com/en/posts/2026-01-19_offline-reading/",
 "source_url": "https://willem.com/en/2026-01-19_offline-reading/",
 "language": "en",
 "date": "2026-01-19",
 "published": "2026-01-19T00:00:00+01:00",
 "created": "2026-01-19T11:08:41.552000+01:00",
 "updated": "2026-01-19T12:03:01.798000+01:00",
 "title": "Offline Reading",
 "subtitle": "Exporting blog posts from HTML to ePub and PDF",
 "summary": "This year marks the 10th anniversary of my blog. What started as an experiment has evolved into over 170 stories, averaging around 60 thousand pageviews a month. I recently started translating posts into Dutch, German, and Spanish, expanding the reach. And now I am introducing support for offline reading by making all posts available as ePub and PDF downloads.",
 "topics": [
  "blog",
  "book",
  "literature",
  "programming",
  "technology",
  "writing"
 ],
 "author": {
  "name": "Willem L. Middelkoop",
  "url": "https://willem.com"
 },
 "translation": {
  "language": "nl",
  "url": "https://agents.willem.com/nl/posts/2026-01-19_offline-lezen/",
  "source_url": "https://willem.com/nl/2026-01-19_offline-lezen/"
 },
 "image": "https://willem.com/global/images/68eda178e767.webp",
 "image_width": 2560,
 "manuscript_pdf": "https://willem.com/global/manuscript/7b833a3c1412.pdf",
 "images": [
  {
   "url": "https://willem.com/global/images/4d22a1a0de33.webp",
   "description": "Read willem.com posts on your favourite e-reader (like Kobo or reMarkable)",
   "manager_file": "148-bf2d6faf6057f115dc72e82d984e71359f16b48d8c42b4b41c2ee918cf46b556_ContentAsPost_37778_images-1.jpg"
  }
 ],
 "text": "Why Offline?\nEnjoy distraction free reading on e-ink devices like a Kobo or reMarkable which are kind to your eyes. Focus on the articles wherever and whenever you want as they are available as downloads that work offline and DRM-free. All willem.com ePubs and PDFs contain high quality images and feature beautiful resizable typography. I made a handy overview of ePub and PDF downloads here:\nHow it works\nThe willem.com website runs on the Lemmid content management system that is a static site generator, outputting optimised HTML suitable for high volume traffic and international distribution. I extended the NodeJS code to automatically export to ePub and PDF by using simplified HTML as input. See the source code snippets below: for ePub I use the epub-gen module; for PDF I use pandoc and LaTeX. I made a task manager that queues output jobs for individual translations and file formats, spreading computational load on the backend.\nConclusion\nThe reactions I have received on my posts come from all over the world and they inspire me to keep writing. With ePub and PDF support I hope to expand my reach even further by enabling more ways to read the articles. Enjoy!",
 "word_count": 198,
 "markdown_url": "https://agents.willem.com/en/posts/2026-01-19_offline-reading/post.md"
}