2 * << Haru Free PDF Library >> -- hpdf_encryptdict.h
4 * URL: http://libharu.org
6 * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
7 * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
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.
18 #ifndef _HPDF_ENCRYPTDICT_H
19 #define _HPDF_ENCRYPTDICT_H
21 #include "hpdf_objects.h"
27 /*---------------------------------------------------------------------------*/
28 /*------ HPDF_EncryptDict ---------------------------------------------------*/
31 HPDF_EncryptDict_New (HPDF_MMgr mmgr,
36 HPDF_EncryptDict_CreateID (HPDF_EncryptDict dict,
42 HPDF_EncryptDict_OnFree (HPDF_Dict obj);
46 HPDF_EncryptDict_SetPassword (HPDF_EncryptDict dict,
47 const char *owner_passwd,
48 const char *user_passwd);
52 HPDF_EncryptDict_Validate (HPDF_EncryptDict dict);
56 HPDF_EncryptDict_Prepare (HPDF_EncryptDict dict,
62 HPDF_EncryptDict_GetAttr (HPDF_EncryptDict dict);
66 #endif /* __cplusplus */
68 #endif /* _HPDF_ENCRYPTDICT_H */