From 7f009acebb75ff88c1ee934b03fa2d15f7785b32 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 3 Jan 2014 16:50:41 +0000 Subject: Introduce 'document handlers'. We define a document handler for each file type (2 in the case of PDF, one to handle files with the ability to 'run' them, and one without). We then register these handlers with the context at startup, and then call fz_open_document... as usual. This enables people to select the document types they want at will (and even to extend the library with more document types should they wish). --- scripts/cmapdump.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'scripts') diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c index 88f1f800..a9e5de18 100644 --- a/scripts/cmapdump.c +++ b/scripts/cmapdump.c @@ -246,3 +246,16 @@ fz_glyph_cache *fz_keep_glyph_cache(fz_context *ctx) { return NULL; } + +void fz_new_document_handler_context(fz_context *ctx) +{ +} + +void fz_drop_document_handler_context(fz_context *ctx) +{ +} + +fz_document_handler_context *fz_keep_document_handler_context(fz_context *ctx) +{ + return NULL; +} -- cgit v1.2.3