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 /include/mupdf | |
parent | ed28a166dace50d1a555689b9d5353e62a1b1e69 (diff) | |
download | mupdf-4bd83a37c63e9aff2938fed9192e815e9d0c1d66.tar.xz |
jni/js: Add support for annotation modification dates.
Diffstat (limited to 'include/mupdf')
-rw-r--r-- | include/mupdf/pdf/annot.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h index e03ded3f..bebe77f7 100644 --- a/include/mupdf/pdf/annot.h +++ b/include/mupdf/pdf/annot.h @@ -205,11 +205,14 @@ char *pdf_copy_annot_author(fz_context *ctx, pdf_annot *annot); void pdf_set_annot_author(fz_context *ctx, pdf_annot *annot, const char *author); /* - pdf_annot_author: return the date of an annotation. + pdf_annot_modification_date: Get annotation's modification date in seconds since the epoch. */ -// TODO: creation date -// TODO: modification date -const char *pdf_annot_date(fz_context *ctx, pdf_annot *annot); +int pdf_annot_modification_date(fz_context *ctx, pdf_annot *annot); + +/* + pdf_set_annot_modification_date: Set annotation's modification date in seconds since the epoch. +*/ +void pdf_set_annot_modification_date(fz_context *ctx, pdf_annot *annot, int time); /* pdf_annot_irt: return the indirect reference that this annotation is in reply to. |