diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2013-05-13 14:13:16 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-05-30 16:01:58 +0200 |
commit | 5a44698a2f51785e2cc08b55b4cf2aa22990b2ba (patch) | |
tree | 928092b5bab28dfbb330b3b4e9715b05fb16ecb7 /fitz | |
parent | 880149f48e58ac93697fd19a90df6b31a2242659 (diff) | |
download | mupdf-5a44698a2f51785e2cc08b55b4cf2aa22990b2ba.tar.xz |
Add functions to return digital signature info
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/doc_interactive.c | 10 | ||||
-rw-r--r-- | fitz/fitz.h | 13 |
2 files changed, 22 insertions, 1 deletions
diff --git a/fitz/doc_interactive.c b/fitz/doc_interactive.c index 10d48129..c9cdf6aa 100644 --- a/fitz/doc_interactive.c +++ b/fitz/doc_interactive.c @@ -81,6 +81,16 @@ void fz_choice_widget_set_value(fz_interactive *idoc, fz_widget *tw, int n, char pdf_choice_widget_set_value((pdf_document *)idoc, tw, n, opts); } +int fz_signature_widget_byte_range(fz_interactive *idoc, fz_widget *widget, int (*byte_range)[2]) +{ + return pdf_signature_widget_byte_range((pdf_document *)idoc, widget, byte_range); +} + +int fz_signature_widget_contents(fz_interactive *idoc, fz_widget *widget, char **contents) +{ + return pdf_signature_widget_contents((pdf_document *)idoc, widget, contents); +} + fz_annot_type fz_get_annot_type(fz_annot *annot) { return pdf_annot_type((pdf_annot *)annot); diff --git a/fitz/fitz.h b/fitz/fitz.h index fd999421..70da29d7 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -3032,7 +3032,8 @@ enum FZ_WIDGET_TYPE_RADIOBUTTON, FZ_WIDGET_TYPE_TEXT, FZ_WIDGET_TYPE_LISTBOX, - FZ_WIDGET_TYPE_COMBOBOX + FZ_WIDGET_TYPE_COMBOBOX, + FZ_WIDGET_TYPE_SIGNATURE }; /* Types of text widget content */ @@ -3227,6 +3228,16 @@ int fz_choice_widget_value(fz_interactive *idoc, fz_widget *tw, char *opts[]); void fz_choice_widget_set_value(fz_interactive *idoc, fz_widget *tw, int n, char *opts[]); /* + fz_signature_widget_byte_range: retrieve the byte range for a signature widget +*/ +int fz_signature_widget_byte_range(fz_interactive *idoc, fz_widget *widget, int (*byte_range)[2]); + +/* + fz_signature_widget_contents: retrieve the contents for a signature widget +*/ +int fz_signature_widget_contents(fz_interactive *idoc, fz_widget *widget, char **contents); + +/* Document events: the objects via which MuPDF informs the calling app of occurrences emanating from the document, possibly from user interaction or javascript execution. MuPDF informs the app of document events via a |