summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2014-02-25 11:18:53 +0000
committerPaul Gardiner <paul.gardiner@artifex.com>2014-02-25 11:18:53 +0000
commit3cc324ea9eaec9fdef84615dac325e55267d757c (patch)
tree21e87f2705c9d7801dab346330c4ecfe11d21cb0 /include
parenta1992d34bac1ab03a6f0bb6287fa00592172e0ce (diff)
downloadmupdf-3cc324ea9eaec9fdef84615dac325e55267d757c.tar.xz
Support text (aka sticky note) annotations
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/pdf/annot.h15
-rw-r--r--include/mupdf/pdf/appearance.h1
2 files changed, 16 insertions, 0 deletions
diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h
index 8519a6fa..01d872d9 100644
--- a/include/mupdf/pdf/annot.h
+++ b/include/mupdf/pdf/annot.h
@@ -106,6 +106,21 @@ void pdf_set_markup_annot_quadpoints(pdf_document *doc, pdf_annot *annot, fz_poi
void pdf_set_ink_annot_list(pdf_document *doc, pdf_annot *annot, fz_point *pts, int *counts, int ncount, float color[3], float thickness);
/*
+ pdf_set_text_annot_position: set the position on page for a text (sticky note) annotation.
+*/
+void pdf_set_text_annot_position(pdf_document *doc, pdf_annot *annot, fz_point pt);
+
+/*
+ pdf_set_annot_contents: set the contents of an annotation.
+*/
+void pdf_set_annot_contents(pdf_document *doc, pdf_annot *annot, char *text);
+
+/*
+ pdf_annot_contents: return the contents of an annotation.
+*/
+char *pdf_annot_contents(pdf_document *doc, pdf_annot *annot);
+
+/*
pdf_set_free_text_details: set the position, text, font and color for a free text annotation.
Only base 14 fonts are supported and are specified by name.
*/
diff --git a/include/mupdf/pdf/appearance.h b/include/mupdf/pdf/appearance.h
index 67650ca3..3cdfb103 100644
--- a/include/mupdf/pdf/appearance.h
+++ b/include/mupdf/pdf/appearance.h
@@ -18,6 +18,7 @@ void pdf_update_combobox_appearance(pdf_document *doc, pdf_obj *obj);
void pdf_update_pushbutton_appearance(pdf_document *doc, pdf_obj *obj);
void pdf_update_text_markup_appearance(pdf_document *doc, pdf_annot *annot, fz_annot_type type);
void pdf_update_ink_appearance(pdf_document *doc, pdf_annot *annot);
+void pdf_update_text_annot_appearance(pdf_document *doc, pdf_annot *annot);
/*
pdf_update_free_text_annot_appearance: update the appearance stream for a free text
annotation, basing it on the annoations rectangle and contents.