hpdf_encryptdict.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * << Haru Free PDF Library >> -- hpdf_encryptdict.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_ENCRYPTDICT_H
  18. #define _HPDF_ENCRYPTDICT_H
  19. #include "hpdf_objects.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /*---------------------------------------------------------------------------*/
  24. /*------ HPDF_EncryptDict ---------------------------------------------------*/
  25. HPDF_EncryptDict
  26. HPDF_EncryptDict_New (HPDF_MMgr mmgr,
  27. HPDF_Xref xref);
  28. void
  29. HPDF_EncryptDict_CreateID (HPDF_EncryptDict dict,
  30. HPDF_Dict info,
  31. HPDF_Xref xref);
  32. void
  33. HPDF_EncryptDict_OnFree (HPDF_Dict obj);
  34. HPDF_STATUS
  35. HPDF_EncryptDict_SetPassword (HPDF_EncryptDict dict,
  36. const char *owner_passwd,
  37. const char *user_passwd);
  38. HPDF_BOOL
  39. HPDF_EncryptDict_Validate (HPDF_EncryptDict dict);
  40. HPDF_STATUS
  41. HPDF_EncryptDict_Prepare (HPDF_EncryptDict dict,
  42. HPDF_Dict info,
  43. HPDF_Xref xref);
  44. HPDF_Encrypt
  45. HPDF_EncryptDict_GetAttr (HPDF_EncryptDict dict);
  46. #ifdef __cplusplus
  47. }
  48. #endif /* __cplusplus */
  49. #endif /* _HPDF_ENCRYPTDICT_H */