t2p.h

changeset 125
e2ef1c2f9eca
parent 124
ba64dfca82e9
child 126
4089ff3b927c
     1.1 --- a/t2p.h	Thu Mar 13 08:03:11 2003 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,71 +0,0 @@
     1.4 -/*
     1.5 - * t2p: Create a PDF file from the contents of one or more TIFF
     1.6 - *      bilevel image files.  The images in the resulting PDF file
     1.7 - *      will be compressed using ITU-T T.6 (G4) fax encoding.
     1.8 - *
     1.9 - * $Id: t2p.h,v 1.12 2003/03/12 23:59:10 eric Exp $
    1.10 - * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
    1.11 - *
    1.12 - * This program is free software; you can redistribute it and/or modify
    1.13 - * it under the terms of the GNU General Public License version 2 as
    1.14 - * published by the Free Software Foundation.  Note that permission is
    1.15 - * not granted to redistribute this program under the terms of any
    1.16 - * other version of the General Public License.
    1.17 - *
    1.18 - * This program is distributed in the hope that it will be useful,
    1.19 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.20 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.21 - * GNU General Public License for more details.
    1.22 - *
    1.23 - * You should have received a copy of the GNU General Public License
    1.24 - * along with this program; if not, write to the Free Software
    1.25 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA */
    1.26 -
    1.27 -
    1.28 -extern int verbose;
    1.29 -
    1.30 -
    1.31 -typedef struct
    1.32 -{
    1.33 -  bool has_resolution;
    1.34 -  double x_resolution;
    1.35 -  double y_resolution;
    1.36 -
    1.37 -  bool has_page_size;
    1.38 -  page_size_t page_size;
    1.39 -
    1.40 -  bool has_rotation;
    1.41 -  int rotation;
    1.42 -
    1.43 -  bool has_crop;
    1.44 -  crop_t crop;
    1.45 -} input_attributes_t;
    1.46 -
    1.47 -bool open_tiff_input_file (char *name);
    1.48 -bool close_tiff_input_file (void);
    1.49 -
    1.50 -
    1.51 -typedef struct
    1.52 -{
    1.53 -  char *author;
    1.54 -  char *creator;
    1.55 -  char *title;
    1.56 -  char *subject;
    1.57 -  char *keywords;
    1.58 -  bool has_bookmarks;
    1.59 -} pdf_file_attributes_t;
    1.60 -
    1.61 -bool open_pdf_output_file (char *name,
    1.62 -			   pdf_file_attributes_t *attributes);
    1.63 -
    1.64 -
    1.65 -void process_page_numbers (int page_index,
    1.66 -			   int count,
    1.67 -			   int base,
    1.68 -			   page_label_t *page_label);
    1.69 -
    1.70 -
    1.71 -
    1.72 -bool process_page (int image,  /* range 1 .. n */
    1.73 -		   input_attributes_t input_attributes,
    1.74 -		   bookmark_t *bookmarks);