1 /* 2 * << Haru Free PDF Library >> -- hpdf_annotation.h 3 * 4 * URL: http://libharu.org 5 * 6 * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp> 7 * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org> 8 * 9 * Permission to use, copy, modify, distribute and sell this software 10 * and its documentation for any purpose is hereby granted without fee, 11 * provided that the above copyright notice appear in all copies and 12 * that both that copyright notice and this permission notice appear 13 * in supporting documentation. 14 * It is provided "as is" without express or implied warranty. 15 * 16 */ 17 18 #ifndef _HPDF_ANNOTATION_H 19 #define _HPDF_ANNOTATION_H 20 21 #include "hpdf_objects.h" 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 /*----------------------------------------------------------------------------*/ 28 /*------ HPDF_Annotation -----------------------------------------------------*/ 29 30 31 HPDF_Annotation 32 HPDF_Annotation_New (HPDF_MMgr mmgr, 33 HPDF_Xref xref, 34 HPDF_AnnotType type, 35 HPDF_Rect rect); 36 37 38 HPDF_Annotation 39 HPDF_LinkAnnot_New (HPDF_MMgr mmgr, 40 HPDF_Xref xref, 41 HPDF_Rect rect, 42 HPDF_Destination dst); 43 44 45 HPDF_Annotation 46 HPDF_URILinkAnnot_New (HPDF_MMgr mmgr, 47 HPDF_Xref xref, 48 HPDF_Rect rect, 49 const char *uri); 50 51 52 HPDF_Annotation 53 HPDF_3DAnnot_New (HPDF_MMgr mmgr, 54 HPDF_Xref xref, 55 HPDF_Rect rect, 56 HPDF_U3D u3d); 57 58 HPDF_Annotation 59 HPDF_MarkupAnnot_New (HPDF_MMgr mmgr, 60 HPDF_Xref xref, 61 HPDF_Rect rect, 62 const char *text, 63 HPDF_Encoder encoder, 64 HPDF_AnnotType subtype); 65 66 HPDF_Annotation 67 HPDF_PopupAnnot_New (HPDF_MMgr mmgr, 68 HPDF_Xref xref, 69 HPDF_Rect rect, 70 HPDF_Annotation parent); 71 72 HPDF_Annotation 73 HPDF_StampAnnot_New (HPDF_MMgr mmgr, 74 HPDF_Xref xref, 75 HPDF_Rect rect, 76 HPDF_StampAnnotName name, 77 const char* text, 78 HPDF_Encoder encoder); 79 80 HPDF_Annotation 81 HPDF_ProjectionAnnot_New (HPDF_MMgr mmgr, 82 HPDF_Xref xref, 83 HPDF_Rect rect, 84 const char* text, 85 HPDF_Encoder encoder); 86 87 HPDF_BOOL 88 HPDF_Annotation_Validate (HPDF_Annotation annot); 89 90 #ifdef __cplusplus 91 } 92 #endif /* __cplusplus */ 93 94 #endif /* _HPDF_ANNOTATION_H */ 95