gitwtfhub

wtf is sumatrapdf?

sumatrapdfreader/sumatrapdf — explained in plain English

Analysis updated 2026-06-24

16,686CAudience · generalComplexity · 5/5LicenseSetup · hard

TL;DR

SumatraPDF is a free, lightweight document reader for Windows that opens PDF, EPUB, MOBI, CBZ, CBR, FB2, CHM, XPS, and DjVu files.

Mindmap

mindmap
  root((sumatrapdf))
    Inputs
      PDF files
      EPUB and MOBI
      Comic archives
      DjVu and XPS
    Outputs
      Rendered pages
      Printable docs
    Use Cases
      Read ebooks on Windows
      View PDFs quickly
      Open comic archives
    Tech Stack
      C
      C plus plus
      Win32

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Install a lightweight PDF reader on Windows without bloat

REASON 2

Read EPUB and MOBI ebooks outside of dedicated readers

REASON 3

Open CBZ and CBR comic archives in one viewer

REASON 4

Fork and customize a Windows-native document viewer

What's in the stack?

CC++Win32

How it stacks up

sumatrapdfreader/sumatrapdftursodatabase/libsqlskywind3000/kcp
Stars16,68616,73716,742
LanguageCCC
Setup difficultyhardmoderatemoderate
Complexity5/53/53/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1day+

Building from source requires Visual Studio and Win32 toolchain, most users install the prebuilt binary instead.

AGPL v3 with some BSD code, meaning you can use and modify it but any networked or distributed derivative must release its source under the same terms.

Wtf does this do

SumatraPDF is a free, lightweight document reader for Windows. It can open a wide range of file formats including PDF, EPUB, MOBI, CBZ, CBR, FB2, CHM, XPS, and DjVu, making it a one-stop tool for reading almost any document or e-book format on a Windows computer. It is released under the AGPL v3 license, meaning it is open-source and free to use. With nearly 17,000 GitHub stars, it is a well-regarded alternative to heavier PDF readers. The source code is written in C and C++. More details, a manual, and contributor information are available on the official SumatraPDF website.

Yoink these prompts

Prompt 1
Walk me through building SumatraPDF from source on Windows with Visual Studio
Prompt 2
Show me how SumatraPDF handles font rendering across PDF and EPUB in its C++ code
Prompt 3
Help me add a new keyboard shortcut to the SumatraPDF UI
Prompt 4
Explain the plugin architecture in SumatraPDF and how I can extend file format support

Frequently asked questions

wtf is sumatrapdf?

SumatraPDF is a free, lightweight document reader for Windows that opens PDF, EPUB, MOBI, CBZ, CBR, FB2, CHM, XPS, and DjVu files.

What language is sumatrapdf written in?

Mainly C. The stack also includes C, C++, Win32.

What license does sumatrapdf use?

AGPL v3 with some BSD code, meaning you can use and modify it but any networked or distributed derivative must release its source under the same terms.

How hard is sumatrapdf to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is sumatrapdf for?

Mainly general.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.