My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 81 attachment: 0001-Add-missing-argument-to-CheckNotEncrypted.patch (919 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 1d6cdc4902e403095261dd26279f67dcf707c5e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= <rbrito@ime.usp.br>
Date: Thu, 28 Feb 2013 00:01:47 -0300
Subject: [PATCH 1/2] Add missing argument to CheckNotEncrypted.

---
trunk/pdfsizeopt.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trunk/pdfsizeopt.py b/trunk/pdfsizeopt.py
index 5e3a8b2..44617f8 100755
--- a/trunk/pdfsizeopt.py
+++ b/trunk/pdfsizeopt.py
@@ -3681,7 +3681,7 @@ class PdfData(object):
self.trailer.Set('Prev', None)
if 'xref' in obj_starts:
last_ofs = min(trailer_ofs, obj_starts.pop('xref'))
- self.CheckNotEncrypted(self.trailer) # Also raised earlier.
+ self.CheckNotEncrypted(self.trailer, self.file_name) # Also raised earlier.
except PdfFileEncryptedError:
# TODO(pts): Add decrypted input support.
raise NotImplementedError(
--
1.7.10.4

Powered by Google Project Hosting