summaryrefslogtreecommitdiff
path: root/include/mupdf/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2018-03-03 11:18:36 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-03-16 14:51:41 +0100
commitf449fe60b01482b925fe09b75c4cf8aaa16b95cb (patch)
treefc5330315cb2058fd06eeadfcd4e51130e4874be /include/mupdf/pdf
parente26a2c26ede734978224294f7f77fd7f067eda53 (diff)
downloadmupdf-f449fe60b01482b925fe09b75c4cf8aaa16b95cb.tar.xz
Add annotation quadding accessor.
Diffstat (limited to 'include/mupdf/pdf')
-rw-r--r--include/mupdf/pdf/annot.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h
index c29b6c31..11ce0fba 100644
--- a/include/mupdf/pdf/annot.h
+++ b/include/mupdf/pdf/annot.h
@@ -62,6 +62,13 @@ enum pdf_line_ending
PDF_ANNOT_LE_SLASH
};
+enum
+{
+ PDF_ANNOT_Q_LEFT = 0,
+ PDF_ANNOT_Q_CENTER = 1,
+ PDF_ANNOT_Q_RIGHT = 2
+};
+
enum pdf_line_ending pdf_line_ending_from_name(fz_context *ctx, pdf_obj *end);
enum pdf_line_ending pdf_line_ending_from_string(fz_context *ctx, const char *end);
pdf_obj *pdf_name_from_line_ending(fz_context *ctx, enum pdf_line_ending end);
@@ -158,6 +165,7 @@ float pdf_annot_border(fz_context *ctx, pdf_annot *annot);
float pdf_annot_opacity(fz_context *ctx, pdf_annot *annot);
void pdf_annot_color(fz_context *ctx, pdf_annot *annot, int *n, float color[4]);
void pdf_annot_interior_color(fz_context *ctx, pdf_annot *annot, int *n, float color[4]);
+int pdf_annot_quadding(fz_context *ctx, pdf_annot *annot);
int pdf_annot_quad_point_count(fz_context *ctx, pdf_annot *annot);
void pdf_annot_quad_point(fz_context *ctx, pdf_annot *annot, int i, float qp[8]);
@@ -172,6 +180,7 @@ void pdf_set_annot_border(fz_context *ctx, pdf_annot *annot, float width);
void pdf_set_annot_opacity(fz_context *ctx, pdf_annot *annot, float opacity);
void pdf_set_annot_color(fz_context *ctx, pdf_annot *annot, int n, const float color[4]);
void pdf_set_annot_interior_color(fz_context *ctx, pdf_annot *annot, int n, const float color[4]);
+void pdf_set_annot_quadding(fz_context *ctx, pdf_annot *annot, int q);
void pdf_set_annot_quad_points(fz_context *ctx, pdf_annot *annot, int n, const float *v);
void pdf_clear_annot_quad_points(fz_context *ctx, pdf_annot *annot);