73d60475aa
ok ajacoutot@ landry@
62 lines
1.9 KiB
Plaintext
62 lines
1.9 KiB
Plaintext
$OpenBSD: patch-poppler_XRef_cc,v 1.11 2013/01/21 19:08:00 kili Exp $
|
|
--- poppler/XRef.cc.orig Fri Dec 28 01:17:03 2012
|
|
+++ poppler/XRef.cc Fri Jan 18 19:23:05 2013
|
|
@@ -976,49 +976,38 @@ void XRef::getEncryptionParameters(Guchar **fileKeyA,
|
|
}
|
|
|
|
GBool XRef::okToPrint(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permPrint);
|
|
+ return gTrue;
|
|
}
|
|
|
|
// we can print at high res if we are only doing security handler revision
|
|
// 2 (and we are allowed to print at all), or with security handler rev
|
|
// 3 and we are allowed to print, and bit 12 is set.
|
|
GBool XRef::okToPrintHighRes(GBool ignoreOwnerPW) {
|
|
- if (encrypted) {
|
|
- if (2 == encRevision) {
|
|
- return (okToPrint(ignoreOwnerPW));
|
|
- } else if (encRevision >= 3) {
|
|
- return (okToPrint(ignoreOwnerPW) && (permFlags & permHighResPrint));
|
|
- } else {
|
|
- // something weird - unknown security handler version
|
|
- return gFalse;
|
|
- }
|
|
- } else {
|
|
- return gTrue;
|
|
- }
|
|
+ return gTrue;
|
|
}
|
|
|
|
GBool XRef::okToChange(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permChange);
|
|
+ return gTrue;
|
|
}
|
|
|
|
GBool XRef::okToCopy(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permCopy);
|
|
+ return gTrue;
|
|
}
|
|
|
|
GBool XRef::okToAddNotes(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permNotes);
|
|
+ return gTrue;
|
|
}
|
|
|
|
GBool XRef::okToFillForm(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permFillForm);
|
|
+ return gTrue;
|
|
}
|
|
|
|
GBool XRef::okToAccessibility(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permAccessibility);
|
|
+ return gTrue;
|
|
}
|
|
|
|
GBool XRef::okToAssemble(GBool ignoreOwnerPW) {
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permAssemble);
|
|
+ return gTrue;
|
|
}
|
|
|
|
Object *XRef::getCatalog(Object *catalog) {
|