1 //========================================================================
5 // Copyright 1996-2004 Glyph & Cog, LLC
7 //========================================================================
12 //------------------------------------------------------------------------
14 //------------------------------------------------------------------------
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
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 //------------------------------------------------------------------------
37 //------------------------------------------------------------------------
39 // default paper size (in points) for PostScript output
41 #define defPaperWidth 595 // ISO A4 (210x297 mm)
42 #define defPaperHeight 842
44 #define defPaperWidth 612 // American letter (8.5x11")
45 #define defPaperHeight 792
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"
56 #define xpdfUserConfigFile ".xpdfrc"
59 // system config file name (set via the configure script)
61 #define xpdfSysConfigFile SYSTEM_XPDFRC
63 // under Windows, we get the directory with the executable and then
64 // append this file name
65 #define xpdfSysConfigFile "xpdfrc"
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 //------------------------------------------------------------------------
83 //------------------------------------------------------------------------
85 #if defined(_MSC_VER) || defined(__BORLANDC__)
87 #define pclose _pclose
90 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
91 #define POPEN_READ_MODE "rb"
93 #define POPEN_READ_MODE "r"
96 //------------------------------------------------------------------------
98 //------------------------------------------------------------------------
104 #if defined(_MSC_VER) || defined(__BORLANDC__)
105 #define CDECL __cdecl