pdf_name_tree.h

Fri, 07 Mar 2003 10:16:08 +0000

author
eric
date
Fri, 07 Mar 2003 10:16:08 +0000
changeset 80
96c64a7566df
child 85
dcfd1d4b5c24
permissions
-rw-r--r--

added name trees and number trees.

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