*** ./xpdf-3.01/xpdf/PDFCore.cc Wed Aug 17 01:34:31 2005 --- ./xpdf-3.01/xpdf/PDFCore.cc-new Wed May 3 15:10:43 2006 *************** *** 1272,1281 **** TextOutputDev *textOut; int x0, y0, x1, y1, t; GString *s; ! if (!doc->okToCopy()) { return NULL; } if ((page = findPage(pg))) { cvtUserToDev(pg, xMin, yMin, &x0, &y0); cvtUserToDev(pg, xMax, yMax, &x1, &y1); --- 1272,1282 ---- TextOutputDev *textOut; int x0, y0, x1, y1, t; GString *s; ! #ifdef OKTOCOPY if (!doc->okToCopy()) { return NULL; } + #endif if ((page = findPage(pg))) { cvtUserToDev(pg, xMin, yMin, &x0, &y0); cvtUserToDev(pg, xMax, yMax, &x1, &y1); *** ./xpdf-3.01/xpdf/XPDFCore.cc Wed Aug 17 01:34:31 2005 --- ./xpdf-3.01/xpdf/XPDFCore.cc-new Wed May 3 15:13:48 2006 *************** *** 376,385 **** void XPDFCore::copySelection() { int pg; double ulx, uly, lrx, lry; ! if (!doc->okToCopy()) { return; } if (getSelection(&pg, &ulx, &uly, &lrx, &lry)) { //~ for multithreading: need a mutex here if (currentSelection) { --- 376,386 ---- void XPDFCore::copySelection() { int pg; double ulx, uly, lrx, lry; ! #ifdef OKTOCOPY if (!doc->okToCopy()) { return; } + #endif if (getSelection(&pg, &ulx, &uly, &lrx, &lry)) { //~ for multithreading: need a mutex here if (currentSelection) { *** ./xpdf-3.01/xpdf/pdfimages.cc Wed Aug 17 01:34:31 2005 --- ./xpdf-3.01/xpdf/pdfimages.cc-new Wed May 3 15:15:13 2006 *************** *** 117,130 **** exitCode = 1; goto err1; } ! // check for copy permission if (!doc->okToCopy()) { error(-1, "Copying of images from this document is not allowed."); exitCode = 3; goto err1; } ! // get page range if (firstPage < 1) firstPage = 1; --- 117,130 ---- exitCode = 1; goto err1; } ! #ifdef OKTOCOPY // check for copy permission if (!doc->okToCopy()) { error(-1, "Copying of images from this document is not allowed."); exitCode = 3; goto err1; } ! #endif // get page range if (firstPage < 1) firstPage = 1; *** ./xpdf-3.01/xpdf/pdftotext.cc Wed Aug 17 01:34:31 2005 --- ./xpdf-3.01/xpdf/pdftotext.cc-new Wed May 3 15:15:57 2006 *************** *** 159,172 **** exitCode = 1; goto err2; } ! // check for copy permission 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) { textFileName = new GString(argv[2]); --- 159,172 ---- exitCode = 1; goto err2; } ! #ifdef OKTOCOPY // check for copy permission if (!doc->okToCopy()) { error(-1, "Copying of text from this document is not allowed."); exitCode = 3; goto err2; } ! #endif // construct text file name if (argc == 3) { textFileName = new GString(argv[2]);