--- texk/web2c/xetexdir/pdfimage.cpp +++ texk/web2c/xetexdir/pdfimage.cpp 2012-04-13 16:52:54.939126587 +0200 @@ -38,9 +38,18 @@ authorization from the copyright holders #include #include -#include "PDFDoc.h" -#include "Catalog.h" -#include "Page.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "XeTeX_ext.h" --- texk/web2c/xetexdir/xetexextra.h +++ texk/web2c/xetexdir/xetexextra.h 2011-09-13 14:45:00.256426839 +0000 @@ -56,7 +56,11 @@ Foundation, Inc., 675 Mass Ave, Cambridg #include /* for ETEX_VERSION */ #include /* for XETEX_VERSION */ -#define BANNER "This is XeTeX, Version 3.1415926-" ETEX_VERSION "-" XETEX_VERSION +#ifdef POPPLER_VERSION +# define BANNER "This is XeTeX using libpoppler, Version 3.1415926-" ETEX_VERSION "-" XETEX_VERSION +#else +# define BANNER "This is XeTeX, Version 3.1415926-" ETEX_VERSION "-" XETEX_VERSION +#endif #define COPYRIGHT_HOLDER "SIL International and Jonathan Kew" #define AUTHOR "Jonathan Kew" #define PROGRAM_HELP XETEXHELP --- texk/web2c/luatexdir/image/epdf.h +++ texk/web2c/luatexdir/image/epdf.h 2011-09-13 14:49:39.051927771 +0000 @@ -36,20 +36,20 @@ # include # include # include -# include "Object.h" -# include "Stream.h" -# include "Gfx.h" -# include "Annot.h" -# include "Array.h" -# include "Dict.h" -# include "XRef.h" -# include "Catalog.h" -# include "Link.h" -# include "Page.h" -# include "GfxFont.h" -# include "PDFDoc.h" -# include "GlobalParams.h" -# include "Error.h" +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include +# include extern "C" { --- texk/web2c/pdftexdir/pdftexextra.h +++ texk/web2c/pdftexdir/pdftexextra.h 2011-09-13 14:46:22.147926062 +0000 @@ -25,7 +25,11 @@ with this program. If not, see /* for PDFTEX_VERSION */ #include /* for ETEX_VERSION */ -#define BANNER "This is pdfTeX, Version 3.1415926-" ETEX_VERSION "-" PDFTEX_VERSION +#ifdef POPPLER_VERSION +# define BANNER "This is pdfTeX using libpoppler, Version 3.1415926-" ETEX_VERSION "-" PDFTEX_VERSION +#else +# define BANNER "This is pdfTeX, Version 3.1415926-" ETEX_VERSION "-" PDFTEX_VERSION +#endif #define COPYRIGHT_HOLDER "Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX)" #define AUTHOR NULL #define PROGRAM_HELP PDFTEXHELP --- texk/web2c/pdftexdir/pdftoepdf.cc +++ texk/web2c/pdftexdir/pdftoepdf.cc 2012-04-13 16:56:57.780022236 +0200 @@ -21,7 +21,6 @@ with this program. If not, see . */ -#define boolean MINGW32_boolean #include #include @@ -30,6 +29,10 @@ with this program. If not, see #include +extern "C" { +#include +} + #ifdef POPPLER_VERSION #include #include @@ -44,21 +47,18 @@ with this program. If not, see #endif #include - -#include "Object.h" -#include "Stream.h" -#include "Array.h" -#include "Dict.h" -#include "XRef.h" -#include "Catalog.h" -#include "Link.h" -#include "Page.h" -#include "GfxFont.h" -#include "PDFDoc.h" -#include "GlobalParams.h" -#include "Error.h" - -#undef boolean +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // This file is mostly C and not very much C++; it's just used to interface // the functions of xpdf, which happens to be written in C++. --- texk/web2c/pdftexdir/pdftosrc.cc +++ texk/web2c/pdftexdir/pdftosrc.cc 2012-04-13 16:59:10.136510522 +0200 @@ -23,6 +23,10 @@ with this program. If not, see #include +extern "C" { +#include +} + #ifdef POPPLER_VERSION #define GString GooString #define xpdfVersion POPPLER_VERSION @@ -37,20 +41,20 @@ with this program. If not, see #endif #include - -#include "Object.h" -#include "Stream.h" -#include "Lexer.h" -#include "Parser.h" -#include "Array.h" -#include "Dict.h" -#include "XRef.h" -#include "Catalog.h" -#include "Page.h" -#include "GfxFont.h" -#include "PDFDoc.h" -#include "GlobalParams.h" -#include "Error.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include static XRef *xref = 0; @@ -130,7 +134,7 @@ int main(int argc, char *argv[]) exit(1); } if (extract_xref_table) { - int size = xref->getSize(); + int size = xref->getNumObjects(); int i; for (i = 0; i < size; i++) { if (xref->getEntry(i)->offset == 0xffffffff) --- texk/web2c/pdftexdir/utils.c +++ texk/web2c/pdftexdir/utils.c 2009-09-04 08:38:04.000000000 +0000 @@ -42,12 +42,12 @@ with this program. If not, see +# define xpdfVersion POPPLER_VERSION +# define xpdfString "poppler" #else -#include "xpdf/config.h" /* just to get the xpdf version */ -#define xpdfString "xpdf" +# include "xpdf/config.h" /* just to get the xpdf version */ +# define xpdfString "xpdf" #endif #define check_nprintf(size_get, size_want) \ --- texk/web2c/pdftexdir/writefont.c +++ texk/web2c/pdftexdir/writefont.c 2009-09-04 08:39:19.000000000 +0000 @@ -17,6 +17,9 @@ You should have received a copy of the G with this program. If not, see . */ +#ifdef POPPLER_VERSION +# include +#endif #include "ptexlib.h" /**********************************************************************/