| 1 |
/* -*- C -*- |
| 2 |
//C- ------------------------------------------------------------------- |
| 3 |
//C- DjView4 |
| 4 |
//C- Copyright (c) 2006 Leon Bottou |
| 5 |
//C- |
| 6 |
//C- This software is subject to, and may be distributed under, the |
| 7 |
//C- GNU General Public License, either version 2 of the license, |
| 8 |
//C- or (at your option) any later version. The license should have |
| 9 |
//C- accompanied the software or you may obtain a copy of the license |
| 10 |
//C- from the Free Software Foundation at http://www.fsf.org . |
| 11 |
//C- |
| 12 |
//C- This program is distributed in the hope that it will be useful, |
| 13 |
//C- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
//C- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
//C- GNU General Public License for more details. |
| 16 |
//C- ------------------------------------------------------------------ |
| 17 |
*/ |
| 18 |
|
| 19 |
#ifndef TIFF2PDF_H |
| 20 |
# define TIFF2PDF_H |
| 21 |
# if HAVE_CONFIG_H || AUTOCONF |
| 22 |
# include "config.h" |
| 23 |
# endif |
| 24 |
# if HAVE_TIFF |
| 25 |
# include <stdio.h> |
| 26 |
# include <stddef.h> |
| 27 |
# include <stdlib.h> |
| 28 |
# include <tiff.h> |
| 29 |
# include <tiffio.h> |
| 30 |
# include <tiffconf.h> |
| 31 |
# ifdef TIFFLIB_VERSION |
| 32 |
# if TIFFLIB_VERSION > 20041104 |
| 33 |
# define HAVE_TIFF2PDF 1 |
| 34 |
# endif |
| 35 |
# endif |
| 36 |
# endif |
| 37 |
# if HAVE_TIFF2PDF |
| 38 |
# ifdef __cplusplus |
| 39 |
extern "C" { |
| 40 |
# endif |
| 41 |
int tiff2pdf(TIFF *input, FILE *output, int argc, const char **argv); |
| 42 |
# ifdef __cplusplus |
| 43 |
} |
| 44 |
# endif |
| 45 |
# endif /* HAVE_TIFF2PDF */ |
| 46 |
#endif /* TIFF2PDF_H */ |