18.4 Document handlers

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:

/* 
   Choose which document handlers to include. 
   By default all but GPRF are enabled. To avoid building unwanted 
   ones, define FZ_ENABLE_... to 0. 
*/ 
/* #define FZ_ENABLE_PDF 1 */ 
/* #define FZ_ENABLE_XPS 1 */ 
/* #define FZ_ENABLE_SVG 1 */ 
/* #define FZ_ENABLE_CBZ 1 */ 
/* #define FZ_ENABLE_IMG 1 */ 
/* #define FZ_ENABLE_TIFF 1 */ 
/* #define FZ_ENABLE_HTML 1 */ 
/* #define FZ_ENABLE_EPUB 1 */ 
/* #define FZ_ENABLE_GPRF 1 */

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.