Thu, 13 Mar 2003 08:57:05 +0000
changed program name from t2p to tumble.
1 /*
2 * tumble: build a PDF file from image files
3 *
4 * PDF routines
5 * $Id: pdf_name_tree.h,v 1.3 2003/03/13 00:57:05 eric Exp $
6 * Copyright 2003 Eric Smith <eric@brouhaha.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation. Note that permission is
11 * not granted to redistribute this program under the terms of any
12 * other version of the General Public License.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
22 */
25 struct pdf_name_tree
26 {
27 pdf_file_handle pdf_file;
28 struct pdf_name_tree *next; /* chain all name trees in the PDF file */
29 bool number_tree; /* false for name tree,
30 true for number tree */
31 struct pdf_name_tree_node *root;
32 };
35 struct pdf_name_tree *pdf_new_name_tree (pdf_file_handle pdf_file,
36 bool number_tree);
39 void pdf_add_name_tree_element (struct pdf_name_tree *tree,
40 char *key,
41 struct pdf_obj *val);
44 void pdf_add_number_tree_element (struct pdf_name_tree *tree,
45 long key,
46 struct pdf_obj *val);
49 void pdf_finalize_name_trees (pdf_file_handle pdf_file);