tumble.h

Fri, 14 Mar 2003 08:57:40 +0000

author
eric
date
Fri, 14 Mar 2003 08:57:40 +0000
changeset 133
76c197fe2eeb
parent 131
4b8c80d77f76
child 139
ec2a06d8a2a6
permissions
-rw-r--r--

specify page mode when file is closed rather than when it is initially created. if USE_OUTLINES but no bookmarks, use USE_NONE instead.

     1 /*
     2  * tumble: build a PDF file from image files
     3  *
     4  * $Id: tumble.h,v 1.15 2003/03/14 00:57:40 eric Exp $
     5  * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
     6  *
     7  * This program is free software; you can redistribute it and/or modify
     8  * it under the terms of the GNU General Public License version 2 as
     9  * published by the Free Software Foundation.  Note that permission is
    10  * not granted to redistribute this program under the terms of any
    11  * other version of the General Public License.
    12  *
    13  * This program is distributed in the hope that it will be useful,
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  * GNU General Public License for more details.
    17  *
    18  * You should have received a copy of the GNU General Public License
    19  * along with this program; if not, write to the Free Software
    20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA */
    23 extern int verbose;
    26 typedef struct
    27 {
    28   bool has_resolution;
    29   double x_resolution;
    30   double y_resolution;
    32   bool has_page_size;
    33   page_size_t page_size;
    35   bool has_rotation;
    36   int rotation;
    38   bool has_crop;
    39   crop_t crop;
    40 } input_attributes_t;
    42 bool open_tiff_input_file (char *name);
    43 bool close_tiff_input_file (void);
    46 typedef struct
    47 {
    48   char *author;
    49   char *creator;
    50   char *title;
    51   char *subject;
    52   char *keywords;
    53 } pdf_file_attributes_t;
    55 bool open_pdf_output_file (char *name,
    56 			   pdf_file_attributes_t *attributes);
    59 bool process_page (int image,  /* range 1 .. n */
    60 		   input_attributes_t input_attributes,
    61 		   bookmark_t *bookmarks,
    62 		   page_label_t *page_label);