From ee986e1d0acfc586a81aa593c72f9278077f3299 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 17 Feb 2009 16:37:51 +0000 Subject: 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 --- riscos/save_pdf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'riscos/save_pdf.c') diff --git a/riscos/save_pdf.c b/riscos/save_pdf.c index 456161692..4d553637b 100644 --- a/riscos/save_pdf.c +++ b/riscos/save_pdf.c @@ -27,6 +27,7 @@ #include "oslib/osfile.h" #include "content/content.h" #include "desktop/print.h" +#include "desktop/save_pdf/font_haru.h" #include "desktop/save_pdf/pdf_plotters.h" #include "riscos/save_pdf.h" #include "utils/log.h" @@ -43,13 +44,15 @@ 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; + xosfile_set_type(path, 0xadf); + return true; } -- cgit v1.2.3