diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/pdf/annot.h | 15 | ||||
-rw-r--r-- | include/mupdf/pdf/appearance.h | 1 |
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. |