Index: PDFDoc.cc =================================================================== RCS file: /cvs/poppler/poppler/poppler/PDFDoc.cc,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 PDFDoc.cc --- PDFDoc.cc 3 Mar 2005 19:46:03 -0000 1.1.1.1 +++ PDFDoc.cc 6 Mar 2005 13:11:44 -0000 @@ -249,6 +249,19 @@ } } +void PDFDoc::displayPages(OutputDev *out, list &pages, + double hDPI, double vDPI, int rotate, + GBool crop, GBool doLinks, + GBool (*abortCheckCbk)(void *data), + void *abortCheckCbkData) +{ + list::const_iterator i; + + for(i = pages.begin(); i != pages.end(); ++i) + displayPage(out, *i, hDPI, vDPI, rotate, crop, doLinks, + abortCheckCbk, abortCheckCbkData); +} + void PDFDoc::displayPageSlice(OutputDev *out, int page, double hDPI, double vDPI, int rotate, GBool crop, Index: PDFDoc.h =================================================================== RCS file: /cvs/poppler/poppler/poppler/PDFDoc.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 PDFDoc.h --- PDFDoc.h 3 Mar 2005 19:46:01 -0000 1.1.1.1 +++ PDFDoc.h 6 Mar 2005 13:11:44 -0000 @@ -13,6 +13,7 @@ #pragma interface #endif +#include #include #include "XRef.h" #include "Link.h" @@ -28,6 +29,8 @@ class LinkDest; class Outline; +using namespace std; + //------------------------------------------------------------------------ // PDFDoc //------------------------------------------------------------------------ @@ -94,6 +97,13 @@ GBool (*annotDisplayDecideCbk)(Annot *annot, void *user_data) = NULL, void *annotDisplayDecideCbkData = NULL); + // Display some pages + void displayPages(OutputDev *out, list &pages, + double hDPI, double vDPI, int rotate, + GBool crop, GBool doLinks, + GBool (*abortCheckCbk)(void *data) = NULL, + void *abortCheckCbkData = NULL); + // Display part of a page. void displayPageSlice(OutputDev *out, int page, double hDPI, double vDPI,