summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-12-31 00:05:28 +0000
committerVincent Sanders <vince@kyllikki.org>2020-12-11 16:17:27 +0000
commit399d7189f21ad41bd80e11d5ff8da4037edfc1c2 (patch)
treed33b460100416c64630d1006a0a8aaf86bd58d5e /desktop
parent434f6c3fe7d1d2c6a3e6ae6338608a4a4421ab1b (diff)
downloadnetsurf-399d7189f21ad41bd80e11d5ff8da4037edfc1c2.tar.gz
netsurf-399d7189f21ad41bd80e11d5ff8da4037edfc1c2.tar.bz2
Add initial content handler for PDF format
Diffstat (limited to 'desktop')
-rw-r--r--desktop/netsurf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c
index 6cc3a118f..4b0655ed5 100644
--- a/desktop/netsurf.c
+++ b/desktop/netsurf.c
@@ -48,6 +48,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"
@@ -197,6 +198,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 */