diff options
Diffstat (limited to 'utils/pdftops.cc')
-rw-r--r-- | utils/pdftops.cc | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/utils/pdftops.cc b/utils/pdftops.cc index e77edde3..b055ec96 100644 --- a/utils/pdftops.cc +++ b/utils/pdftops.cc @@ -123,16 +123,12 @@ static bool quiet = false; static bool printVersion = false; static bool printHelp = false; static bool overprint = false; -#ifdef HAVE_SPLASH static GooString processcolorformatname; static SplashColorMode processcolorformat; static bool processcolorformatspecified = false; -# ifdef USE_CMS +#ifdef USE_CMS static GooString processcolorprofilename; static GfxLCMSProfilePtr processcolorprofile; -# endif -#endif -#ifdef USE_CMS static GooString defaultgrayprofilename; static GfxLCMSProfilePtr defaultgrayprofile; static GooString defaultrgbprofilename; @@ -164,13 +160,9 @@ static const ArgDesc argDesc[] = { { "-f", argInt, &firstPage, 0, "first page to { "-passfonts", argFlag, &fontPassthrough, 0, "don't substitute missing fonts" }, { "-aaRaster", argString, rasterAntialiasStr, sizeof(rasterAntialiasStr), "enable anti-aliasing on rasterization: yes, no" }, { "-rasterize", argString, forceRasterizeStr, sizeof(forceRasterizeStr), "control rasterization: always, never, whenneeded" }, -#ifdef HAVE_SPLASH { "-processcolorformat", argGooString, &processcolorformatname, 0, "color format that is used during rasterization and transparency reduction: MONO8, RGB8, CMYK8" }, -# ifdef USE_CMS - { "-processcolorprofile", argGooString, &processcolorprofilename, 0, "ICC color profile to use as the process color profile during rasterization and transparency reduction" }, -# endif -#endif #ifdef USE_CMS + { "-processcolorprofile", argGooString, &processcolorprofilename, 0, "ICC color profile to use as the process color profile during rasterization and transparency reduction" }, { "-defaultgrayprofile", argGooString, &defaultgrayprofilename, 0, "ICC color profile to use as the DefaultGray color space" }, { "-defaultrgbprofile", argGooString, &defaultrgbprofilename, 0, "ICC color profile to use as the DefaultRGB color space" }, { "-defaultcmykprofile", argGooString, &defaultcmykprofilename, 0, "ICC color profile to use as the DefaultCMYK color space" }, @@ -288,7 +280,6 @@ int main(int argc, char *argv[]) globalParams->setErrQuiet(quiet); } -#ifdef HAVE_SPLASH if (!processcolorformatname.toStr().empty()) { if (processcolorformatname.toStr() == "MONO8") { processcolorformat = splashModeMono8; @@ -305,7 +296,7 @@ int main(int argc, char *argv[]) } } -# ifdef USE_CMS +#ifdef USE_CMS if (!processcolorprofilename.toStr().empty()) { processcolorprofile = make_GfxLCMSProfilePtr(cmsOpenProfileFromFile(processcolorprofilename.c_str(), "r")); if (!processcolorprofile) { @@ -344,7 +335,7 @@ int main(int argc, char *argv[]) } } } -# endif +#endif if (processcolorformatspecified) { if (level1 && processcolorformat != splashModeMono8) { @@ -355,7 +346,6 @@ int main(int argc, char *argv[]) goto err1; } } -#endif #ifdef USE_CMS if (!defaultgrayprofilename.toStr().empty()) { @@ -484,14 +474,10 @@ int main(int argc, char *argv[]) if (splashResolution > 0) { psOut->setRasterResolution(splashResolution); } -#ifdef HAVE_SPLASH if (processcolorformatspecified) psOut->setProcessColorFormat(processcolorformat); -# ifdef USE_CMS - psOut->setDisplayProfile(processcolorprofile); -# endif -#endif #ifdef USE_CMS + psOut->setDisplayProfile(processcolorprofile); psOut->setDefaultGrayProfile(defaultgrayprofile); psOut->setDefaultRGBProfile(defaultrgbprofile); psOut->setDefaultCMYKProfile(defaultcmykprofile); |