1 *three* poppler config headers
3 note: to get the 3rd one, use -DENABLE_CPP=on
5 mkdir build && cd build && cmake .. -DENABLE_DCTDECODER=libjpeg -DHAVE_CAIRO=off -DENABLE_LIBOPENJPEG=none -DENABLE_CMS=none -DENABLE_LIBCURL=off -DENABLE_ZLIB_UNCOMPRESS=off -DENABLE_GPGME=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 -DENABLE_QT6=off
7 manually disabled these because cmake failed to do it:
10 ENABLE_LIBPNG (twice!)
11 ENABLE_LIBTIFF (twice!)
14 diff --git a/config.h b/config.h
16 index 0fbd336a..451213f8 100644
20 +/* config.h. Generated from config.h.cmake by cmake. */
22 +/* Build against libcurl. */
23 +/* #undef ENABLE_LIBCURL */
25 +/* Use libjpeg instead of builtin jpeg decoder. */
26 +#define ENABLE_LIBJPEG 1
28 +/* Use libopenjpeg instead of builtin jpeg2000 decoder. */
29 +/* #undef ENABLE_LIBOPENJPEG */
31 +/* Build against libtiff. */
32 +/* #define ENABLE_LIBTIFF 1 */
34 +/* Build against libpng. */
35 +/* #define ENABLE_LIBPNG 1 */
37 +/* Do not hardcode the library location */
38 +/* #undef ENABLE_RELOCATABLE */
40 +/* Use zlib instead of builtin zlib decoder to uncompress flate streams. */
41 +/* #undef ENABLE_ZLIB_UNCOMPRESS */
43 +/* Build against libnss3 for digital signature validation */
44 +/* #define ENABLE_NSS3 1 */
46 +/* Build against libgpgme for digital signature validation */
47 +/* #undef ENABLE_GPGME */
49 +/* Signatures enabled */
50 +/* #define ENABLE_SIGNATURES 1 */
52 +/* Default signature backend */
53 +/* #define DEFAULT_SIGNATURE_BACKEND "NSS" */
55 +/* Use cairo for rendering. */
56 +/* #define HAVE_CAIRO 1 */
58 +/* Do we have any DCT decoder?. */
59 +#define HAVE_DCT_DECODER 1
61 +/* Do we have any JPX decoder?. */
62 +/* #undef HAVE_JPX_DECODER */
65 +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
67 +#define HAVE_DIRENT_H 1
71 +/* Define to 1 if you have the <dlfcn.h> header file. */
72 +#define HAVE_DLFCN_H 1
75 +/* Define to 1 if you have the <fcntl.h> header file. */
76 +#define HAVE_FCNTL_H 1
78 +/* Define to 1 if you have the `fseek64' function. */
79 +/* #undef HAVE_FSEEK64 */
82 +/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
83 +#define HAVE_FSEEKO 1
86 +/* Define to 1 if you have the `ftell64' function. */
87 +/* #undef HAVE_FTELL64 */
89 +#if !defined(__APPLE__) && !defined(_WIN32)
90 +/* Define to 1 if you have the `pread64' function. */
91 +#define HAVE_PREAD64 1
94 +#if !defined(__APPLE__) && !defined(_WIN32)
95 +/* Define to 1 if you have the `lseek64' function. */
96 +#define HAVE_LSEEK64 1
100 +/* Defines if gettimeofday is available on your system */
101 +#define HAVE_GETTIMEOFDAY 1
104 +#if !defined(_WIN32)
105 +/* Defines if gmtime_r is available on your system */
106 +#define HAVE_GMTIME_R 1
109 +#if !defined(_WIN32)
110 +/* Defines if timegm is available on your system */
111 +#define HAVE_TIMEGM 1
114 +/* Define to 1 if you have the `z' library (-lz). */
115 +/* #undef HAVE_LIBZ */
117 +#if !defined(_WIN32)
118 +/* Defines if localtime_r is available on your system */
119 +#define HAVE_LOCALTIME_R 1
122 +#if !defined(_WIN32)
123 +/* Define to 1 if you have the `mkstemp' function. */
124 +#define HAVE_MKSTEMP 1
127 +#if !defined(_WIN32)
128 +/* Defines if strtok_r is available on your system */
129 +#define HAVE_STRTOK_R 1
132 +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
133 +/* #undef HAVE_NDIR_H */
135 +#if !defined(_WIN32)
136 +/* Define to 1 if you have the `popen' function. */
137 +#define HAVE_POPEN 1
140 +#if !defined(__APPLE__) && !defined(_WIN32)
141 +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
143 +#define HAVE_SYS_DIR_H 1
146 +#if !defined(__APPLE__) && !defined(_WIN32)
147 +/* Define to 1 if you have the <sys/mman.h> header file. */
148 +#define HAVE_SYS_MMAN_H 1
151 +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
153 +/* #undef HAVE_SYS_NDIR_H */
155 +/* Define to 1 if you have the <sys/stat.h> header file. */
156 +#define HAVE_SYS_STAT_H 1
158 +#if !defined(_WIN32)
159 +/* Define to 1 if you have the <unistd.h> header file. */
160 +#define HAVE_UNISTD_H 1
163 +/* Define to 1 if you have a big endian machine */
164 +/* #undef WORDS_BIGENDIAN */
166 +/* Define as const if the declaration of iconv() needs const. */
169 +/* Generate OPI comments in PS output. */
170 +#define OPI_SUPPORT 1
172 +/* Name of package */
173 +#define PACKAGE "poppler"
175 +/* Define to the address where bug reports for this package should be sent. */
176 +#define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=poppler"
178 +/* Define to the full name of this package. */
179 +#define PACKAGE_NAME "poppler"
181 +/* Define to the full name and version of this package. */
182 +#define PACKAGE_STRING "poppler 23.09.0"
184 +/* Define to the one symbol short name of this package. */
185 +#define PACKAGE_TARNAME "poppler"
187 +/* Define to the home page for this package. */
188 +#define PACKAGE_URL ""
190 +/* Define to the version of this package. */
191 +#define PACKAGE_VERSION "23.09.0"
193 +/* Poppler data dir */
194 +#define POPPLER_DATADIR "/usr/local/share/poppler"
196 +/* Support for curl based doc builder is compiled in. */
197 +/* #undef POPPLER_HAS_CURL_SUPPORT */
199 +/* Enable word list support. */
200 +#define TEXTOUT_WORD_LIST 1
202 +/* Defines if use cms */
203 +/* #undef USE_CMS */
205 +/* Use single precision arithmetic in the Splash backend */
206 +/* #undef USE_FLOAT */
208 +/* Version number of package */
209 +#define VERSION "23.09.0"
211 +#if defined(__APPLE__)
212 +#elif defined (_WIN32)
213 +/* Use win32 font configuration backend */
214 +#define WITH_FONTCONFIGURATION_WIN32 1
215 +#elif defined (__ANDROID__)
216 +/* Use android font configuration backend */
217 +#define WITH_FONTCONFIGURATION_ANDROID 1
219 +/* Use fontconfig font configuration backend */
220 +#define WITH_FONTCONFIGURATION_FONTCONFIG 1
223 +/* OpenJPEG with the OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG flag */
224 +/* #undef WITH_OPENJPEG_IGNORE_PCLR_CMAP_CDEF_FLAG */
226 +/* MS defined snprintf as deprecated but then added it in Visual Studio 2015. */
227 +#if defined(_MSC_VER) && _MSC_VER < 1900
228 +#define snprintf _snprintf
231 +//------------------------------------------------------------------------
233 +//------------------------------------------------------------------------
234 +#if defined(_MSC_VER) || defined(__BORLANDC__)
235 +#define popen _popen
236 +#define pclose _pclose
237 +#define strncasecmp _strnicmp
238 +#define strcasecmp _stricmp
241 +/* Number of bits in a file offset, on hosts where this is settable. */
242 +/* #undef _FILE_OFFSET_BITS */
244 +/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
245 +/* TODO This is wrong, port if needed #undef _LARGEFILE_SOURCE */
247 +/* Define for large files, on AIX-style hosts. */
248 +/* TODO This is wrong, port if needed #undef _LARGE_FILES */
249 diff --git a/poppler/poppler-config.h b/poppler/poppler-config.h
251 index 0fbd336a..451213f8 100644
253 +++ b/poppler/poppler-config.h
255 +//================================================= -*- mode: c++ -*- ====
259 +// Copyright 1996-2011, 2022 Glyph & Cog, LLC
261 +//========================================================================
263 +//========================================================================
265 +// Modified under the Poppler project - http://poppler.freedesktop.org
267 +// All changes made under the Poppler project to this file are licensed
268 +// under GPL version 2 or later
270 +// Copyright (C) 2014 Bogdan Cristea <cristeab@gmail.com>
271 +// Copyright (C) 2014 Hib Eris <hib@hiberis.nl>
272 +// Copyright (C) 2016 Tor Lillqvist <tml@collabora.com>
273 +// Copyright (C) 2017 Adrian Johnson <ajohnson@redneon.com>
274 +// Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
275 +// Copyright (C) 2018 Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>
276 +// Copyright (C) 2020 Albert Astals Cid <aacid@kde.org>
278 +// To see a description of the changes please see the Changelog file that
279 +// came with your tarball or type make ChangeLog if you are building from git
281 +//========================================================================
283 +#ifndef POPPLER_CONFIG_H
284 +#define POPPLER_CONFIG_H
286 +// We duplicate some of the config.h #define's here since they are
287 +// used in some of the header files we install. The #ifndef/#endif
288 +// around #undef look odd, but it's to silence warnings about
289 +// redefining those symbols.
291 +/* Defines the poppler version. */
292 +#ifndef POPPLER_VERSION
293 +#define POPPLER_VERSION "23.09.0"
296 +/* Use single precision arithmetic in the Splash backend */
298 +/* #undef USE_FLOAT */
301 +/* Include support for OPI comments. */
303 +#define OPI_SUPPORT 1
306 +/* Enable word list support. */
307 +#ifndef TEXTOUT_WORD_LIST
308 +#define TEXTOUT_WORD_LIST 1
311 +/* Support for curl is compiled in. */
312 +#ifndef POPPLER_HAS_CURL_SUPPORT
313 +/* #undef POPPLER_HAS_CURL_SUPPORT */
316 +/* Use libjpeg instead of builtin jpeg decoder. */
317 +#ifndef ENABLE_LIBJPEG
318 +#define ENABLE_LIBJPEG 1
321 +/* Build against libtiff. */
322 +#ifndef ENABLE_LIBTIFF
323 +/* #define ENABLE_LIBTIFF 1 */
326 +/* Build against libpng. */
327 +#ifndef ENABLE_LIBPNG
328 +/* #define ENABLE_LIBPNG 1 */
331 +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
333 +#ifndef HAVE_DIRENT_H
334 +#if !defined(_WIN32)
335 +#define HAVE_DIRENT_H 1
339 +/* Defines if gettimeofday is available on your system */
340 +#ifndef HAVE_GETTIMEOFDAY
341 +#if !defined(_WIN32)
342 +#define HAVE_GETTIMEOFDAY 1
346 +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
348 +/* #undef HAVE_NDIR_H */
351 +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
353 +#ifndef HAVE_SYS_DIR_H
354 +#if !defined(__APPLE__) && !defined(_WIN32)
355 +#define HAVE_SYS_DIR_H 1
359 +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
361 +#ifndef HAVE_SYS_NDIR_H
362 +/* #undef HAVE_SYS_NDIR_H */
365 +/* Defines if use cms */
367 +/* #undef USE_CMS */
370 +/* Use header-only classes from Boost in the Splash backend */
371 +#ifndef USE_BOOST_HEADERS
372 +/* #undef USE_BOOST_HEADERS */
375 +//------------------------------------------------------------------------
377 +//------------------------------------------------------------------------
380 +#define popplerCopyright "Copyright 2005-2023 The Poppler Developers - http://poppler.freedesktop.org"
381 +#define xpdfCopyright "Copyright 1996-2011, 2022 Glyph & Cog, LLC"
383 +//------------------------------------------------------------------------
385 +//------------------------------------------------------------------------
387 +#if defined(_WIN32) && !defined(_MSC_VER)
393 +//------------------------------------------------------------------------
395 +//------------------------------------------------------------------------
397 +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
398 +#include <cstdio> // __MINGW_PRINTF_FORMAT is defined in the mingw stdio.h
399 +#ifdef __MINGW_PRINTF_FORMAT
400 +#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
401 + __attribute__((__format__(__MINGW_PRINTF_FORMAT, fmt_index, va_index)))
403 +#define GCC_PRINTF_FORMAT(fmt_index, va_index) \
404 + __attribute__((__format__(__printf__, fmt_index, va_index)))
407 +#define GCC_PRINTF_FORMAT(fmt_index, va_index)
410 +#endif /* POPPLER_CONFIG_H */
411 diff --git a/cpp/poppler-version.h b/cpp/poppler-version.h
413 index 0fbd336a..451213f8 100644
415 +++ b/cpp/poppler-version.h
418 + * Copyright (C) 2009, Pino Toscano <pino@kde.org>
420 + * This program is free software; you can redistribute it and/or modify
421 + * it under the terms of the GNU General Public License as published by
422 + * the Free Software Foundation; either version 2, or (at your option)
423 + * any later version.
425 + * This program is distributed in the hope that it will be useful,
426 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
427 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
428 + * GNU General Public License for more details.
430 + * You should have received a copy of the GNU General Public License
431 + * along with this program; if not, write to the Free Software
432 + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
435 +#ifndef POPPLER_VERSION_H
436 +#define POPPLER_VERSION_H
438 +#include "poppler-global.h"
440 +#define POPPLER_VERSION "23.09.0"
441 +#define POPPLER_VERSION_MAJOR 23
442 +#define POPPLER_VERSION_MINOR 9
443 +#define POPPLER_VERSION_MICRO 0
448 +POPPLER_CPP_EXPORT std::string version_string();
449 +POPPLER_CPP_EXPORT unsigned int version_major();
450 +POPPLER_CPP_EXPORT unsigned int version_minor();
451 +POPPLER_CPP_EXPORT unsigned int version_micro();
456 diff --git a/poppler_private_export.h b/poppler_private_export.h
458 index 0fbd336a..451213f8 100644
460 +++ b/poppler_private_export.h
463 +#ifndef POPPLER_PRIVATE_EXPORT_H
464 +#define POPPLER_PRIVATE_EXPORT_H
466 +# define POPPLER_PRIVATE_EXPORT
467 +# define POPPLER_PRIVATE_NO_EXPORT
468 +# define POPPLER_PRIVATE_DEPRECATED
469 +# define POPPLER_PRIVATE_DEPRECATED_EXPORT
470 +# define POPPLER_PRIVATE_DEPRECATED_NO_EXPORT
472 +#endif /* POPPLER_PRIVATE_EXPORT_H */
474 diff --git a/cpp/poppler_cpp_export.h b/cpp/poppler_cpp_export.h
476 index 0fbd336a..451213f8 100644
478 +++ b/cpp/poppler_cpp_export.h
481 +#ifndef POPPLER_CPP_EXPORT_H
482 +#define POPPLER_CPP_EXPORT_H
484 +# define POPPLER_CPP_EXPORT
485 +# define POPPLER_CPP_NO_EXPORT
486 +# define POPPLER_CPP_DEPRECATED
487 +# define POPPLER_CPP_DEPRECATED_EXPORT
488 +# define POPPLER_CPP_DEPRECATED_NO_EXPORT
490 +#endif /* POPPLER_CPP_EXPORT_H */