1
//========================================================================
5
// Copyright 1996 Derek B. Noonburg
7
//========================================================================
12
#include "extractor_util.h"
14
//------------------------------------------------------------------------
16
//------------------------------------------------------------------------
19
#define xpdfVersion "0.93"
21
// supported PDF version
22
#define supportedPDFVersionStr "1.4"
23
#define supportedPDFVersionNum 1.4
26
#define xpdfCopyright "Copyright 1996-2001 Derek B. Noonburg"
28
// default paper size (in points) for PostScript output
30
#define defPaperWidth 595 // ISO A4 (210x297 mm)
31
#define defPaperHeight 842
33
#define defPaperWidth 612 // American letter (8.5x11")
34
#define defPaperHeight 792
37
// user config file name, relative to the user's home directory
39
#define xpdfUserConfigFile "xpdfrc"
41
#define xpdfUserConfigFile ".xpdfrc"
44
#define xpdfSysConfigFile ".xpdfrc"
46
//------------------------------------------------------------------------
47
// X-related constants
48
//------------------------------------------------------------------------
50
// default maximum size of color cube to allocate
51
#define defaultRGBCube 5
53
// number of X server fonts to cache
54
#define serverFontCacheSize 16
56
// number of Type 1 (t1lib) fonts to cache
57
#define t1FontCacheSize 32
59
// number of TrueType (FreeType) fonts to cache
60
#define ttFontCacheSize 32
62
// number of FreeType (TrueType and Type 1) fonts to cache
63
#define ftFontCacheSize 32
65
//------------------------------------------------------------------------
67
//------------------------------------------------------------------------
71
#define pclose _pclose
74
#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(WIN32) || defined(__DJGPP__) || defined(__CYGWIN32__) || defined(MACOS)
75
#define POPEN_READ_MODE "rb"
77
#define POPEN_READ_MODE "r"
80
//------------------------------------------------------------------------
82
//------------------------------------------------------------------------
86
// command to uncompress to stdout
88
# define uncompressCmd "gzip -d -c -q"
91
# define uncompressCmd "compress -d -c"
93
# define uncompressCmd "uncompress -c"
99
// command to uncompress a file
101
# define uncompressCmd "gzip -d -q"
103
# define uncompressCmd "uncompress"
108
//------------------------------------------------------------------------
110
//------------------------------------------------------------------------
117
#define CDECL __cdecl