~ubuntu-branches/ubuntu/hoary/libextractor/hoary

« back to all changes in this revision

Viewing changes to src/plugins/pdf/config.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2004-10-30 23:50:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041030235000-poix4e5mzhmzkpbk
Tags: 0.3.10-2
* Added fix from cvs for various Sparc64 problems (Closes #278905).
* Added workaround from cvs for re-load glib problem of OLE2 extractor.
* debian/watch added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//========================================================================
2
 
//
3
 
// config.h
4
 
//
5
 
// Copyright 1996 Derek B. Noonburg
6
 
//
7
 
//========================================================================
8
 
 
9
 
#ifndef CONFIG_H
10
 
#define CONFIG_H
11
 
 
12
 
#include "extractor_util.h"
13
 
 
14
 
//------------------------------------------------------------------------
15
 
// general constants
16
 
//------------------------------------------------------------------------
17
 
 
18
 
// xpdf version
19
 
#define xpdfVersion "0.93"
20
 
 
21
 
// supported PDF version
22
 
#define supportedPDFVersionStr "1.4"
23
 
#define supportedPDFVersionNum 1.4
24
 
 
25
 
// copyright notice
26
 
#define xpdfCopyright "Copyright 1996-2001 Derek B. Noonburg"
27
 
 
28
 
// default paper size (in points) for PostScript output
29
 
#ifdef A4_PAPER
30
 
#define defPaperWidth  595    // ISO A4 (210x297 mm)
31
 
#define defPaperHeight 842
32
 
#else
33
 
#define defPaperWidth  612    // American letter (8.5x11")
34
 
#define defPaperHeight 792
35
 
#endif
36
 
 
37
 
// user config file name, relative to the user's home directory
38
 
#if defined(VMS)
39
 
#define xpdfUserConfigFile "xpdfrc"
40
 
#else
41
 
#define xpdfUserConfigFile ".xpdfrc"
42
 
#endif
43
 
 
44
 
#define xpdfSysConfigFile ".xpdfrc"
45
 
 
46
 
//------------------------------------------------------------------------
47
 
// X-related constants
48
 
//------------------------------------------------------------------------
49
 
 
50
 
// default maximum size of color cube to allocate
51
 
#define defaultRGBCube 5
52
 
 
53
 
// number of X server fonts to cache
54
 
#define serverFontCacheSize 16
55
 
 
56
 
// number of Type 1 (t1lib) fonts to cache
57
 
#define t1FontCacheSize 32
58
 
 
59
 
// number of TrueType (FreeType) fonts to cache
60
 
#define ttFontCacheSize 32
61
 
 
62
 
// number of FreeType (TrueType and Type 1) fonts to cache
63
 
#define ftFontCacheSize 32
64
 
 
65
 
//------------------------------------------------------------------------
66
 
// popen
67
 
//------------------------------------------------------------------------
68
 
 
69
 
#ifdef _MSC_VER
70
 
#define popen _popen
71
 
#define pclose _pclose
72
 
#endif
73
 
 
74
 
#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(WIN32) || defined(__DJGPP__) || defined(__CYGWIN32__) || defined(MACOS)
75
 
#define POPEN_READ_MODE "rb"
76
 
#else
77
 
#define POPEN_READ_MODE "r"
78
 
#endif
79
 
 
80
 
//------------------------------------------------------------------------
81
 
// uncompress program
82
 
//------------------------------------------------------------------------
83
 
 
84
 
#ifdef HAVE_POPEN
85
 
 
86
 
// command to uncompress to stdout
87
 
#  ifdef USE_GZIP
88
 
#    define uncompressCmd "gzip -d -c -q"
89
 
#  else
90
 
#    ifdef __EMX__
91
 
#      define uncompressCmd "compress -d -c"
92
 
#    else
93
 
#      define uncompressCmd "uncompress -c"
94
 
#    endif // __EMX__
95
 
#  endif // USE_GZIP
96
 
 
97
 
#else // HAVE_POPEN
98
 
 
99
 
// command to uncompress a file
100
 
#  ifdef USE_GZIP
101
 
#    define uncompressCmd "gzip -d -q"
102
 
#  else
103
 
#    define uncompressCmd "uncompress"
104
 
#  endif // USE_GZIP
105
 
 
106
 
#endif // HAVE_POPEN
107
 
 
108
 
//------------------------------------------------------------------------
109
 
// Win32 stuff
110
 
//------------------------------------------------------------------------
111
 
 
112
 
#ifdef CDECL
113
 
#undef CDECL
114
 
#endif
115
 
 
116
 
#ifdef _MSC_VER
117
 
#define CDECL __cdecl
118
 
#else
119
 
#define CDECL
120
 
#endif
121
 
 
122
 
#endif