Thu, 13 Mar 2003 07:59:10 +0000
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 * $Id: tumble.h,v 1.12 2003/03/12 23:59:10 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 bool has_bookmarks;
56 } pdf_file_attributes_t;
58 bool open_pdf_output_file (char *name,
59 pdf_file_attributes_t *attributes);
62 void process_page_numbers (int page_index,
63 int count,
64 int base,
65 page_label_t *page_label);
69 bool process_page (int image, /* range 1 .. n */
70 input_attributes_t input_attributes,
71 bookmark_t *bookmarks);