diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-11-13 19:31:29 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-11-22 23:09:51 +0100 |
commit | 4bd83a37c63e9aff2938fed9192e815e9d0c1d66 (patch) | |
tree | c4da78e07ffd3f2e641fc1ca103d4c432966b329 /platform/java/src/com/artifex | |
parent | ed28a166dace50d1a555689b9d5353e62a1b1e69 (diff) | |
download | mupdf-4bd83a37c63e9aff2938fed9192e815e9d0c1d66.tar.xz |
jni/js: Add support for annotation modification dates.
Diffstat (limited to 'platform/java/src/com/artifex')
-rw-r--r-- | platform/java/src/com/artifex/mupdf/fitz/PDFAnnotation.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/PDFAnnotation.java b/platform/java/src/com/artifex/mupdf/fitz/PDFAnnotation.java index f836a601..52a433de 100644 --- a/platform/java/src/com/artifex/mupdf/fitz/PDFAnnotation.java +++ b/platform/java/src/com/artifex/mupdf/fitz/PDFAnnotation.java @@ -1,5 +1,7 @@ package com.artifex.mupdf.fitz; +import java.util.Date; + public class PDFAnnotation extends Annotation { static { @@ -62,6 +64,14 @@ public class PDFAnnotation extends Annotation public native void setInteriorColor(float[] color); public native String getAuthor(); public native void setAuthor(String author); + protected native long getModificationDateNative(); + protected native void setModificationDate(long time); + public Date getModificationDate() { + return new Date(getModificationDateNative()); + } + public void setModificationDate(Date date) { + setModificationDate(date.getTime()); + } public native int[] getLineEndingStyles(); public native void setLineEndingStyles(int startStyle, int endStyle); |