pdf_private.h

Thu, 13 Mar 2003 07:59:10 +0000

author
eric
date
Thu, 13 Mar 2003 07:59:10 +0000
changeset 121
e50c7f76f2f6
parent 85
dcfd1d4b5c24
child 125
e2ef1c2f9eca
permissions
-rw-r--r--

don't use page mode USE_OUTLINES if there are no outline entries.

     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_private.h,v 1.6 2003/03/07 22:52:09 eric Exp $
     8  * Copyright 2001, 2002, 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_page
    28 {
    29   pdf_file_handle pdf_file;
    30   struct pdf_obj *page_dict;
    31   struct pdf_obj *media_box;
    32   struct pdf_obj *procset;
    33   struct pdf_obj *resources;
    35   char last_XObject_name;
    36   struct pdf_obj *XObject_dict;
    37 };
    40 struct pdf_pages
    41 {
    42   struct pdf_obj *pages_dict;
    43   struct pdf_obj *kids;
    44   struct pdf_obj *count;
    45 };
    48 struct pdf_file
    49 {
    50   FILE                 *f;
    51   struct pdf_obj       *first_ind_obj;
    52   struct pdf_obj       *last_ind_obj;
    53   long int              xref_offset;
    54   struct pdf_obj       *catalog;
    55   struct pdf_obj       *info;
    56   struct pdf_pages     *root;
    57   struct pdf_bookmark  *outline_root;
    58   struct pdf_obj       *trailer_dict;
    59   struct pdf_name_tree *name_tree_list;
    60 };