MJ PDF
Open source

The Story of MJ PDF: From a Bug Fix to a Full Rewrite

Plenty of useful open-source apps start the same way: someone gets annoyed by a missing feature, opens the code and starts changing it. MJ PDF is a textbook case. This is a summary of the story as the author tells it on the project’s page, which is also where you can read the original.

MJ PDF website2 min read6 sections

In 2022 the author was looking for an Android PDF viewer that respected privacy and did not need the internet. The options he found were slow, awkward or missing basic features. The nearest fit was an open-source viewer called PDF Viewer Plus.

One annoyance too many

After a few months, the app’s habit of forgetting the last page he had opened became too annoying to ignore. Because the code was open and mostly the work of one developer, it was approachable enough to read, trace and change. He fixed a few interface bugs the first day.

From patches to a new app

Within a couple of weeks the changes had added up to a simplified interface and tweaks to the underlying libraries. Rather than send a pull request that rewrote everything, the author published his version as a new app. It was first called MJ PDF Reader and later just MJ PDF.

Handing over the torch

The original author, who had been busy with university and work, got in touch, archived his project and pointed users to MJ PDF as long as it stayed free and open source. That is a good illustration of how open licences let a project continue when its first maintainer cannot.

Version 3.0.0 and beyond

MJ PDF 3.0.0 is described as a complete rewrite that is no longer a fork, with a cleaner architecture and more customisation. The project maintains its own forks of the PDF rendering libraries and its own build pipeline for the native PDFium libraries. Version 3.1.0, the one presented on this site, is a correctness and stability release in that generation.

Read it in the author’s words

This is a summary written by this website. For the original account, including the reactions from users and the original developer, read the project’s page. For the licence that made it possible, see what GPL-3.0 means for readers.

Key points

  • MJ PDF began as small fixes to PDF Viewer Plus in 2022.
  • Open licences let the original app’s users move to a maintained successor.
  • Version 3.0.0 was a full rewrite, and 3.1.0 refines it.

Questions

Is MJ PDF still a fork?

According to the project, no. Version 3.0.0 was a complete rewrite, although the app credits the projects and libraries it grew from.

Get MJ PDF 3.1.0

Free, open source and ad-free. Install it from F-Droid or IzzyOnDroid, or read the source on GitLab.