forked from brouhaha/tumble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdf_private.h
58 lines (51 loc) · 1.61 KB
/
pdf_private.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* tumble: build a PDF file from image files
*
* PDF routines
* Copyright 2001, 2002, 2003, 2017 Eric Smith <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. Note that permission is
* not granted to redistribute this program under the terms of any
* other version of the General Public License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
*/
struct pdf_page
{
pdf_file_handle pdf_file;
pdf_obj_handle page_dict;
pdf_obj_handle media_box;
pdf_obj_handle procset;
pdf_obj_handle resources;
char last_XObject_name;
pdf_obj_handle XObject_dict;
};
struct pdf_pages
{
pdf_obj_handle pages_dict;
pdf_obj_handle kids;
pdf_obj_handle count;
};
struct pdf_file
{
FILE *f;
pdf_obj_handle first_ind_obj;
pdf_obj_handle last_ind_obj;
long int xref_offset;
pdf_obj_handle catalog;
pdf_obj_handle info;
struct pdf_pages *root;
struct pdf_bookmark *outline_root;
pdf_obj_handle trailer_dict;
struct pdf_name_tree *page_label_tree;
struct pdf_name_tree *name_tree_list;
};