summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2011-09-01 15:47:32 +0200
committerAlbert Astals Cid <aacid@kde.org>2011-09-01 15:47:32 +0200
commit7d794f6411499fb8f26778bf2b54cb9734d004af (patch)
treedae831f724b22108dbc256896293a852b91b46f1 /test
parent52fb80a7b3f98eb8322a7ba84e2900f044b3a18a (diff)
xpdf303: API rework, Gfx wants a PDFDoc instead of an XRef
Diffstat (limited to 'test')
-rw-r--r--test/gtk-test.cc2
-rw-r--r--test/pdf-inspector.cc2
-rw-r--r--test/perf-test.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/gtk-test.cc b/test/gtk-test.cc
index 1e9e1ee1..dd339fbe 100644
--- a/test/gtk-test.cc
+++ b/test/gtk-test.cc
@@ -329,7 +329,7 @@ view_new (PopplerDocument *doc)
view->out = new GDKSplashOutputDev (gtk_widget_get_screen (window),
redraw_callback, (void*) view, sc);
- view->out->startDoc(view->doc->doc->getXRef());
+ view->out->startDoc(view->doc->doc);
}
g_signal_connect (view->drawing_area,
diff --git a/test/pdf-inspector.cc b/test/pdf-inspector.cc
index d4a564d3..5598db6a 100644
--- a/test/pdf-inspector.cc
+++ b/test/pdf-inspector.cc
@@ -310,7 +310,7 @@ PdfInspector::load(const char *file_name)
gtk_spin_button_set_range (GTK_SPIN_BUTTON (spin), 0, doc->getNumPages()-1);
gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 0);
- output->startDoc (doc->getXRef(), doc->getCatalog());
+ output->startDoc (doc);
}
else
{
diff --git a/test/perf-test.cc b/test/perf-test.cc
index 45961d31..b6fb8f89 100644
--- a/test/perf-test.cc
+++ b/test/perf-test.cc
@@ -431,7 +431,7 @@ SplashOutputDev * PdfEnginePoppler::outputDevice() {
GBool bitmapTopDown = gTrue;
_outputDev = new SplashOutputDev(gSplashColorMode, 4, gFalse, gBgColor, bitmapTopDown);
if (_outputDev)
- _outputDev->startDoc(_pdfDoc->getXRef());
+ _outputDev->startDoc(_pdfDoc);
}
return _outputDev;
}