Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
7858 views
1
#ifndef MUPDF_FITZ_ANNOTATION_H
2
#define MUPDF_FITZ_ANNOTATION_H
3
4
#include "mupdf/fitz/system.h"
5
#include "mupdf/fitz/context.h"
6
#include "mupdf/fitz/math.h"
7
#include "mupdf/fitz/document.h"
8
9
typedef enum
10
{
11
FZ_ANNOT_TEXT,
12
FZ_ANNOT_LINK,
13
FZ_ANNOT_FREETEXT,
14
FZ_ANNOT_LINE,
15
FZ_ANNOT_SQUARE,
16
FZ_ANNOT_CIRCLE,
17
FZ_ANNOT_POLYGON,
18
FZ_ANNOT_POLYLINE,
19
FZ_ANNOT_HIGHLIGHT,
20
FZ_ANNOT_UNDERLINE,
21
FZ_ANNOT_SQUIGGLY,
22
FZ_ANNOT_STRIKEOUT,
23
FZ_ANNOT_STAMP,
24
FZ_ANNOT_CARET,
25
FZ_ANNOT_INK,
26
FZ_ANNOT_POPUP,
27
FZ_ANNOT_FILEATTACHMENT,
28
FZ_ANNOT_SOUND,
29
FZ_ANNOT_MOVIE,
30
FZ_ANNOT_WIDGET,
31
FZ_ANNOT_SCREEN,
32
FZ_ANNOT_PRINTERMARK,
33
FZ_ANNOT_TRAPNET,
34
FZ_ANNOT_WATERMARK,
35
FZ_ANNOT_3D
36
} fz_annot_type;
37
38
/*
39
fz_get_annot_type: return the type of an annotation
40
*/
41
fz_annot_type fz_get_annot_type(fz_context *ctx, fz_annot *annot);
42
43
/*
44
fz_first_annot: Return a pointer to the first annotation on a page.
45
46
Does not throw exceptions.
47
*/
48
fz_annot *fz_first_annot(fz_context *ctx, fz_page *page);
49
50
/*
51
fz_next_annot: Return a pointer to the next annotation on a page.
52
53
Does not throw exceptions.
54
*/
55
fz_annot *fz_next_annot(fz_context *ctx, fz_page *page, fz_annot *annot);
56
57
/*
58
fz_bound_annot: Return the bounding rectangle of the annotation.
59
60
Does not throw exceptions.
61
*/
62
fz_rect *fz_bound_annot(fz_context *ctx, fz_page *page, fz_annot *annot, fz_rect *rect);
63
64
#endif
65
66