Haru Free PDF Library
hpdf_encryptdict.h
Go to the documentation of this file.
1 /*
2  * << Haru Free PDF Library >> -- hpdf_encryptdict.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_ENCRYPTDICT_H
19 #define _HPDF_ENCRYPTDICT_H
20 
21 #include "hpdf_objects.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /*---------------------------------------------------------------------------*/
28 /*------ HPDF_EncryptDict ---------------------------------------------------*/
29 
32  HPDF_Xref xref);
33 
34 
35 void
37  HPDF_Dict info,
38  HPDF_Xref xref);
39 
40 
41 void
43 
44 
47  const char *owner_passwd,
48  const char *user_passwd);
49 
50 
53 
54 
57  HPDF_Dict info,
58  HPDF_Xref xref);
59 
60 
63 
64 #ifdef __cplusplus
65 }
66 #endif /* __cplusplus */
67 
68 #endif /* _HPDF_ENCRYPTDICT_H */
69 
HPDF_BOOL HPDF_EncryptDict_Validate(HPDF_EncryptDict dict)
void HPDF_EncryptDict_CreateID(HPDF_EncryptDict dict, HPDF_Dict info, HPDF_Xref xref)
HPDF_STATUS HPDF_EncryptDict_Prepare(HPDF_EncryptDict dict, HPDF_Dict info, HPDF_Xref xref)
void HPDF_EncryptDict_OnFree(HPDF_Dict obj)
HPDF_Encrypt HPDF_EncryptDict_GetAttr(HPDF_EncryptDict dict)
HPDF_EncryptDict HPDF_EncryptDict_New(HPDF_MMgr mmgr, HPDF_Xref xref)
HPDF_STATUS HPDF_EncryptDict_SetPassword(HPDF_EncryptDict dict, const char *owner_passwd, const char *user_passwd)
signed int HPDF_BOOL
Definition: hpdf_types.h:89
unsigned long HPDF_STATUS
Definition: hpdf_types.h:94
Definition: hpdf_objects.h:421
Definition: hpdf_encrypt.h:76
Definition: hpdf_mmgr.h:40
Definition: hpdf_objects.h:542