Index: pdfinfo.cc =================================================================== RCS file: /cvs/poppler/poppler/utils/pdfinfo.cc,v retrieving revision 1.3 diff -u -p -r1.3 pdfinfo.cc --- pdfinfo.cc 23 Jan 2006 15:40:54 -0000 1.3 +++ pdfinfo.cc 26 Jun 2006 18:30:45 -0000 @@ -131,7 +131,16 @@ int main(int argc, char *argv[]) { } else { userPW = NULL; } - doc = new PDFDoc(fileName, ownerPW, userPW); + + if(fileName->cmp("-") != 0) { + doc = new PDFDoc(fileName, ownerPW, userPW); + } else { + Object obj; + + obj.initNull(); + doc = new PDFDoc(new FileStream(stdin, 0, gFalse, 0, &obj), ownerPW, userPW); + } + if (userPW) { delete userPW; }