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