Package: xpdf Version: 3.02-12 Severity: wishlist Tags: patch User: toscano.p...@tiscali.it Usertags: poppler-0.16
Hi, xpdf will fail to build with Poppler > 0.14. There are two problems: 1) goo/gtypes.h is now a C++ header, so it cannot be used in C sources like parseargs.c. This is something you can easily fix even right now in unstable, by renaming it to .cc (making it a C++ source), just like what has been done in Poppler. 2) the PSOutputDev construct needs a new parameter. Attached there is a patch for it. Unfortunately, this is something it would break with the current Poppler in Debian (0.12.x). As we are planning a Poppler 0.16 transition soon, could you please upload to experimental a version which can compile with Poppler 0.16.x (which you can find currently in experimental)? Thanks, -- Pino
--- a/xpdf/XPDFViewer.cc +++ b/xpdf/XPDFViewer.cc @@ -3625,7 +3625,7 @@ // Normal print mode if (printAll && !printBack) { - psOut = new PSOutputDev(psFileName->getCString(), doc->getXRef(), + psOut = new PSOutputDev(psFileName->getCString(), doc, doc->getXRef(), doc->getCatalog(), NULL, firstPage, lastPage, psModePS); if (psOut->isOk()) { @@ -3671,7 +3671,7 @@ { for (i=beginPage;; i+=step) { - psOut = new PSOutputDev(psFileName->getCString(), doc->getXRef(), + psOut = new PSOutputDev(psFileName->getCString(), doc, doc->getXRef(), doc->getCatalog(), NULL, i, i, psModePS); if (psOut->isOk()) { doc->displayPages(psOut, i, i, 72, 72,