Index: pdffonts.cc =================================================================== RCS file: /cvs/poppler/poppler/utils/pdffonts.cc,v retrieving revision 1.3 diff -u -p -r1.3 pdffonts.cc --- pdffonts.cc 23 Jan 2006 15:40:54 -0000 1.3 +++ pdffonts.cc 26 Jun 2006 18:31:59 -0000 @@ -115,7 +115,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; }