diff -ur xpdf-3.01-poppler.orig/PDFCore.cc xpdf-3.01-poppler/PDFCore.cc --- xpdf-3.01-poppler.orig/PDFCore.cc 2006-02-04 19:59:02.000000000 +0100 +++ xpdf-3.01-poppler/PDFCore.cc 2006-02-04 19:59:55.000000000 +0100 @@ -1271,9 +1271,6 @@ int x0, y0, x1, y1, t; GooString *s; - if (!doc->okToCopy()) { - return NULL; - } if ((page = findPage(pg))) { cvtUserToDev(pg, xMin, yMin, &x0, &y0); cvtUserToDev(pg, xMax, yMax, &x1, &y1); diff -ur xpdf-3.01-poppler.orig/XPDFCore.cc xpdf-3.01-poppler/XPDFCore.cc --- xpdf-3.01-poppler.orig/XPDFCore.cc 2006-02-04 19:59:02.000000000 +0100 +++ xpdf-3.01-poppler/XPDFCore.cc 2006-02-04 19:59:55.000000000 +0100 @@ -376,9 +376,6 @@ int pg; double ulx, uly, lrx, lry; - if (!doc->okToCopy()) { - return; - } if (getSelection(&pg, &ulx, &uly, &lrx, &lry)) { //~ for multithreading: need a mutex here if (currentSelection) { @@ -1115,11 +1112,7 @@ #ifndef NO_TEXT_SELECT if (core->selectULX != core->selectLRX && core->selectULY != core->selectLRY) { - if (core->doc->okToCopy()) { - core->copySelection(); - } else { - error(-1, "Copying of text from this document is not allowed."); - } + core->copySelection(); } #endif } diff -ur xpdf-3.01-poppler.orig/XPDFViewer.cc xpdf-3.01-poppler/XPDFViewer.cc --- xpdf-3.01-poppler.orig/XPDFViewer.cc 2006-02-04 19:59:02.000000000 +0100 +++ xpdf-3.01-poppler/XPDFViewer.cc 2006-02-04 19:59:55.000000000 +0100 @@ -2390,10 +2390,6 @@ PSOutputDev *psOut; doc = viewer->core->getDoc(); - if (!doc->okToPrint()) { - error(-1, "Printing this document is not allowed."); - return; - } viewer->core->setBusyCursor(gTrue);