summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gui.c6
-rw-r--r--riscos/save_pdf.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 3f7a60527..5ff558f5d 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -2399,3 +2399,9 @@ bool ro_gui_prequit(void)
{
return ro_gui_download_prequit();
}
+
+void PDF_Password(char **owner_pass, char **user_pass, char *path)
+{
+ /*TODO:this waits to be written, until then no PDF encryption*/
+ *owner_pass = NULL;
+}
diff --git a/riscos/save_pdf.c b/riscos/save_pdf.c
index 2a31b1edb..456161692 100644
--- a/riscos/save_pdf.c
+++ b/riscos/save_pdf.c
@@ -27,7 +27,7 @@
#include "oslib/osfile.h"
#include "content/content.h"
#include "desktop/print.h"
-#include "pdf/pdf_plotters.h"
+#include "desktop/save_pdf/pdf_plotters.h"
#include "riscos/save_pdf.h"
#include "utils/log.h"
#include "utils/config.h"
@@ -42,12 +42,11 @@
bool save_as_pdf(struct content *c, const char *path)
{
struct print_settings *psettings;
-
- psettings = print_make_settings(DEFAULT);
+
+ psettings = print_make_settings(DEFAULT, path);
if (psettings == NULL)
return false;
- psettings->output = path;
if (!print_basic_run(c, &pdf_printer, psettings))
return false;
xosfile_set_type(path, 0xadf);