This patch enables fair-use operations. --- xpdf-3.04.old/xpdf/XRef.cc +++ xpdf-3.04/xpdf/XRef.cc @@ -958,19 +958,19 @@ } 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, int recursion) {