From 4bd83a37c63e9aff2938fed9192e815e9d0c1d66 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 13 Nov 2017 19:31:29 +0100 Subject: jni/js: Add support for annotation modification dates. --- include/mupdf/pdf/annot.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'include/mupdf') 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. -- cgit v1.2.3