summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/pdftosrc.cc
diff options
context:
space:
mode:
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)