2002-08-30 09:14:01 +00:00
|
|
|
//========================================================================
|
|
|
|
//
|
|
|
|
// config.h
|
|
|
|
//
|
2003-08-20 21:25:12 +00:00
|
|
|
// Copyright 1996-2003 Glyph & Cog, LLC
|
2002-08-30 09:14:01 +00:00
|
|
|
//
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// version
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// xpdf version
|
2003-08-20 21:25:12 +00:00
|
|
|
#define xpdfVersion "2.02pl1"
|
|
|
|
#define xpdfVersionNum 2.02
|
2002-12-25 00:53:02 +00:00
|
|
|
#define xpdfMajorVersion 2
|
2003-08-20 21:25:12 +00:00
|
|
|
#define xpdfMinorVersion 2
|
2002-12-25 00:53:02 +00:00
|
|
|
#define xpdfMajorVersionStr "2"
|
2003-08-20 21:25:12 +00:00
|
|
|
#define xpdfMinorVersionStr "2"
|
2002-08-30 09:14:01 +00:00
|
|
|
|
|
|
|
// supported PDF version
|
|
|
|
#define supportedPDFVersionStr "1.4"
|
|
|
|
#define supportedPDFVersionNum 1.4
|
|
|
|
|
|
|
|
// copyright notice
|
2003-08-20 21:25:12 +00:00
|
|
|
#define xpdfCopyright "Copyright 1996-2003 Glyph & Cog, LLC"
|
2002-08-30 09:14:01 +00:00
|
|
|
|
2002-12-25 00:53:02 +00:00
|
|
|
// Windows resource file stuff
|
2003-08-20 21:25:12 +00:00
|
|
|
#define winxpdfVersion "WinXpdf 2.02"
|
|
|
|
#define xpdfCopyrightAmp "Copyright 1996-2003 Glyph && Cog, LLC"
|
2002-12-25 00:53:02 +00:00
|
|
|
|
2002-08-30 09:14:01 +00:00
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// paper size
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// default paper size (in points) for PostScript output
|
|
|
|
#ifdef A4_PAPER
|
|
|
|
#define defPaperWidth 595 // ISO A4 (210x297 mm)
|
|
|
|
#define defPaperHeight 842
|
|
|
|
#else
|
|
|
|
#define defPaperWidth 612 // American letter (8.5x11")
|
|
|
|
#define defPaperHeight 792
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// config file (xpdfrc) path
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// user config file name, relative to the user's home directory
|
|
|
|
#if defined(VMS) || (defined(WIN32) && !defined(__CYGWIN32__))
|
|
|
|
#define xpdfUserConfigFile "xpdfrc"
|
|
|
|
#else
|
|
|
|
#define xpdfUserConfigFile ".xpdfrc"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// system config file name (set via the configure script)
|
|
|
|
#ifdef SYSTEM_XPDFRC
|
|
|
|
#define xpdfSysConfigFile SYSTEM_XPDFRC
|
|
|
|
#else
|
|
|
|
// under Windows, we get the directory with the executable and then
|
|
|
|
// append this file name
|
|
|
|
#define xpdfSysConfigFile "xpdfrc"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// X-related constants
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// default maximum size of color cube to allocate
|
|
|
|
#define defaultRGBCube 5
|
|
|
|
|
|
|
|
// number of fonts (combined t1lib, FreeType, X server) to cache
|
|
|
|
#define xOutFontCacheSize 64
|
|
|
|
|
|
|
|
// number of Type 3 fonts to cache
|
|
|
|
#define xOutT3FontCacheSize 8
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// popen
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define popen _popen
|
|
|
|
#define pclose _pclose
|
|
|
|
#endif
|
|
|
|
|
2002-12-25 00:53:02 +00:00
|
|
|
#if defined(VMS) || defined(VMCMS) || defined(DOS) || defined(OS2) || defined(__EMX__) || defined(WIN32) || defined(__DJGPP__) || defined(MACOS)
|
2002-08-30 09:14:01 +00:00
|
|
|
#define POPEN_READ_MODE "rb"
|
|
|
|
#else
|
|
|
|
#define POPEN_READ_MODE "r"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
// Win32 stuff
|
|
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#ifdef CDECL
|
|
|
|
#undef CDECL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define CDECL __cdecl
|
|
|
|
#else
|
|
|
|
#define CDECL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|