1.1 diff -r 4cd9d23d924a -r 96c64a7566df pdf_name_tree.h 1.2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 +++ b/pdf_name_tree.h Fri Mar 07 10:16:08 2003 +0000 1.4 @@ -0,0 +1,50 @@ 1.5 +/* 1.6 + * t2p: Create a PDF file from the contents of one or more TIFF 1.7 + * bilevel image files. The images in the resulting PDF file 1.8 + * will be compressed using ITU-T T.6 (G4) fax encoding. 1.9 + * 1.10 + * PDF routines 1.11 + * $Id: pdf_name_tree.h,v 1.1 2003/03/07 02:16:08 eric Exp $ 1.12 + * Copyright 2003 Eric Smith <eric@brouhaha.com> 1.13 + * 1.14 + * This program is free software; you can redistribute it and/or modify 1.15 + * it under the terms of the GNU General Public License version 2 as 1.16 + * published by the Free Software Foundation. Note that permission is 1.17 + * not granted to redistribute this program under the terms of any 1.18 + * other version of the General Public License. 1.19 + * 1.20 + * This program is distributed in the hope that it will be useful, 1.21 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 1.22 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1.23 + * GNU General Public License for more details. 1.24 + * 1.25 + * You should have received a copy of the GNU General Public License 1.26 + * along with this program; if not, write to the Free Software 1.27 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA 1.28 + */ 1.29 + 1.30 + 1.31 +struct pdf_name_tree 1.32 +{ 1.33 + pdf_file_handle pdf_file; 1.34 + bool number_tree; /* false for name tree, 1.35 + true for number tree */ 1.36 + struct pdf_name_tree_node *root; 1.37 +}; 1.38 + 1.39 + 1.40 +struct pdf_name_tree *pdf_new_name_tree (pdf_file_handle pdf_file, 1.41 + bool number_tree); 1.42 + 1.43 + 1.44 +void pdf_add_name_tree_element (struct pdf_name_tree *tree, 1.45 + char *key, 1.46 + struct pdf_obj *val); 1.47 + 1.48 + 1.49 +void pdf_add_number_tree_element (struct pdf_name_tree *tree, 1.50 + long key, 1.51 + struct pdf_obj *val); 1.52 + 1.53 + 1.54 +void pdf_finalize_name_tree (struct pdf_name_tree *tree);