1 //========================================================================
5 // Copyright 1996-2005 Glyph & Cog, LLC
7 //========================================================================
12 //------------------------------------------------------------------------
14 //------------------------------------------------------------------------
17 #define xpdfVersion "3.01"
18 #define xpdfVersionNum 3.01
19 #define xpdfMajorVersion 3
20 #define xpdfMinorVersion 1
21 #define xpdfUpdateVersion 0
22 #define xpdfMajorVersionStr "3"
23 #define xpdfMinorVersionStr "1"
24 #define xpdfUpdateVersionStr "0"
26 // supported PDF version
27 #define supportedPDFVersionStr "1.5"
28 #define supportedPDFVersionNum 1.5
31 #define xpdfCopyright "Copyright 1996-2005 Glyph & Cog, LLC"
33 // Windows resource file stuff
34 #define winxpdfVersion "WinXpdf 3.01"
35 #define xpdfCopyrightAmp "Copyright 1996-2005 Glyph && Cog, LLC"
37 //------------------------------------------------------------------------
39 //------------------------------------------------------------------------
41 // default paper size (in points) for PostScript output
43 #define defPaperWidth 595 // ISO A4 (210x297 mm)
44 #define defPaperHeight 842
46 #define defPaperWidth 612 // American letter (8.5x11")
47 #define defPaperHeight 792
50 //------------------------------------------------------------------------
51 // config file (xpdfrc) path
52 //------------------------------------------------------------------------
54 // user config file name, relative to the user's home directory
55 #if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
56 #define xpdfUserConfigFile "pdf2swf.conf"
58 #define xpdfUserConfigFile ".pdf2swf.conf"
61 // system config file name (set via the configure script)
63 #define xpdfSysConfigFile "/etc/pdf2swf.conf"
65 // under Windows, we get the directory with the executable and then
66 // append this file name
67 #define xpdfSysConfigFile "pdf2swf.conf"
70 //------------------------------------------------------------------------
71 // X-related constants
72 //------------------------------------------------------------------------
74 // default maximum size of color cube to allocate
75 #define defaultRGBCube 5
77 // number of fonts (combined t1lib, FreeType, X server) to cache
78 #define xOutFontCacheSize 64
80 // number of Type 3 fonts to cache
81 #define xOutT3FontCacheSize 8
83 //------------------------------------------------------------------------
85 //------------------------------------------------------------------------
87 #if defined(_MSC_VER) || defined(__BORLANDC__)
89 #define pclose _pclose
92 #if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
93 #define POPEN_READ_MODE "rb"
95 #define POPEN_READ_MODE "r"
98 //------------------------------------------------------------------------
100 //------------------------------------------------------------------------
106 #if defined(_MSC_VER) || defined(__BORLANDC__)
107 #define CDECL __cdecl