This patch removes the support for copy and paste protection from pdf documents. To apply: cd xpdf-0.xx/ patch -p1 < xpdf-ro-remove.patch diff -ruN xpdf-0.92/xpdf/pdftotext.cc xpdf-ro-removed-0.92/xpdf/pdftotext.cc --- xpdf-0.92/xpdf/pdftotext.cc Mon Dec 4 05:28:07 2000 +++ xpdf-ro-removed-0.92/xpdf/pdftotext.cc Tue Jul 3 18:34:22 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 -ruN xpdf-0.92/xpdf/xpdf.cc xpdf-ro-removed-0.92/xpdf/xpdf.cc --- xpdf-0.92/xpdf/xpdf.cc Mon Dec 4 05:28:07 2000 +++ xpdf-ro-removed-0.92/xpdf/xpdf.cc Tue Jul 3 18:39:29 2001 @@ -1229,7 +1229,9 @@ s = out->getText(selectXMin, selectYMin, selectXMax, selectYMax); win->setSelection(NULL, s); } else { - error(-1, "Copying of text from this document is not allowed."); + error(-1, "Copying of text from this document is not allowed, but possible :-)."); + s = out->getText(selectXMin, selectYMin, selectXMax, selectYMax); + win->setSelection(NULL, s); } #endif