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