summaryrefslogtreecommitdiff
path: root/desktop/netsurf.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-12-31 00:05:28 +0000
committerVincent Sanders <vince@kyllikki.org>2019-09-30 15:32:34 +0100
commitca40e217685d04f83459645a660c891a18b01def (patch)
treeb7ebf0424a2b35d4079e2c99987383e181da59b1 /desktop/netsurf.c
parent1dd9f4f2e44b17d38c5b109b573e3eb17c13420b (diff)
downloadnetsurf-ca40e217685d04f83459645a660c891a18b01def.tar.gz
netsurf-ca40e217685d04f83459645a660c891a18b01def.tar.bz2
Add initial content handler for PDF format
Diffstat (limited to 'desktop/netsurf.c')
-rw-r--r--desktop/netsurf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c
index e3babd864..8a0f24eee 100644
--- a/desktop/netsurf.c
+++ b/desktop/netsurf.c
@@ -46,6 +46,7 @@
#include "javascript/js.h"
#include "html/html.h"
#include "text/textplain.h"
+#include "pdf/pdf.h"
#include "netsurf/browser_window.h"
#include "desktop/system_colour.h"
@@ -187,6 +188,12 @@ nserror netsurf_init(const char *store_path)
if (ret != NSERROR_OK)
return ret;
+#ifdef WITH_NSPDF
+ ret = nspdf_init();
+ if (ret != NSERROR_OK)
+ return ret;
+#endif
+
setlocale(LC_ALL, "");
/* initialise the fetchers */