hpdf_annotation.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * << Haru Free PDF Library >> -- hpdf_annotation.h
  3. *
  4. * URL: http://libharu.org
  5. *
  6. * Copyright (c) 1999-2006 Takeshi Kanno <[email protected]>
  7. * Copyright (c) 2007-2009 Antony Dovgal <[email protected]>
  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. #ifndef _HPDF_ANNOTATION_H
  18. #define _HPDF_ANNOTATION_H
  19. #include "hpdf_objects.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /*----------------------------------------------------------------------------*/
  24. /*------ HPDF_Annotation -----------------------------------------------------*/
  25. HPDF_Annotation
  26. HPDF_Annotation_New (HPDF_MMgr mmgr,
  27. HPDF_Xref xref,
  28. HPDF_AnnotType type,
  29. HPDF_Rect rect);
  30. HPDF_Annotation
  31. HPDF_LinkAnnot_New (HPDF_MMgr mmgr,
  32. HPDF_Xref xref,
  33. HPDF_Rect rect,
  34. HPDF_Destination dst);
  35. HPDF_Annotation
  36. HPDF_URILinkAnnot_New (HPDF_MMgr mmgr,
  37. HPDF_Xref xref,
  38. HPDF_Rect rect,
  39. const char *uri);
  40. HPDF_Annotation
  41. HPDF_3DAnnot_New (HPDF_MMgr mmgr,
  42. HPDF_Xref xref,
  43. HPDF_Rect rect,
  44. HPDF_U3D u3d);
  45. HPDF_Annotation
  46. HPDF_MarkupAnnot_New (HPDF_MMgr mmgr,
  47. HPDF_Xref xref,
  48. HPDF_Rect rect,
  49. const char *text,
  50. HPDF_Encoder encoder,
  51. HPDF_AnnotType subtype);
  52. HPDF_Annotation
  53. HPDF_PopupAnnot_New (HPDF_MMgr mmgr,
  54. HPDF_Xref xref,
  55. HPDF_Rect rect,
  56. HPDF_Annotation parent);
  57. HPDF_Annotation
  58. HPDF_StampAnnot_New (HPDF_MMgr mmgr,
  59. HPDF_Xref xref,
  60. HPDF_Rect rect,
  61. HPDF_StampAnnotName name,
  62. const char* text,
  63. HPDF_Encoder encoder);
  64. HPDF_Annotation
  65. HPDF_ProjectionAnnot_New (HPDF_MMgr mmgr,
  66. HPDF_Xref xref,
  67. HPDF_Rect rect,
  68. const char* text,
  69. HPDF_Encoder encoder);
  70. HPDF_BOOL
  71. HPDF_Annotation_Validate (HPDF_Annotation annot);
  72. #ifdef __cplusplus
  73. }
  74. #endif /* __cplusplus */
  75. #endif /* _HPDF_ANNOTATION_H */