From ac84904af638b243284e24d5f401c3f1a21cb0ef Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Thu, 4 Jul 2013 12:11:20 +0100 Subject: Update pdf_write_document to support incremental update --- platform/x11/x11_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'platform/x11/x11_main.c') diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c index 481adce1..0bcb98f4 100644 --- a/platform/x11/x11_main.c +++ b/platform/x11/x11_main.c @@ -281,6 +281,17 @@ void winreplacefile(char *source, char *target) rename(source, target); } +void wincopyfile(char *source, char *target) +{ + char *buf = malloc(strlen(source)+strlen(target)+4); + if (buf) + { + sprintf(buf, "cp %s %s", source, target); + system(buf); + free(buf); + } +} + void cleanup(pdfapp_t *app) { fz_context *ctx = app->ctx; -- cgit v1.2.3