hpdf_namedict.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * << Haru Free PDF Library >> -- hpdf_namedict.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_NAMEDICT_H
  18. #define _HPDF_NAMEDICT_H
  19. #include "hpdf_objects.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. HPDF_NameDict
  24. HPDF_NameDict_New (HPDF_MMgr mmgr,
  25. HPDF_Xref xref);
  26. HPDF_NameTree
  27. HPDF_NameDict_GetNameTree (HPDF_NameDict namedict,
  28. HPDF_NameDictKey key);
  29. HPDF_STATUS
  30. HPDF_NameDict_SetNameTree (HPDF_NameDict namedict,
  31. HPDF_NameDictKey key,
  32. HPDF_NameTree tree);
  33. HPDF_BOOL
  34. HPDF_NameDict_Validate (HPDF_NameDict namedict);
  35. /*------- NameTree -------*/
  36. HPDF_NameTree
  37. HPDF_NameTree_New (HPDF_MMgr mmgr,
  38. HPDF_Xref xref);
  39. HPDF_STATUS
  40. HPDF_NameTree_Add (HPDF_NameTree tree,
  41. HPDF_String name,
  42. void *obj);
  43. HPDF_BOOL
  44. HPDF_NameTree_Validate (HPDF_NameTree tree);
  45. /*------- EmbeddedFile -------*/
  46. HPDF_EmbeddedFile
  47. HPDF_EmbeddedFile_New (HPDF_MMgr mmgr,
  48. HPDF_Xref xref,
  49. const char *file);
  50. HPDF_BOOL
  51. HPDF_EmbeddedFile_Validate (HPDF_EmbeddedFile emfile);
  52. #ifdef __cplusplus
  53. }
  54. #endif /* __cplusplus */
  55. #endif /* _HPDF_NAMEDICT_H */