1 *three* poppler config headers
3 mkdir build && cd build && cmake .. -DENABLE_DCTDECODER=libjpeg -DHAVE_CAIRO=off -DENABLE_LIBOPENJPEG=none -DENABLE_CMS=none -DENABLE_LIBCURL=off -DENABLE_ZLIB=off -DENABLE_ZLIB_UNCOMPRESS=off -DENABLE_NSS3=off -DENABLE_LIBPNG=off -DENABLE_LIBTIFF=off -DENABLE_SPLASH=off -DENABLE_UTILS=off -DENABLE_CPP=off -DENABLE_GLIB=off -DENABLE_GOBJECT_INTROSPECTION=off -DENABLE_GTK_DOC=off -DENABLE_QT5=off
5 manually disabled these because cmake failed to do it:
9 ENABLE_LIBTIFF (twice!)
12 diff --git a/config.h b/config.h
14 index 0fbd336a..451213f8 100644
18 +/* config.h. Generated from config.h.cmake by cmake. */
20 +/* Build against libcurl. */
21 +/* #undef ENABLE_LIBCURL */
23 +/* Use libjpeg instead of builtin jpeg decoder. */
24 +#define ENABLE_LIBJPEG 1
26 +/* Use libopenjpeg instead of builtin jpeg2000 decoder. */
27 +/* #undef ENABLE_LIBOPENJPEG */
29 +/* Build against libtiff. */
30 +/* #define ENABLE_LIBTIFF 1 */
32 +/* Build against libpng. */
33 +/* #define ENABLE_LIBPNG 1 */
35 +/* Do not hardcode the library location */
36 +/* #undef ENABLE_RELOCATABLE */
38 +/* Build against zlib. */
39 +/* #undef ENABLE_ZLIB */
41 +/* Use zlib instead of builtin zlib decoder to uncompress flate streams. */
42 +/* #undef ENABLE_ZLIB_UNCOMPRESS */
44 +/* Build against libnss3 for digital signature validation */
45 +/* #define ENABLE_NSS3 1 */
47 +/* Use cairo for rendering. */
48 +/* #define HAVE_CAIRO 1 */
50 +/* Do we have any DCT decoder?. */
51 +#define HAVE_DCT_DECODER 1
53 +/* Do we have any JPX decoder?. */
54 +/* #undef HAVE_JPX_DECODER */
57 +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
59 +#define HAVE_DIRENT_H 1
63 +/* Define to 1 if you have the <dlfcn.h> header file. */
64 +#define HAVE_DLFCN_H 1
67 +/* Define to 1 if you have the <fcntl.h> header file. */
68 +#define HAVE_FCNTL_H 1
70 +/* Define to 1 if you have the `fseek64' function. */
71 +/* #undef HAVE_FSEEK64 */
74 +/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
75 +#define HAVE_FSEEKO 1
78 +/* Define to 1 if you have the `ftell64' function. */
79 +/* #undef HAVE_FTELL64 */
81 +#if !defined(__APPLE__) && !defined(_WIN32)
82 +/* Define to 1 if you have the `pread64' function. */
83 +#define HAVE_PREAD64 1
86 +#if !defined(__APPLE__) && !defined(_WIN32)
87 +/* Define to 1 if you have the `lseek64' function. */
88 +#define HAVE_LSEEK64 1
92 +/* Defines if gettimeofday is available on your system */
93 +#define HAVE_GETTIMEOFDAY 1
97 +/* Defines if gmtime_r is available on your system */
98 +#define HAVE_GMTIME_R 1
101 +#if !defined(_WIN32)
102 +/* Defines if timegm is available on your system */
103 +#define HAVE_TIMEGM 1
106 +/* Define if you have the iconv() function and it works. */
107 +/* #undef HAVE_ICONV */
109 +/* Define to 1 if you have the `z' library (-lz). */
110 +/* #undef HAVE_LIBZ */
112 +#if !defined(_WIN32)
113 +/* Defines if localtime_r is available on your system */
114 +#define HAVE_LOCALTIME_R 1
117 +#if !defined(_WIN32)
118 +/* Define to 1 if you have the `mkstemp' function. */
119 +#define HAVE_MKSTEMP 1
122 +#if !defined(_WIN32)
123 +/* Define to 1 if you have the `rand_r' function. */
124 +#define HAVE_RAND_R 1
128 +/* Define to 1 if you have the `strcpy_s' function. */
129 +#define HAVE_STRCPY_S 1
133 +/* Define to 1 if you have the `strcat_s' function. */
134 +#define HAVE_STRCAT_S 1
137 +#if !defined(_WIN32)
138 +/* Defines if strtok_r is available on your system */
139 +#define HAVE_STRTOK_R 1
142 +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
143 +/* #undef HAVE_NDIR_H */
145 +#if !defined(_WIN32)
146 +/* Define to 1 if you have the `popen' function. */
147 +#define HAVE_POPEN 1
150 +/* Use splash for rendering. */
151 +/* #undef HAVE_SPLASH */
153 +#if !defined(__APPLE__) && !defined(_WIN32)
154 +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
156 +#define HAVE_SYS_DIR_H 1
159 +#if !defined(__APPLE__) && !defined(_WIN32)
160 +/* Define to 1 if you have the <sys/mman.h> header file. */
161 +#define HAVE_SYS_MMAN_H 1
164 +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
166 +/* #undef HAVE_SYS_NDIR_H */
168 +/* Define to 1 if you have the <sys/stat.h> header file. */
169 +#define HAVE_SYS_STAT_H 1
171 +#if !defined(_WIN32)
172 +/* Define to 1 if you have the <unistd.h> header file. */
173 +#define HAVE_UNISTD_H 1
176 +/* Define to 1 if you have a big endian machine */
177 +/* #undef WORDS_BIGENDIAN */
179 +/* Define as const if the declaration of iconv() needs const. */
182 +/* Enable multithreading support. */
183 +#define MULTITHREADED 1
185 +/* Generate OPI comments in PS output. */
186 +#define OPI_SUPPORT 1
188 +/* Name of package */
189 +#define PACKAGE "poppler"
191 +/* Define to the address where bug reports for this package should be sent. */
192 +#define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=poppler"
194 +/* Define to the full name of this package. */
195 +#define PACKAGE_NAME "poppler"
197 +/* Define to the full name and version of this package. */
198 +#define PACKAGE_STRING "poppler 0.74.0"
200 +/* Define to the one symbol short name of this package. */
201 +#define PACKAGE_TARNAME "poppler"
203 +/* Define to the home page for this package. */
204 +#define PACKAGE_URL ""
206 +/* Define to the version of this package. */
207 +#define PACKAGE_VERSION "0.74.0"
209 +/* Poppler data dir */
210 +#define POPPLER_DATADIR "/usr/local/share/poppler"
212 +/* Support for curl based doc builder is compiled in. */
213 +/* #undef POPPLER_HAS_CURL_SUPPORT */
215 +/* Include support for CMYK rasterization */
216 +/* #undef SPLASH_CMYK */
218 +/* Enable word list support. */
219 +#define TEXTOUT_WORD_LIST 1
221 +/* Defines if use cms */
222 +/* #undef USE_CMS */
224 +/* Use fixed point arithmetic in the Splash backend */
225 +/* #undef USE_FIXEDPOINT */
227 +/* Use single precision arithmetic in the Splash backend */
228 +/* #undef USE_FLOAT */
230 +/* Version number of package */
231 +#define VERSION "0.74.0"
233 +#if defined(__APPLE__)
234 +#elif defined (_WIN32)
235 +/* Use win32 font configuration backend */
236 +#define WITH_FONTCONFIGURATION_WIN32 1
238 +/* Use fontconfig font configuration backend */
239 +#define WITH_FONTCONFIGURATION_FONTCONFIG 1
242 +/* OpenJPEG with the OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG flag */
243 +/* #undef WITH_OPENJPEG_IGNORE_PCLR_CMAP_CDEF_FLAG */
245 +/* MS defined snprintf as deprecated but then added it in Visual Studio 2015. */
246 +#if defined(_MSC_VER) && _MSC_VER < 1900
247 +#define snprintf _snprintf
250 +//------------------------------------------------------------------------
252 +//------------------------------------------------------------------------
253 +#if defined(_MSC_VER) || defined(__BORLANDC__)
254 +#define popen _popen
255 +#define pclose _pclose
258 +/* Number of bits in a file offset, on hosts where this is settable. */
259 +/* #undef _FILE_OFFSET_BITS */
261 +/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
262 +/* TODO This is wrong, port if needed #undef _LARGEFILE_SOURCE */
264 +/* Define for large files, on AIX-style hosts. */
265 +/* TODO This is wrong, port if needed #undef _LARGE_FILES */
266 diff --git a/poppler/poppler-config.h b/poppler/poppler-config.h
268 index 0fbd336a..451213f8 100644
270 +++ b/poppler/poppler-config.h
272 +//================================================= -*- mode: c++ -*- ====
276 +// Copyright 1996-2011 Glyph & Cog, LLC
278 +//========================================================================
280 +//========================================================================
282 +// Modified under the Poppler project - http://poppler.freedesktop.org
284 +// All changes made under the Poppler project to this file are licensed
285 +// under GPL version 2 or later
287 +// Copyright (C) 2014 Bogdan Cristea <cristeab@gmail.com>
288 +// Copyright (C) 2014 Hib Eris <hib@hiberis.nl>
289 +// Copyright (C) 2016 Tor Lillqvist <tml@collabora.com>
290 +// Copyright (C) 2017 Adrian Johnson <ajohnson@redneon.com>
292 +// To see a description of the changes please see the Changelog file that
293 +// came with your tarball or type make ChangeLog if you are building from git
295 +//========================================================================
297 +#ifndef POPPLER_CONFIG_H
298 +#define POPPLER_CONFIG_H
300 +// We duplicate some of the config.h #define's here since they are
301 +// used in some of the header files we install. The #ifndef/#endif
302 +// around #undef look odd, but it's to silence warnings about
303 +// redefining those symbols.
305 +/* Defines the poppler version. */
306 +#ifndef POPPLER_VERSION
307 +#define POPPLER_VERSION "0.74.0"
310 +/* Enable multithreading support. */
311 +#ifndef MULTITHREADED
312 +#define MULTITHREADED 1
315 +/* Use fixedpoint. */
316 +#ifndef USE_FIXEDPOINT
317 +/* #undef USE_FIXEDPOINT */
320 +/* Use single precision arithmetic in the Splash backend */
322 +/* #undef USE_FLOAT */
325 +/* Include support for OPI comments. */
327 +#define OPI_SUPPORT 1
330 +/* Enable word list support. */
331 +#ifndef TEXTOUT_WORD_LIST
332 +#define TEXTOUT_WORD_LIST 1
335 +/* Support for curl is compiled in. */
336 +#ifndef POPPLER_HAS_CURL_SUPPORT
337 +/* #undef POPPLER_HAS_CURL_SUPPORT */
340 +/* Use libjpeg instead of builtin jpeg decoder. */
341 +#ifndef ENABLE_LIBJPEG
342 +#define ENABLE_LIBJPEG 1
345 +/* Build against libtiff. */
346 +#ifndef ENABLE_LIBTIFF
347 +/* #define ENABLE_LIBTIFF 1 */
350 +/* Build against libpng. */
351 +#ifndef ENABLE_LIBPNG
352 +/* #define ENABLE_LIBPNG 1 */
355 +/* Use zlib instead of builtin zlib decoder. */
357 +/* #undef ENABLE_ZLIB */
360 +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
362 +#ifndef HAVE_DIRENT_H
363 +#if !defined(_WIN32)
364 +#define HAVE_DIRENT_H 1
368 +/* Defines if gettimeofday is available on your system */
369 +#ifndef HAVE_GETTIMEOFDAY
370 +#if !defined(_WIN32)
371 +#define HAVE_GETTIMEOFDAY 1
375 +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
377 +/* #undef HAVE_NDIR_H */
380 +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
382 +#ifndef HAVE_SYS_DIR_H
383 +#if !defined(__APPLE__) && !defined(_WIN32)
384 +#define HAVE_SYS_DIR_H 1
388 +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
390 +#ifndef HAVE_SYS_NDIR_H
391 +/* #undef HAVE_SYS_NDIR_H */
394 +/* Defines if use cms */
396 +/* #undef USE_CMS */
399 +// Also, there are preprocessor symbols in the header files
400 +// that are used but never defined when building poppler using configure
401 +// or cmake: DISABLE_OUTLINE, DEBUG_MEM,
402 +// ENABLE_PLUGINS, DEBUG_FORMS
404 +//------------------------------------------------------------------------
406 +//------------------------------------------------------------------------
409 +#define popplerCopyright "Copyright 2005-2018 The Poppler Developers - http://poppler.freedesktop.org"
410 +#define xpdfCopyright "Copyright 1996-2011 Glyph & Cog, LLC"
412 +//------------------------------------------------------------------------
414 +//------------------------------------------------------------------------
416 +#if defined(_WIN32) && !defined(_MSC_VER)
422 +//------------------------------------------------------------------------
424 +//------------------------------------------------------------------------
426 +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
427 +#include <stdio.h> // __MINGW_PRINTF_FORMAT is defined in the mingw stdio.h
428 +#ifdef __MINGW_PRINTF_FORMAT
429 +#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
430 + __attribute__((__format__(__MINGW_PRINTF_FORMAT, fmt_index, va_index)))
432 +#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
433 + __attribute__((__format__(__printf__, fmt_index, va_index)))
436 +#define GCC_PRINTF_FORMAT(fmt_index, va_index)
439 +#endif /* POPPLER_CONFIG_H */
440 diff --git a/cpp/poppler-version.h b/cpp/poppler-version.h
442 index 0fbd336a..451213f8 100644
444 +++ b/cpp/poppler-version.h
447 + * Copyright (C) 2009, Pino Toscano <pino@kde.org>
449 + * This program is free software; you can redistribute it and/or modify
450 + * it under the terms of the GNU General Public License as published by
451 + * the Free Software Foundation; either version 2, or (at your option)
452 + * any later version.
454 + * This program is distributed in the hope that it will be useful,
455 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
456 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
457 + * GNU General Public License for more details.
459 + * You should have received a copy of the GNU General Public License
460 + * along with this program; if not, write to the Free Software
461 + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
464 +#ifndef POPPLER_VERSION_H
465 +#define POPPLER_VERSION_H
467 +#include "poppler-global.h"
469 +#define POPPLER_VERSION "0.74.0"
470 +#define POPPLER_VERSION_MAJOR 0
471 +#define POPPLER_VERSION_MINOR 74
472 +#define POPPLER_VERSION_MICRO 0
477 +POPPLER_CPP_EXPORT std::string version_string();
478 +POPPLER_CPP_EXPORT unsigned int version_major();
479 +POPPLER_CPP_EXPORT unsigned int version_minor();
480 +POPPLER_CPP_EXPORT unsigned int version_micro();