*three* poppler config headers note: to get the 3rd one, use -DENABLE_CPP=on (cd workdir/UnpackedTarball/poppler && cmake -DENABLE_DCTDECODER=libjpeg -DHAVE_CAIRO=off -DENABLE_LIBOPENJPEG=none -DENABLE_LCMS=off -DENABLE_LIBCURL=off -DENABLE_ZLIB_UNCOMPRESS=off -DENABLE_NSS3=off -DENABLE_GPGME=off -DENABLE_PGP_SIGNATURES=off -DENABLE_LIBPNG=off -DENABLE_LIBTIFF=off -DENABLE_BOOST=off -DENABLE_UTILS=off -DENABLE_CPP=off -DENABLE_GLIB=off -DENABLE_GOBJECT_INTROSPECTION=off -DENABLE_GTK_DOC=off -DENABLE_QT5=off -DENABLE_QT6=off) manually disabled these because cmake failed to do it: HAVE_CAIRO ENABLE_LIBPNG (twice!) diff --git a/config.h b/config.h new file mode 100644 index 0fbd336a..451213f8 100644 --- /dev/null +++ b/config.h @@ -0,0 +1,170 @@ +/* config.h. Generated from config.h.cmake by cmake. */ + +/* Build against libcurl. */ +#define ENABLE_LIBCURL 0 + +/* Use libjpeg instead of builtin jpeg decoder. */ +#define ENABLE_LIBJPEG 1 + +/* Use libopenjpeg instead of builtin jpeg2000 decoder. */ +#define ENABLE_LIBOPENJPEG 0 + +/* Build against libtiff. */ +#define ENABLE_LIBTIFF 0 + +/* Build against libpng. */ +#define ENABLE_LIBPNG 0 + +/* Do not hardcode the library location */ +#define ENABLE_RELOCATABLE 0 + +/* Use zlib instead of builtin zlib decoder to uncompress flate streams. */ +#define ENABLE_ZLIB_UNCOMPRESS 0 + +/* Build against libnss3 for digital signature validation */ +#define ENABLE_NSS3 0 + +/* Build against libgpgme for digital signature validation */ +#define ENABLE_GPGME 0 + +/* Enable pgp signatures in GPG backend by default */ +#define ENABLE_PGP_SIGNATURES 0 + +/* Signatures enabled */ +#define ENABLE_SIGNATURES 0 + +/* Default signature backend */ +#define DEFAULT_SIGNATURE_BACKEND "None" + +/* Use cairo for rendering. */ +/* #define HAVE_CAIRO 1 */ + +/* Do we have any DCT decoder?. */ +#define HAVE_DCT_DECODER 1 + +/* Do we have any JPX decoder?. */ +#define HAVE_JPX_DECODER 0 + +/* Define to 1 if you have the `fseek64' function. */ +#define HAVE_FSEEK64 0 + +#if !defined(_WIN32) +/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ +#define HAVE_FSEEKO 1 +#endif + +#if !defined(__APPLE__) && !defined(_WIN32) +/* Define to 1 if you have the `pread64' function. */ +#define HAVE_PREAD64 1 +#endif + +#if !defined(__APPLE__) && !defined(_WIN32) +/* Define to 1 if you have the `lseek64' function. */ +#define HAVE_LSEEK64 1 +#endif + +#if !defined(_WIN32) +/* Defines if gmtime_r is available on your system */ +#define HAVE_GMTIME_R 1 +#endif + +#if !defined(_WIN32) +/* Defines if timegm is available on your system */ +#define HAVE_TIMEGM 1 +#endif + +#if !defined(_WIN32) +/* Defines if localtime_r is available on your system */ +#define HAVE_LOCALTIME_R 1 +#endif + +#if !defined(_WIN32) +/* Defines if strtok_r is available on your system */ +#define HAVE_STRTOK_R 1 +#endif + +#if !defined(_WIN32) +/* Define to 1 if you have the `popen' function. */ +#define HAVE_POPEN 1 +#endif + +/* Define to 1 if you have a big endian machine */ +#define WORDS_BIGENDIAN 0 + +/* Define as const if the declaration of iconv() needs const. */ +#define ICONV_CONST + +/* Name of package */ +#define PACKAGE "poppler" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=poppler" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "poppler" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "poppler 26.01.0" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "poppler" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "26.01.0" + +/* Poppler data dir */ +#define POPPLER_DATADIR "/usr/local/share/poppler" + +/* Support for curl based doc builder is compiled in. */ +#define POPPLER_HAS_CURL_SUPPORT 0 + +/* Defines if use cms */ +#define USE_CMS 0 + +/* Use single precision arithmetic in the Splash backend */ +#define USE_FLOAT 0 + +/* Version number of package */ +#define VERSION "26.01.0" + +#if defined(__APPLE__) +#elif defined (_WIN32) +/* Use win32 font configuration backend */ +#define WITH_FONTCONFIGURATION_WIN32 1 +#elif defined (__ANDROID__) +/* Use android font configuration backend */ +#define WITH_FONTCONFIGURATION_ANDROID 1 +#else +/* Use fontconfig font configuration backend */ +#define WITH_FONTCONFIGURATION_FONTCONFIG 1 +#endif + +/* OpenJPEG with the OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG flag */ +#define WITH_OPENJPEG_IGNORE_PCLR_CMAP_CDEF_FLAG 0 + +/* MS defined snprintf as deprecated but then added it in Visual Studio 2015. */ +#if defined(_MSC_VER) && _MSC_VER < 1900 +#define snprintf _snprintf +#endif + +//------------------------------------------------------------------------ +// popen +//------------------------------------------------------------------------ +#if defined(_MSC_VER) || defined(__BORLANDC__) +#define popen _popen +#define pclose _pclose +#define strncasecmp _strnicmp +#define strcasecmp _stricmp +#endif + +/* Number of bits in a file offset, on hosts where this is settable. */ +#define _FILE_OFFSET_BITS 0 + +/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ +/* TODO This is wrong, port if needed #undef _LARGEFILE_SOURCE */ + +/* Define for large files, on AIX-style hosts. */ +/* TODO This is wrong, port if needed #undef _LARGE_FILES */ diff --git a/poppler/poppler-config.h b/poppler/poppler-config.h new file mode 100644 index 0fbd336a..451213f8 100644 --- /dev/null +++ b/poppler/poppler-config.h @@ -0,0 +1,91 @@ +//================================================= -*- mode: c++ -*- ==== +// +// poppler-config.h +// +// Copyright 1996-2011, 2022 Glyph & Cog, LLC +// +//======================================================================== + +//======================================================================== +// +// Modified under the Poppler project - http://poppler.freedesktop.org +// +// All changes made under the Poppler project to this file are licensed +// under GPL version 2 or later +// +// Copyright (C) 2014 Bogdan Cristea +// Copyright (C) 2014 Hib Eris +// Copyright (C) 2016 Tor Lillqvist +// Copyright (C) 2017 Adrian Johnson +// Copyright (C) 2018 Adam Reichold +// Copyright (C) 2018 Stefan BrĂ¼ns +// Copyright (C) 2020, 2025 Albert Astals Cid +// +// To see a description of the changes please see the Changelog file that +// came with your tarball or type make ChangeLog if you are building from git +// +//======================================================================== + +#ifndef POPPLER_CONFIG_H +#define POPPLER_CONFIG_H + +/* Defines the poppler version. */ +#define POPPLER_VERSION "26.01.0" + +/* Use single precision arithmetic in the Splash backend */ +#define USE_FLOAT 0 + +/* Support for curl is compiled in. */ +#define POPPLER_HAS_CURL_SUPPORT 0 + +/* Use libjpeg instead of builtin jpeg decoder. */ +#define ENABLE_LIBJPEG 1 + +/* Build against libtiff. */ +#define ENABLE_LIBTIFF 0 + +/* Build against libpng. */ +#define ENABLE_LIBPNG 0 + +/* Use zlib instead of builtin zlib decoder to uncompress flate streams. */ +#define ENABLE_ZLIB_UNCOMPRESS 0 + +/* Defines if use cms */ +#define USE_CMS 0 + +/* Use header-only classes from Boost in the Splash backend */ +#define USE_BOOST_HEADERS 0 + +//------------------------------------------------------------------------ +// version +//------------------------------------------------------------------------ + +// copyright notice +#define popplerCopyright "Copyright 2005-2026 The Poppler Developers - http://poppler.freedesktop.org" +#define xpdfCopyright "Copyright 1996-2011, 2022 Glyph & Cog, LLC" + +//------------------------------------------------------------------------ +// Win32 stuff +//------------------------------------------------------------------------ + +#if defined(_WIN32) && !defined(_MSC_VER) +# include +#else +# define CDECL +#endif + +//------------------------------------------------------------------------ +// Compiler +//------------------------------------------------------------------------ + +#ifdef __GNUC__ +# ifdef __MINGW32__ +# define GCC_PRINTF_FORMAT(fmt_index, va_index) __attribute__((__format__(gnu_printf, fmt_index, va_index))) +# else +# define GCC_PRINTF_FORMAT(fmt_index, va_index) __attribute__((__format__(printf, fmt_index, va_index))) +# endif +#else +# define GCC_PRINTF_FORMAT(fmt_index, va_index) +#endif + +#endif /* POPPLER_CONFIG_H */ diff --git a/cpp/poppler-version.h b/cpp/poppler-version.h new file mode 100644 index 0fbd336a..451213f8 100644 --- /dev/null +++ b/cpp/poppler-version.h @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2009, Pino Toscano + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef POPPLER_VERSION_H +#define POPPLER_VERSION_H + +#include "poppler-global.h" + +#define POPPLER_VERSION "26.01.0" +#define POPPLER_VERSION_MAJOR 26 +#define POPPLER_VERSION_MINOR 01 +#define POPPLER_VERSION_MICRO 0 + +namespace poppler +{ + +POPPLER_CPP_EXPORT std::string version_string(); +POPPLER_CPP_EXPORT unsigned int version_major(); +POPPLER_CPP_EXPORT unsigned int version_minor(); +POPPLER_CPP_EXPORT unsigned int version_micro(); + +} + +#endif diff --git a/poppler_private_export.h b/poppler_private_export.h new file mode 100644 index 0fbd336a..451213f8 100644 --- /dev/null +++ b/poppler_private_export.h @@ -0,0 +1,11 @@ + +#ifndef POPPLER_PRIVATE_EXPORT_H +#define POPPLER_PRIVATE_EXPORT_H + +# define POPPLER_PRIVATE_EXPORT +# define POPPLER_PRIVATE_NO_EXPORT +# define POPPLER_PRIVATE_DEPRECATED +# define POPPLER_PRIVATE_DEPRECATED_EXPORT +# define POPPLER_PRIVATE_DEPRECATED_NO_EXPORT + +#endif /* POPPLER_PRIVATE_EXPORT_H */ diff --git a/cpp/poppler_cpp_export.h b/cpp/poppler_cpp_export.h new file mode 100644 index 0fbd336a..451213f8 100644 --- /dev/null +++ b/cpp/poppler_cpp_export.h @@ -0,0 +1,11 @@ + +#ifndef POPPLER_CPP_EXPORT_H +#define POPPLER_CPP_EXPORT_H + +# define POPPLER_CPP_EXPORT +# define POPPLER_CPP_NO_EXPORT +# define POPPLER_CPP_DEPRECATED +# define POPPLER_CPP_DEPRECATED_EXPORT +# define POPPLER_CPP_DEPRECATED_NO_EXPORT + +#endif /* POPPLER_CPP_EXPORT_H */