3 This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
5 Copyright (C) 2007-2012 by Jin-Hwan Cho and Shunsaku Hirata,
6 the dvipdfmx project team.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 #ifndef _PDFENCRYPT_H_
24 #define _PDFENCRYPT_H_
28 #define MAX_PWD_LEN 128
30 extern void pdf_enc_set_verbose (void);
31 extern pdf_obj *pdf_enc_id_array (void);
32 extern void pdf_enc_compute_id_string (char *dviname, char *pdfname);
33 extern void pdf_enc_set_label (unsigned long label);
34 extern void pdf_enc_set_generation (unsigned generation);
35 extern void pdf_enc_set_passwd (unsigned size, unsigned perm, const char *owner, const char *user);
36 extern void pdf_encrypt_data (unsigned char *data, unsigned long len);
37 extern pdf_obj *pdf_encrypt_obj (void);
39 #endif /* _PDFENCRYPT_H_ */