[poppler] regtest/backends
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Fri Dec 4 02:09:21 PST 2015
regtest/backends/cairo.py | 2 +-
regtest/backends/postscript.py | 2 +-
regtest/backends/splash.py | 2 +-
regtest/backends/text.py | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 9ef565d0302ad4a36c53d7cd3251bff6a53070ea
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Fri Dec 4 11:08:45 2015 +0100
regtest: Pass always both the owner and user passwords to the tools
diff --git a/regtest/backends/cairo.py b/regtest/backends/cairo.py
index 818ac3b..3dd9c79 100644
--- a/regtest/backends/cairo.py
+++ b/regtest/backends/cairo.py
@@ -30,7 +30,7 @@ class Cairo(Backend):
out_path = os.path.join(refs_path, 'cairo')
cmd = [self._pdftocairo, '-cropbox', '-r', '72', '-png', doc_path, out_path]
if password is not None:
- cmd.extend(['-opw', password])
+ cmd.extend(['-opw', password, '-upw', password])
p = subprocess.Popen(cmd, stderr = subprocess.PIPE)
return self._check_exit_status(p, out_path)
diff --git a/regtest/backends/postscript.py b/regtest/backends/postscript.py
index f9547cd..c7e8b61 100644
--- a/regtest/backends/postscript.py
+++ b/regtest/backends/postscript.py
@@ -30,7 +30,7 @@ class PostScript(Backend):
out_path = os.path.join(refs_path, 'postscript')
cmd = [self._pdftops, doc_path, out_path + '.ps']
if password is not None:
- cmd.extend(['-opw', password])
+ cmd.extend(['-opw', password, '-upw', password])
p = subprocess.Popen(cmd, stderr = subprocess.PIPE)
return self._check_exit_status(p, out_path)
diff --git a/regtest/backends/splash.py b/regtest/backends/splash.py
index f107198..54f88f9 100644
--- a/regtest/backends/splash.py
+++ b/regtest/backends/splash.py
@@ -30,7 +30,7 @@ class Splash(Backend):
out_path = os.path.join(refs_path, 'splash')
cmd = [self._pdftoppm, '-cropbox', '-r', '72', '-png', doc_path, out_path]
if password is not None:
- cmd.extend(['-opw', password])
+ cmd.extend(['-opw', password, '-upw', password])
p = subprocess.Popen(cmd, stderr = subprocess.PIPE)
return self._check_exit_status(p, out_path)
diff --git a/regtest/backends/text.py b/regtest/backends/text.py
index 8aa59fa..e36f486 100644
--- a/regtest/backends/text.py
+++ b/regtest/backends/text.py
@@ -30,7 +30,7 @@ class Text(Backend):
out_path = os.path.join(refs_path, 'text')
cmd = [self._pdftotext, doc_path, out_path + '.txt']
if password is not None:
- cmd.extend(['-opw', password])
+ cmd.extend(['-opw', password, '-upw', password])
p = subprocess.Popen(cmd, stderr = subprocess.PIPE)
return self._check_exit_status(p, out_path)
More information about the poppler
mailing list