remove DRM bullshit.

--
From: cloder@
This commit is contained in:
brad 2003-10-24 19:31:57 +00:00
parent 52612f8005
commit 774e18ab50
6 changed files with 113 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.34 2003/06/19 12:00:47 brad Exp $
# $OpenBSD: Makefile,v 1.35 2003/10/24 19:31:57 brad Exp $
COMMENT= "PDF viewer for X"
DISTNAME= xpdf-2.02pl1
PKGNAME= ${DISTNAME}p1
CATEGORIES= textproc x11
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/

View File

@ -0,0 +1,45 @@
$OpenBSD: patch-xpdf_XPDFCore_cc,v 1.1 2003/10/24 19:31:57 brad Exp $
--- xpdf/XPDFCore.cc.orig 2003-10-23 22:54:49.000000000 -0700
+++ xpdf/XPDFCore.cc 2003-10-23 22:56:34.000000000 -0700
@@ -970,9 +970,6 @@ void XPDFCore::moveSelection(int mx, int
// global variables (currentSelection and currentSelectionOwner).
void XPDFCore::copySelection() {
- if (!doc->okToCopy()) {
- return;
- }
if (currentSelection) {
delete currentSelection;
}
@@ -1027,9 +1024,6 @@ GBool XPDFCore::getSelection(int *xMin,
}
GString *XPDFCore::extractText(int xMin, int yMin, int xMax, int yMax) {
- if (!doc->okToCopy()) {
- return NULL;
- }
return out->getText(xMin, yMin, xMax, yMax);
}
@@ -1038,9 +1032,6 @@ GString *XPDFCore::extractText(int pageN
TextOutputDev *textOut;
GString *s;
- if (!doc->okToCopy()) {
- return NULL;
- }
textOut = new TextOutputDev(NULL, gTrue, gFalse, gFalse);
if (!textOut->isOk()) {
delete textOut;
@@ -1680,11 +1671,7 @@ void XPDFCore::inputCbk(Widget widget, X
#ifndef NO_TEXT_SELECT
if (core->selectXMin != core->selectXMax &&
core->selectYMin != core->selectYMax) {
- if (core->doc->okToCopy()) {
core->copySelection();
- } else {
- error(-1, "Copying of text from this document is not allowed.");
- }
}
#endif
}

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-xpdf_XPDFViewer_cc,v 1.1 2003/10/24 19:31:57 brad Exp $
--- xpdf/XPDFViewer.cc.orig 2003-10-23 22:55:18.000000000 -0700
+++ xpdf/XPDFViewer.cc 2003-10-23 22:55:31.000000000 -0700
@@ -2132,11 +2132,6 @@ void XPDFViewer::printPrintCbk(Widget wi
PSOutputDev *psOut;
doc = viewer->core->getDoc();
- if (!doc->okToPrint()) {
- error(-1, "Printing this document is not allowed.");
- return;
- }
-
viewer->core->setBusyCursor(gTrue);
XtVaGetValues(viewer->printWithCmdBtn, XmNset, &withCmd, NULL);

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-xpdf_pdfimages_cc,v 1.1 2003/10/24 19:31:57 brad Exp $
--- xpdf/pdfimages.cc.orig 2003-10-23 22:57:28.000000000 -0700
+++ xpdf/pdfimages.cc 2003-10-23 22:57:36.000000000 -0700
@@ -118,13 +118,6 @@ int main(int argc, char *argv[]) {
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;

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-xpdf_pdftops_cc,v 1.1 2003/10/24 19:31:57 brad Exp $
--- xpdf/pdftops.cc.orig 2003-10-23 22:55:51.000000000 -0700
+++ xpdf/pdftops.cc 2003-10-23 22:56:02.000000000 -0700
@@ -242,13 +242,6 @@ int main(int argc, char *argv[]) {
goto err1;
}
- // check for print permission
- if (!doc->okToPrint()) {
- error(-1, "Printing this document is not allowed.");
- exitCode = 3;
- goto err1;
- }
-
// construct PostScript file name
if (argc == 3) {
psFileName = new GString(argv[2]);

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-xpdf_pdftotext_cc,v 1.1 2003/10/24 19:31:57 brad Exp $
--- xpdf/pdftotext.cc.orig 2003-10-23 22:54:11.000000000 -0700
+++ xpdf/pdftotext.cc 2003-10-23 22:54:26.000000000 -0700
@@ -154,13 +154,6 @@ int main(int argc, char *argv[]) {
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]);