1
0
mirror of synced 2026-01-13 15:27:55 +00:00
2003-01-21 18:30:49 +00:00

71 lines
1.8 KiB
C

/*
* t2p: Create a PDF file from the contents of one or more TIFF
* bilevel image files. The images in the resulting PDF file
* will be compressed using ITU-T T.6 (G4) fax encoding.
*
* $Id: t2p.h,v 1.11 2003/01/21 10:30:49 eric Exp $
* Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation. Note that permission is
* not granted to redistribute this program under the terms of any
* other version of the General Public License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA */
extern int verbose;
typedef struct
{
bool has_resolution;
double x_resolution;
double y_resolution;
bool has_page_size;
page_size_t page_size;
bool has_rotation;
int rotation;
bool has_crop;
crop_t crop;
} input_attributes_t;
bool open_tiff_input_file (char *name);
bool close_tiff_input_file (void);
typedef struct
{
char *author;
char *creator;
char *title;
char *subject;
char *keywords;
} pdf_file_attributes_t;
bool open_pdf_output_file (char *name,
pdf_file_attributes_t *attributes);
void process_page_numbers (int page_index,
int count,
int base,
page_label_t *page_label);
bool process_page (int image, /* range 1 .. n */
input_attributes_t input_attributes,
bookmark_t *bookmarks);