summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-17 16:37:51 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-17 16:37:51 +0000
commitee986e1d0acfc586a81aa593c72f9278077f3299 (patch)
tree9da1d53a770d8b828e73ab0db176fbff36b1dd06 /amiga
parentf41d666fe17ef2bf4a1a4161283049d2817a4087 (diff)
downloadnetsurf-ee986e1d0acfc586a81aa593c72f9278077f3299.tar.gz
netsurf-ee986e1d0acfc586a81aa593c72f9278077f3299.tar.bz2
Divorce PDF export and printing.
At some point, the RISC OS printing code should be ported to the core page-based output engine. svn path=/trunk/netsurf/; revision=6544
Diffstat (limited to 'amiga')
-rw-r--r--amiga/save_pdf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/amiga/save_pdf.c b/amiga/save_pdf.c
index 36b090549..f446da1e4 100644
--- a/amiga/save_pdf.c
+++ b/amiga/save_pdf.c
@@ -27,6 +27,7 @@
#include <stdbool.h>
#include "content/content.h"
#include "desktop/print.h"
+#include "desktop/save_pdf/font_haru.h"
#include "desktop/save_pdf/pdf_plotters.h"
#include "amiga/save_pdf.h"
#include "utils/log.h"
@@ -43,12 +44,13 @@ bool save_as_pdf(struct content *c, const char *path)
{
struct print_settings *psettings;
- psettings = print_make_settings(DEFAULT, path);
+ psettings = print_make_settings(PRINT_DEFAULT, path, &haru_nsfont);
if (psettings == NULL)
return false;
if (!print_basic_run(c, &pdf_printer, psettings))
return false;
+
return true;
}