- disable the DRM bits from KPDF like it was done for xpdf

from brad@
This commit is contained in:
ajacoutot 2008-05-21 09:46:18 +00:00
parent 3f4a7954ad
commit 62b275629a
2 changed files with 29 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.80 2008/04/11 11:24:03 jasper Exp $
# $OpenBSD: Makefile,v 1.81 2008/05/21 09:46:18 ajacoutot Exp $
COMMENT-main= K Desktop Environment, graphic applications
COMMENT-kamera= KDE interface to digital cameras
@ -14,7 +14,7 @@ SEPARATE_BUILD=flavored
MULTI_PACKAGES=-main -kpov -kamera -sane
PKGNAME=${DISTNAME}
PKGNAME-main= ${DISTNAME}p0
PKGNAME-main= ${DISTNAME}p1
PKGNAME-kamera= kamera-${VERSION}
PKGNAME-kpov= kpovmodeller-${VERSION}
PKGNAME-sane= ksane-${VERSION}

View File

@ -0,0 +1,27 @@
$OpenBSD: patch-kpdf_xpdf_xpdf_XRef_cc,v 1.1 2008/05/21 09:46:18 ajacoutot Exp $
--- kpdf/xpdf/xpdf/XRef.cc.orig Fri Apr 25 18:17:39 2008
+++ kpdf/xpdf/xpdf/XRef.cc Fri Apr 25 18:18:22 2008
@@ -771,19 +771,19 @@ void XRef::setEncryption(int permFlagsA, GBool ownerPa
}
GBool XRef::okToPrint(GBool ignoreOwnerPW) {
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permPrint);
+ return (1);
}
GBool XRef::okToChange(GBool ignoreOwnerPW) {
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permChange);
+ return (1);
}
GBool XRef::okToCopy(GBool ignoreOwnerPW) {
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permCopy);
+ return (1);
}
GBool XRef::okToAddNotes(GBool ignoreOwnerPW) {
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permNotes);
+ return (1);
}
Object *XRef::fetch(int num, int gen, Object *obj) {