Support for the different document types supported by MuPDF is given by a set of document handlers (see chapter 20 The Document Handler interface). Each handler type can be enabled or disabled as required:
For instance to omit support for HTML, we would define FZ_ENABLE_HTML to be 0. Note that some document handlers share substantial parts of their code with other ones; for example the HTML and EPUB document ages share a large amount of code, so disabling just one of them will not make much difference to the overall code size.