summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-02-26 16:13:51 +0000
committerRobin Watts <robin.watts@artifex.com>2013-02-26 19:02:01 +0000
commit5bf497485a597a866bb5c149ef02f2b10b74e1ea (patch)
tree3fbe1e53eba034f300e718db52c31ad06abf5d9f /fitz
parentdf1f7eb75709a95fdf3838976ebdf49a46430c3b (diff)
downloadmupdf-5bf497485a597a866bb5c149ef02f2b10b74e1ea.tar.xz
Include required quadPoints entry in created markup annotations.
Also change the way we pass the text rectangles so that non-axis-aligned ones can be permitted, and relocate the code that calculates the strike-out lines from the bounding boxes
Diffstat (limited to 'fitz')
-rw-r--r--fitz/doc_interactive.c5
-rw-r--r--fitz/fitz-internal.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/fitz/doc_interactive.c b/fitz/doc_interactive.c
index bf08690a..c39cf05d 100644
--- a/fitz/doc_interactive.c
+++ b/fitz/doc_interactive.c
@@ -101,6 +101,11 @@ void fz_set_annot_appearance(fz_interactive *idoc, fz_annot *annot, fz_display_l
pdf_set_annot_appearance((pdf_document *)idoc, (pdf_annot *)annot, disp_list);
}
+void fz_set_markup_annot_quadpoints(fz_interactive *idoc, fz_annot *annot, fz_point *qp, int n)
+{
+ pdf_set_markup_annot_quadpoints((pdf_document *)idoc, (pdf_annot *)annot, qp, n);
+}
+
void fz_set_doc_event_callback(fz_interactive *idoc, fz_doc_event_cb *event_cb, void *data)
{
pdf_set_doc_event_callback((pdf_document *)idoc, event_cb, data);
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h
index 7f9beace..c1751fe9 100644
--- a/fitz/fitz-internal.h
+++ b/fitz/fitz-internal.h
@@ -1212,6 +1212,11 @@ void fz_delete_annot(fz_interactive *idoc, fz_page *page, fz_annot *annot);
void fz_set_annot_appearance(fz_interactive *idoc, fz_annot *annot, fz_display_list *disp_list);
/*
+ fz_set_markup_annot_quadpoints: set the quadpoints for a text-markup annotation.
+*/
+void fz_set_markup_annot_quadpoints(fz_interactive *idoc, fz_annot *annot, fz_point *qp, int n);
+
+/*
* Text buffer.
*
* The trm field contains the a, b, c and d coefficients.