1 //========================================================================
5 // Copyright 1996-2002 Glyph & Cog, LLC
7 //========================================================================
12 //------------------------------------------------------------------------
14 //------------------------------------------------------------------------
18 #define xpdfVersion "1.01"
20 // supported PDF version
21 #define supportedPDFVersionStr "1.4"
22 #define supportedPDFVersionNum 1.4
25 #define xpdfCopyright "Copyright 1996-2002 Glyph & Cog, LLC"
27 //------------------------------------------------------------------------
29 //------------------------------------------------------------------------
31 // default paper size (in points) for PostScript output
33 #define defPaperWidth 595 // ISO A4 (210x297 mm)
34 #define defPaperHeight 842
36 #define defPaperWidth 612 // American letter (8.5x11")
37 #define defPaperHeight 792
40 //------------------------------------------------------------------------
41 // config file (xpdfrc) path
42 //------------------------------------------------------------------------
44 // user config file name, relative to the user's home directory
45 #if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
46 #define xpdfUserConfigFile "xpdfrc"
48 #define xpdfUserConfigFile ".xpdfrc"
51 // system config file name (set via the configure script)
53 #define xpdfSysConfigFile SYSTEM_XPDFRC
55 // under Windows, we get the directory with the executable and then
56 // append this file name
57 #define xpdfSysConfigFile "xpdfrc"
60 //------------------------------------------------------------------------
61 // X-related constants
62 //------------------------------------------------------------------------
64 // default maximum size of color cube to allocate
65 #define defaultRGBCube 5
67 // number of fonts (combined t1lib, FreeType, X server) to cache
68 #define xOutFontCacheSize 64
70 // number of Type 3 fonts to cache
71 #define xOutT3FontCacheSize 8
73 //------------------------------------------------------------------------
75 //------------------------------------------------------------------------
79 #define pclose _pclose
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"
85 #define POPEN_READ_MODE "r"
88 //------------------------------------------------------------------------
90 //------------------------------------------------------------------------
94 // command to uncompress to stdout
96 # define uncompressCmd "gzip -d -c -q"
99 # define uncompressCmd "compress -d -c"
101 # define uncompressCmd "uncompress -c"
107 // command to uncompress a file
109 # define uncompressCmd "gzip -d -q"
111 # define uncompressCmd "uncompress"
116 //------------------------------------------------------------------------
118 //------------------------------------------------------------------------
125 #define CDECL __cdecl