summaryrefslogtreecommitdiff
path: root/platform/java/src/com/artifex
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-11-13 19:31:29 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-11-22 23:09:51 +0100
commit4bd83a37c63e9aff2938fed9192e815e9d0c1d66 (patch)
treec4da78e07ffd3f2e641fc1ca103d4c432966b329 /platform/java/src/com/artifex
parented28a166dace50d1a555689b9d5353e62a1b1e69 (diff)
downloadmupdf-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.java10
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);