1#include "mupdf/fitz.h"
2
3extern fz_document_handler pdf_document_handler;
4extern fz_document_handler xps_document_handler;
5extern fz_document_handler svg_document_handler;
6extern fz_document_handler cbz_document_handler;
7extern fz_document_handler img_document_handler;
8extern fz_document_handler html_document_handler;
9extern fz_document_handler epub_document_handler;
10
11/*
12 Register handlers
13 for all the standard document types supported in
14 this build.
15*/
16void fz_register_document_handlers(fz_context *ctx)
17{
18#if FZ_ENABLE_PDF
19 fz_register_document_handler(ctx, &pdf_document_handler);
20#endif /* FZ_ENABLE_PDF */
21#if FZ_ENABLE_XPS
22 fz_register_document_handler(ctx, &xps_document_handler);
23#endif /* FZ_ENABLE_XPS */
24#if FZ_ENABLE_SVG
25 fz_register_document_handler(ctx, &svg_document_handler);
26#endif /* FZ_ENABLE_SVG */
27#if FZ_ENABLE_CBZ
28 fz_register_document_handler(ctx, &cbz_document_handler);
29#endif /* FZ_ENABLE_CBZ */
30#if FZ_ENABLE_IMG
31 fz_register_document_handler(ctx, &img_document_handler);
32#endif /* FZ_ENABLE_IMG */
33#if FZ_ENABLE_HTML
34 fz_register_document_handler(ctx, &html_document_handler);
35#endif /* FZ_ENABLE_HTML */
36#if FZ_ENABLE_EPUB
37 fz_register_document_handler(ctx, &epub_document_handler);
38#endif /* FZ_ENABLE_EPUB */
39}
40