diff -ur xpdf-1.00.orig/xpdf/pdfimages.cc xpdf-1.00/xpdf/pdfimages.cc --- xpdf-1.00.orig/xpdf/pdfimages.cc Sat Feb 2 00:15:45 2002 +++ xpdf-1.00/xpdf/pdfimages.cc Fri Feb 15 15:38:32 2002 @@ -115,10 +115,10 @@ } // check for copy permission - if (!doc->okToCopy()) { - error(-1, "Copying of images from this document is not allowed."); - goto err; - } +// if (!doc->okToCopy()) { +// error(-1, "Copying of images from this document is not allowed."); +// goto err; +// } // get page range if (firstPage < 1) diff -ur xpdf-1.00.orig/xpdf/pdftops.cc xpdf-1.00/xpdf/pdftops.cc --- xpdf-1.00.orig/xpdf/pdftops.cc Sat Feb 2 00:15:45 2002 +++ xpdf-1.00/xpdf/pdftops.cc Fri Feb 15 15:39:02 2002 @@ -205,10 +205,10 @@ } // check for print permission - if (!doc->okToPrint()) { - error(-1, "Printing this document is not allowed."); - goto err1; - } +// if (!doc->okToPrint()) { +// error(-1, "Printing this document is not allowed."); +// goto err1; +// } // construct PostScript file name if (argc == 3) { diff -ur xpdf-1.00.orig/xpdf/pdftotext.cc xpdf-1.00/xpdf/pdftotext.cc --- xpdf-1.00.orig/xpdf/pdftotext.cc Sat Feb 2 00:15:45 2002 +++ xpdf-1.00/xpdf/pdftotext.cc Fri Feb 15 15:39:27 2002 @@ -148,10 +148,10 @@ } // check for copy permission - if (!doc->okToCopy()) { - error(-1, "Copying of text from this document is not allowed."); - goto err2; - } +// if (!doc->okToCopy()) { +// error(-1, "Copying of text from this document is not allowed."); +// goto err2; +// } // construct text file name if (argc == 3) { diff -ur xpdf-1.00.orig/xpdf/xpdf.cc xpdf-1.00/xpdf/xpdf.cc --- xpdf-1.00.orig/xpdf/xpdf.cc Sat Feb 2 00:15:45 2002 +++ xpdf-1.00/xpdf/xpdf.cc Fri Feb 15 15:40:55 2002 @@ -1418,12 +1418,12 @@ // selection if (selectXMin < selectXMax && selectYMin < selectYMax) { #ifndef NO_TEXT_SELECT - if (doc->okToCopy()) { +// if (doc->okToCopy()) { s = out->getText(selectXMin, selectYMin, selectXMax, selectYMax); win->setSelection(NULL, s); - } 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 // link @@ -2281,7 +2281,7 @@ // do the PostScript output psDialog->setBusyCursor(gTrue); win->setBusyCursor(gTrue); - if (doc->okToPrint()) { +// if (doc->okToPrint()) { psOut = new PSOutputDev(psFileName->getCString(), doc->getXRef(), doc->getCatalog(), psFirstPage, psLastPage, psModePS); @@ -2289,9 +2289,9 @@ doc->displayPages(psOut, psFirstPage, psLastPage, 72, 0, gFalse); } delete psOut; - } else { - error(-1, "Printing this document is not allowed."); - } +// } else { +// error(-1, "Printing this document is not allowed."); +// } delete psDialog; win->setBusyCursor(gFalse); @@ -2473,10 +2473,10 @@ found: setSelection(xMin, yMin, xMax, yMax); #ifndef NO_TEXT_SELECT - if (doc->okToCopy()) { +// if (doc->okToCopy()) { s1 = out->getText(selectXMin, selectYMin, selectXMax, selectYMax); win->setSelection(NULL, s1); - } +// } #endif done: