diff options
author | Albert Astals Cid <aacid@kde.org> | 2011-09-01 15:47:32 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2011-09-01 15:47:32 +0200 |
commit | 7d794f6411499fb8f26778bf2b54cb9734d004af (patch) | |
tree | dae831f724b22108dbc256896293a852b91b46f1 /utils | |
parent | 52fb80a7b3f98eb8322a7ba84e2900f044b3a18a (diff) |
xpdf303: API rework, Gfx wants a PDFDoc instead of an XRef
Diffstat (limited to 'utils')
-rw-r--r-- | utils/pdftocairo.cc | 2 | ||||
-rw-r--r-- | utils/pdftohtml.cc | 6 | ||||
-rw-r--r-- | utils/pdftoppm.cc | 2 | ||||
-rw-r--r-- | utils/pdftops.cc | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/utils/pdftocairo.cc b/utils/pdftocairo.cc index b425c1e3..ad56b6cc 100644 --- a/utils/pdftocairo.cc +++ b/utils/pdftocairo.cc @@ -903,7 +903,7 @@ int main(int argc, char *argv[]) { } cairoOut = new CairoOutputDev(); - cairoOut->startDoc(doc->getXRef(), doc->getCatalog()); + cairoOut->startDoc(doc); if (sz != 0) crop_w = crop_h = sz; pg_num_len = numberOfCharacters(doc->getNumPages()); diff --git a/utils/pdftohtml.cc b/utils/pdftohtml.cc index 4d0d590d..1e7350a6 100644 --- a/utils/pdftohtml.cc +++ b/utils/pdftohtml.cc @@ -420,7 +420,7 @@ int main(int argc, char *argv[]) { splashFormatPng : splashFormatJpeg; splashOut = new SplashOutputDevNoText(splashModeRGB8, 4, gFalse, color); - splashOut->startDoc(doc->getXRef()); + splashOut->startDoc(doc); for (int pg = firstPage; pg <= lastPage; ++pg) { doc->displayPage(splashOut, pg, @@ -448,8 +448,8 @@ int main(int argc, char *argv[]) { psFileName = new GooString(htmlFileName->getCString()); psFileName->append(".ps"); - psOut = new PSOutputDev(psFileName->getCString(), doc, doc->getXRef(), - doc->getCatalog(), NULL, firstPage, lastPage, psModePS, w, h); + psOut = new PSOutputDev(psFileName->getCString(), doc, + NULL, firstPage, lastPage, psModePS, w, h); psOut->setDisplayText(gFalse); doc->displayPages(psOut, firstPage, lastPage, 72, 72, 0, gTrue, gFalse, gFalse); diff --git a/utils/pdftoppm.cc b/utils/pdftoppm.cc index 5c4c4a78..d48c3ee3 100644 --- a/utils/pdftoppm.cc +++ b/utils/pdftoppm.cc @@ -372,7 +372,7 @@ int main(int argc, char *argv[]) { #endif splashModeRGB8, 4, gFalse, paperColor); - splashOut->startDoc(doc->getXRef()); + splashOut->startDoc(doc); if (sz != 0) w = h = sz; pg_num_len = numberOfCharacters(doc->getNumPages()); for (pg = firstPage; pg <= lastPage; ++pg) { diff --git a/utils/pdftops.cc b/utils/pdftops.cc index 195d179a..7f5f5117 100644 --- a/utils/pdftops.cc +++ b/utils/pdftops.cc @@ -375,8 +375,8 @@ int main(int argc, char *argv[]) { } // write PostScript file - psOut = new PSOutputDev(psFileName->getCString(), doc, doc->getXRef(), - doc->getCatalog(), NULL, firstPage, lastPage, mode, + psOut = new PSOutputDev(psFileName->getCString(), doc, + NULL, firstPage, lastPage, mode, paperWidth, paperHeight, duplex); |