summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/pdftosrc.cc
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-06-28 08:14:19 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-06-28 08:14:19 +0000
commitd1028259a790fbbef87c2ce47f046057f15489ab (patch)
tree5da3a1fc518a5c63a4fe256ed0ab9c231d0d6076 /Build/source/texk/web2c/pdftexdir/pdftosrc.cc
parent1a70c47822d9d7b990ea89c6fdb09ea203b074be (diff)
pdfTeX: allow to build with poppler >= 0.19.0 (aka system-xpdf)
git-svn-id: svn://tug.org/texlive/trunk@26905 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/pdftosrc.cc')
-rw-r--r--Build/source/texk/web2c/pdftexdir/pdftosrc.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/pdftosrc.cc b/Build/source/texk/web2c/pdftexdir/pdftosrc.cc
index 86a2c425117..de4ba6ebcb4 100644
--- a/Build/source/texk/web2c/pdftexdir/pdftosrc.cc
+++ b/Build/source/texk/web2c/pdftexdir/pdftosrc.cc
@@ -134,7 +134,11 @@ int main(int argc, char *argv[])
exit(1);
}
if (extract_xref_table) {
+#ifdef POPPLER_VERSION
+ int size = xref->getNumObjects();
+#else
int size = xref->getSize();
+#endif
int i;
for (i = 0; i < size; i++) {
if (xref->getEntry(i)->offset == 0xffffffff)