home ‣ Mupdf notes login
Mupdf and SumatraPDF
mupdf is a PDF parsing/rendering engine used by SumatraPDF. There is an official darcs repository of mupdf code.
The version used by Sumatra is in Sumatra’s google code repo. If you want to contribute to Sumatra, this is the repository to work on. Ideally all the changes would end up in official mupdf sources.
Sumatra is hosted on Google Code’s Subversion repository. To make things easy I maintain a copy of mupdf sources under mupdf directory.
If you want to work on mupdf, I maintain a list of problems in mupdf along with PDF files that repro them here. They’re also reported in mupdf’s bugzilla.
Overview of mupdf
mupdf is a C library that can parse PDF format and render PDF pages to a bitmap. It depends on the following libraries:
- zlib for decoding compressed streams
- libjpeg for decoding jpeg images
- freetype for handling and rendering fonts
- openjpeg for handling jpeg2000 streams
- jbig2dec for handling jbig2 streams.
Mupdf uses refcounting extensively for managing lifetime of most objects.
TODO: this page could have much more information.