diff -ur xpdf-0.92/xpdf/pdfimages.cc xpdf-0.92-colin/xpdf/pdfimages.cc --- xpdf-0.92/xpdf/pdfimages.cc Mon Dec 4 05:28:07 2000 +++ xpdf-0.92-colin/xpdf/pdfimages.cc Thu Apr 10 16:28:01 2003 @@ -95,12 +95,6 @@ goto err; } - // check for copy permission - if (!doc->okToCopy()) { - error(-1, "Copying of images from this document is not allowed."); - goto err; - } - // get page range if (firstPage < 1) firstPage = 1; diff -ur xpdf-0.92/xpdf/pdftops.cc xpdf-0.92-colin/xpdf/pdftops.cc --- xpdf-0.92/xpdf/pdftops.cc Mon Dec 4 05:28:07 2000 +++ xpdf-0.92-colin/xpdf/pdftops.cc Thu Apr 10 16:27:53 2003 @@ -120,12 +120,6 @@ goto err1; } - // check for print permission - if (!doc->okToPrint()) { - error(-1, "Printing this document is not allowed."); - goto err1; - } - // construct PostScript file name if (argc == 3) { psFileName = new GString(argv[2]); diff -ur xpdf-0.92/xpdf/pdftotext.cc xpdf-0.92-colin/xpdf/pdftotext.cc --- xpdf-0.92/xpdf/pdftotext.cc Mon Dec 4 05:28:07 2000 +++ xpdf-0.92-colin/xpdf/pdftotext.cc Thu Apr 10 16:27:46 2003 @@ -112,12 +112,6 @@ goto err; } - // check for copy permission - if (!doc->okToCopy()) { - error(-1, "Copying of text from this document is not allowed."); - goto err; - } - // construct text file name if (argc == 3) { textFileName = new GString(argv[2]); diff -ur xpdf-0.92/xpdf/xpdf.cc xpdf-0.92-colin/xpdf/xpdf.cc --- xpdf-0.92/xpdf/xpdf.cc Mon Dec 4 05:28:07 2000 +++ xpdf-0.92-colin/xpdf/xpdf.cc Thu Apr 10 16:27:40 2003 @@ -1225,12 +1225,8 @@ // selection if (selectXMin < selectXMax && selectYMin < selectYMax) { #ifndef NO_TEXT_SELECT - 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."); - } + s = out->getText(selectXMin, selectYMin, selectXMax, selectYMax); + win->setSelection(NULL, s); #endif // link @@ -2121,16 +2117,12 @@ // do the PostScript output psDialog->setBusyCursor(gTrue); win->setBusyCursor(gTrue); - 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."); + psOut = new PSOutputDev(psFileName->getCString(), doc->getCatalog(), + psFirstPage, psLastPage, gTrue, gFalse); + if (psOut->isOk()) { + doc->displayPages(psOut, psFirstPage, psLastPage, 72, 0, gFalse); } + delete psOut; delete psDialog; win->setBusyCursor(gFalse);