t2p.h

Fri, 21 Feb 2003 08:49:11 +0000

author
eric
date
Fri, 21 Feb 2003 08:49:11 +0000
changeset 63
6eddf63aa517
parent 49
be20d7e8466f
child 121
e50c7f76f2f6
permissions
-rw-r--r--

GPL.

     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  * $Id: t2p.h,v 1.11 2003/01/21 10:30:49 eric Exp $
     7  * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
     8  *
     9  * This program is free software; you can redistribute it and/or modify
    10  * it under the terms of the GNU General Public License version 2 as
    11  * published by the Free Software Foundation.  Note that permission is
    12  * not granted to redistribute this program under the terms of any
    13  * other version of the General Public License.
    14  *
    15  * This program is distributed in the hope that it will be useful,
    16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    18  * GNU General Public License for more details.
    19  *
    20  * You should have received a copy of the GNU General Public License
    21  * along with this program; if not, write to the Free Software
    22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA */
    25 extern int verbose;
    28 typedef struct
    29 {
    30   bool has_resolution;
    31   double x_resolution;
    32   double y_resolution;
    34   bool has_page_size;
    35   page_size_t page_size;
    37   bool has_rotation;
    38   int rotation;
    40   bool has_crop;
    41   crop_t crop;
    42 } input_attributes_t;
    44 bool open_tiff_input_file (char *name);
    45 bool close_tiff_input_file (void);
    48 typedef struct
    49 {
    50   char *author;
    51   char *creator;
    52   char *title;
    53   char *subject;
    54   char *keywords;
    55 } pdf_file_attributes_t;
    57 bool open_pdf_output_file (char *name,
    58 			   pdf_file_attributes_t *attributes);
    61 void process_page_numbers (int page_index,
    62 			   int count,
    63 			   int base,
    64 			   page_label_t *page_label);
    68 bool process_page (int image,  /* range 1 .. n */
    69 		   input_attributes_t input_attributes,
    70 		   bookmark_t *bookmarks);