pdf_name_tree.h

Fri, 14 Mar 2003 07:08:52 +0000

author
eric
date
Fri, 14 Mar 2003 07:08:52 +0000
changeset 130
d47b66e1722f
parent 125
e2ef1c2f9eca
child 131
4b8c80d77f76
permissions
-rw-r--r--

bookmarks should only be created for first page in a group.

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