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