diff -dur xpdf-2.01.orig/xpdf/XPDFCore.cc xpdf-2.01/xpdf/XPDFCore.cc --- xpdf-2.01.orig/xpdf/XPDFCore.cc Fri Dec 6 00:44:33 2002 +++ xpdf-2.01/xpdf/XPDFCore.cc Thu Jan 2 13:06:34 2003 @@ -907,9 +907,9 @@ // global variables (currentSelection and currentSelectionOwner). void XPDFCore::copySelection() { - if (!doc->okToCopy()) { - return; - } +// if (!doc->okToCopy()) { +// return; +// } if (currentSelection) { delete currentSelection; } @@ -948,9 +948,9 @@ } GString *XPDFCore::extractText(int xMin, int yMin, int xMax, int yMax) { - if (!doc->okToCopy()) { - return NULL; - } +// if (!doc->okToCopy()) { +// return NULL; +// } return out->getText(xMin, yMin, xMax, yMax); } @@ -959,9 +959,9 @@ TextOutputDev *textOut; GString *s; - if (!doc->okToCopy()) { - return NULL; - } +// if (!doc->okToCopy()) { +// return NULL; +// } textOut = new TextOutputDev(NULL, gFalse, gFalse, gFalse); if (!textOut->isOk()) { delete textOut; @@ -1586,11 +1586,11 @@ #ifndef NO_TEXT_SELECT if (core->selectXMin != core->selectXMax && core->selectYMin != core->selectYMax) { - if (core->doc->okToCopy()) { +// if (core->doc->okToCopy()) { core->copySelection(); - } else { - error(-1, "Copying of text from this document is not allowed."); - } +// } else { +// error(-1, "Copying of text from this document is not allowed."); +// } } #endif } diff -dur xpdf-2.01.orig/xpdf/XPDFViewer.cc xpdf-2.01/xpdf/XPDFViewer.cc --- xpdf-2.01.orig/xpdf/XPDFViewer.cc Fri Dec 6 00:44:33 2002 +++ xpdf-2.01/xpdf/XPDFViewer.cc Thu Jan 2 13:05:12 2003 @@ -2136,10 +2136,10 @@ PSOutputDev *psOut; doc = viewer->core->getDoc(); - if (!doc->okToPrint()) { - error(-1, "Printing this document is not allowed."); - return; - } +// if (!doc->okToPrint()) { +// error(-1, "Printing this document is not allowed."); +// return; +// } viewer->core->setBusyCursor(gTrue); diff -dur xpdf-2.01.orig/xpdf/pdfimages.cc xpdf-2.01/xpdf/pdfimages.cc --- xpdf-2.01.orig/xpdf/pdfimages.cc Fri Dec 6 00:44:33 2002 +++ xpdf-2.01/xpdf/pdfimages.cc Thu Jan 2 13:05:12 2003 @@ -119,11 +119,11 @@ } // check for copy permission - if (!doc->okToCopy()) { - error(-1, "Copying of images from this document is not allowed."); - exitCode = 3; - goto err1; - } +// if (!doc->okToCopy()) { +// error(-1, "Copying of images from this document is not allowed."); +// exitCode = 3; +// goto err1; +// } // get page range if (firstPage < 1) diff -dur xpdf-2.01.orig/xpdf/pdftops.cc xpdf-2.01/xpdf/pdftops.cc --- xpdf-2.01.orig/xpdf/pdftops.cc Fri Dec 6 00:44:33 2002 +++ xpdf-2.01/xpdf/pdftops.cc Thu Jan 2 13:05:12 2003 @@ -242,11 +242,11 @@ } // check for print permission - if (!doc->okToPrint()) { - error(-1, "Printing this document is not allowed."); - exitCode = 3; - goto err1; - } +// if (!doc->okToPrint()) { +// error(-1, "Printing this document is not allowed."); +// exitCode = 3; +// goto err1; +// } // construct PostScript file name if (argc == 3) { diff -dur xpdf-2.01.orig/xpdf/pdftotext.cc xpdf-2.01/xpdf/pdftotext.cc --- xpdf-2.01.orig/xpdf/pdftotext.cc Fri Dec 6 00:44:33 2002 +++ xpdf-2.01/xpdf/pdftotext.cc Thu Jan 2 13:05:12 2003 @@ -155,11 +155,11 @@ } // check for copy permission - if (!doc->okToCopy()) { - error(-1, "Copying of text from this document is not allowed."); - exitCode = 3; - goto err2; - } +// if (!doc->okToCopy()) { +// error(-1, "Copying of text from this document is not allowed."); +// exitCode = 3; +// goto err2; +// } // construct text file name if (argc == 3) {