summaryrefslogtreecommitdiff
path: root/regtest/backends/text.py
diff options
context:
space:
mode:
Diffstat (limited to 'regtest/backends/text.py')
-rw-r--r--regtest/backends/text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/regtest/backends/text.py b/regtest/backends/text.py
index 8aa59fac..e36f4863 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)