upgrade to xpdf 3.00.
[swftools.git] / pdf2swf / xpdf / config.h
blobbf6baf4bf985ad3b9482d2a5fdee557dd6a129fe
1 //========================================================================
2 //
3 // config.h
4 //
5 // Copyright 1996-2004 Glyph & Cog, LLC
6 //
7 //========================================================================
9 #ifndef CONFIG_H
10 #define CONFIG_H
12 //------------------------------------------------------------------------
13 // version
14 //------------------------------------------------------------------------
16 // xpdf version
17 #define xpdfVersion "3.00"
18 #define xpdfVersionNum 3.00
19 #define xpdfMajorVersion 3
20 #define xpdfMinorVersion 0
21 #define xpdfMajorVersionStr "3"
22 #define xpdfMinorVersionStr "0"
24 // supported PDF version
25 #define supportedPDFVersionStr "1.5"
26 #define supportedPDFVersionNum 1.5
28 // copyright notice
29 #define xpdfCopyright "Copyright 1996-2004 Glyph & Cog, LLC"
31 // Windows resource file stuff
32 #define winxpdfVersion "WinXpdf 3.00"
33 #define xpdfCopyrightAmp "Copyright 1996-2004 Glyph && Cog, LLC"
35 //------------------------------------------------------------------------
36 // paper size
37 //------------------------------------------------------------------------
39 // default paper size (in points) for PostScript output
40 #ifdef A4_PAPER
41 #define defPaperWidth 595 // ISO A4 (210x297 mm)
42 #define defPaperHeight 842
43 #else
44 #define defPaperWidth 612 // American letter (8.5x11")
45 #define defPaperHeight 792
46 #endif
48 //------------------------------------------------------------------------
49 // config file (xpdfrc) path
50 //------------------------------------------------------------------------
52 // user config file name, relative to the user's home directory
53 #if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
54 #define xpdfUserConfigFile "xpdfrc"
55 #else
56 #define xpdfUserConfigFile ".xpdfrc"
57 #endif
59 // system config file name (set via the configure script)
60 #ifdef SYSTEM_XPDFRC
61 #define xpdfSysConfigFile SYSTEM_XPDFRC
62 #else
63 // under Windows, we get the directory with the executable and then
64 // append this file name
65 #define xpdfSysConfigFile "xpdfrc"
66 #endif
68 //------------------------------------------------------------------------
69 // X-related constants
70 //------------------------------------------------------------------------
72 // default maximum size of color cube to allocate
73 #define defaultRGBCube 5
75 // number of fonts (combined t1lib, FreeType, X server) to cache
76 #define xOutFontCacheSize 64
78 // number of Type 3 fonts to cache
79 #define xOutT3FontCacheSize 8
81 //------------------------------------------------------------------------
82 // popen
83 //------------------------------------------------------------------------
85 #if defined(_MSC_VER) || defined(__BORLANDC__)
86 #define popen _popen
87 #define pclose _pclose
88 #endif
90 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
91 #define POPEN_READ_MODE "rb"
92 #else
93 #define POPEN_READ_MODE "r"
94 #endif
96 //------------------------------------------------------------------------
97 // Win32 stuff
98 //------------------------------------------------------------------------
100 #ifdef CDECL
101 #undef CDECL
102 #endif
104 #if defined(_MSC_VER) || defined(__BORLANDC__)
105 #define CDECL __cdecl
106 #else
107 #define CDECL
108 #endif
110 #endif