From aeed1e16e440cefbf5137eef7f4af608b0c70569 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Wed, 30 Jan 2013 16:49:43 +0000 Subject: Add support for annotation creation --- fitz/fitz-internal.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'fitz/fitz-internal.h') diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index 13fd94de..4839af7d 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -1194,6 +1194,24 @@ fz_pixmap *fz_render_stroked_glyph(fz_context *ctx, fz_font*, int, fz_matrix, fz void fz_render_t3_glyph_direct(fz_context *ctx, fz_device *dev, fz_font *font, int gid, fz_matrix trm, void *gstate, int nestedDepth); void fz_prepare_t3_glyph(fz_context *ctx, fz_font *font, int gid, int nestedDepth); +typedef enum +{ + FZ_ANNOT_STRIKEOUT +} fz_annot_type; + +/* + fz_create_annot: create a new annotation of the specified type on the + specified page. The returned pdf_annot structure is owned by the page + and does not need to be freed. +*/ +fz_annot *fz_create_annot(fz_interactive *idoc, fz_page *page, fz_annot_type type); + +/* + fz_set_annot_appearance: update the appearance of an annotation based + on a display list. +*/ +void fz_set_annot_appearance(fz_interactive *idoc, fz_annot *annot, fz_display_list *disp_list); + /* * Text buffer. * -- cgit v1.2.3