summaryrefslogtreecommitdiff
path: root/platform/java/src/com/artifex
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-07-23 16:34:32 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-08-02 02:20:45 +0800
commit147ce438ceb89649028e953bd7456c1fdfd79de2 (patch)
tree6238ecbabe760b893e1908476010af6a29b9feeb /platform/java/src/com/artifex
parent6d07cc05e97df6b756641cdd24179cfa9934ee41 (diff)
downloadmupdf-147ce438ceb89649028e953bd7456c1fdfd79de2.tar.xz
JNI: Add/change PDFDocument.save() related methods.
Added methods: * PDFDocument.hasUnsavedChanges() * PDFDocument.canBeSavedIncrementally() The interface for PDFDocument.save() now returns the number of errors encountered while saving.
Diffstat (limited to 'platform/java/src/com/artifex')
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java b/platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java
index 507546c5..93fd5ebe 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java
@@ -75,6 +75,8 @@ public class PDFDocument
public native PDFObject addImage(Image image);
public native PDFObject addSimpleFont(Font font);
public native PDFObject addFont(Font font);
- public native void save(String filename, String options);
+ public native boolean hasUnsavedChanges();
+ public native boolean canBeSavedIncrementally();
+ public native int save(String filename, String options);
}