68 lines
1.9 KiB
Text
68 lines
1.9 KiB
Text
Index: poppler/XRef.cc
|
|
--- poppler/XRef.cc.orig
|
|
+++ poppler/XRef.cc
|
|
@@ -1110,7 +1110,7 @@ bool XRef::isRefEncrypted(Ref r)
|
|
|
|
bool XRef::okToPrint(bool ignoreOwnerPW) const
|
|
{
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permPrint);
|
|
+ return true;
|
|
}
|
|
|
|
// we can print at high res if we are only doing security handler revision
|
|
@@ -1118,48 +1118,37 @@ bool XRef::okToPrint(bool ignoreOwnerPW) const
|
|
// 3 and we are allowed to print, and bit 12 is set.
|
|
bool XRef::okToPrintHighRes(bool ignoreOwnerPW) const
|
|
{
|
|
- 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 false;
|
|
- }
|
|
- } else {
|
|
- return true;
|
|
- }
|
|
+ return true;
|
|
}
|
|
|
|
bool XRef::okToChange(bool ignoreOwnerPW) const
|
|
{
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permChange);
|
|
+ return true;
|
|
}
|
|
|
|
bool XRef::okToCopy(bool ignoreOwnerPW) const
|
|
{
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permCopy);
|
|
+ return true;
|
|
}
|
|
|
|
bool XRef::okToAddNotes(bool ignoreOwnerPW) const
|
|
{
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permNotes);
|
|
+ return true;
|
|
}
|
|
|
|
bool XRef::okToFillForm(bool ignoreOwnerPW) const
|
|
{
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permFillForm);
|
|
+ return true;
|
|
}
|
|
|
|
bool XRef::okToAccessibility(bool ignoreOwnerPW) const
|
|
{
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permAccessibility);
|
|
+ return true;
|
|
}
|
|
|
|
bool XRef::okToAssemble(bool ignoreOwnerPW) const
|
|
{
|
|
- return (!ignoreOwnerPW && ownerPasswordOk) || (permFlags & permAssemble);
|
|
+ return true;
|
|
}
|
|
|
|
Object XRef::getCatalog()
|