diff -ur xpdf-0.92.orig/xpdf/pdfimages.cc xpdf-0.92/xpdf/pdfimages.cc --- xpdf-0.92.orig/xpdf/pdfimages.cc Mon Dec 4 05:28:07 2000 +++ xpdf-0.92/xpdf/pdfimages.cc Fri May 18 09:58:33 2001 @@ -96,10 +96,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-0.92.orig/xpdf/pdftops.cc xpdf-0.92/xpdf/pdftops.cc --- xpdf-0.92.orig/xpdf/pdftops.cc Mon Dec 4 05:28:07 2000 +++ xpdf-0.92/xpdf/pdftops.cc Fri May 18 10:01:57 2001 @@ -121,10 +121,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-0.92.orig/xpdf/pdftotext.cc xpdf-0.92/xpdf/pdftotext.cc --- xpdf-0.92.orig/xpdf/pdftotext.cc Mon Dec 4 05:28:07 2000 +++ xpdf-0.92/xpdf/pdftotext.cc Fri May 18 09:56:08 2001 @@ -113,10 +113,10 @@ } // check for copy permission - if (!doc->okToCopy()) { - error(-1, "Copying of text from this document is not allowed."); - goto err; - } +// if (!doc->okToCopy()) { +// error(-1, "Copying of text from this document is not allowed."); +// goto err; +// } // construct text file name if (argc == 3) { diff -ur xpdf-0.92.orig/xpdf/xpdf.cc xpdf-0.92/xpdf/xpdf.cc --- xpdf-0.92.orig/xpdf/xpdf.cc Mon Dec 4 05:28:07 2000 +++ xpdf-0.92/xpdf/xpdf.cc Fri May 18 10:00:41 2001 @@ -1225,12 +1225,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 @@ -2121,16 +2121,16 @@ // do the PostScript output psDialog->setBusyCursor(gTrue); win->setBusyCursor(gTrue); - if (doc->okToPrint()) { +// if (doc->okToPrint()) { psOut = new PSOutputDev(psFileName->getCString(), doc->getCatalog(), psFirstPage, psLastPage, gTrue, gFalse); if (psOut->isOk()) { 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); @@ -2269,10 +2269,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: