pdf_name_tree.h

Tue, 11 Mar 2003 11:14:39 +0000

author
eric
date
Tue, 11 Mar 2003 11:14:39 +0000
changeset 95
851a04fa5324
parent 85
dcfd1d4b5c24
child 125
e2ef1c2f9eca
permissions
-rw-r--r--

many bug fixes including bit ordering of output, search positions and polarities. added G4_DEBUG conditional.

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@85 7 * $Id: pdf_name_tree.h,v 1.2 2003/03/07 22:52:09 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@85 29 pdf_file_handle pdf_file;
eric@85 30 struct pdf_name_tree *next; /* chain all name trees in the PDF file */
eric@85 31 bool number_tree; /* false for name tree,
eric@85 32 true for number tree */
eric@80 33 struct pdf_name_tree_node *root;
eric@80 34 };
eric@80 35
eric@80 36
eric@80 37 struct pdf_name_tree *pdf_new_name_tree (pdf_file_handle pdf_file,
eric@80 38 bool number_tree);
eric@80 39
eric@80 40
eric@80 41 void pdf_add_name_tree_element (struct pdf_name_tree *tree,
eric@80 42 char *key,
eric@80 43 struct pdf_obj *val);
eric@80 44
eric@80 45
eric@80 46 void pdf_add_number_tree_element (struct pdf_name_tree *tree,
eric@80 47 long key,
eric@80 48 struct pdf_obj *val);
eric@80 49
eric@80 50
eric@85 51 void pdf_finalize_name_trees (pdf_file_handle pdf_file);