diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2012-11-26 16:36:18 +0000 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2012-11-27 10:40:23 +0000 |
commit | 4c2e89d670317b898ece971c7b4d111e473c9575 (patch) | |
tree | 64be7ca7253eab543e910d61c433282e5399de7d /apps/pdfapp.h | |
parent | eaaf501fa47616691ab10b151022b4c91cc210b4 (diff) | |
download | mupdf-4c2e89d670317b898ece971c7b4d111e473c9575.tar.xz |
Forms: avoid directly saving to the original file
MuPDF needs access to the original file when saving, and in any case
directly overwritting the original file has much more potential for
data loss than use of a temporary file.
Diffstat (limited to 'apps/pdfapp.h')
-rw-r--r-- | apps/pdfapp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/pdfapp.h b/apps/pdfapp.h index 2cdceb39..22e4ba67 100644 --- a/apps/pdfapp.h +++ b/apps/pdfapp.h @@ -40,11 +40,13 @@ extern int wingetsavepath(pdfapp_t*, char *buf, int len); extern void winalert(pdfapp_t *, fz_alert_event *alert); extern void winprint(pdfapp_t *); extern void winadvancetimer(pdfapp_t *, float duration); +extern void winreplacefile(char *source, char *target); struct pdfapp_s { /* current document params */ fz_document *doc; + char *docpath; char *doctitle; fz_outline *outline; |