changeset 5210:e167f58601ef

pdf indexing filter: use quiet operation to work around problems
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 06 Oct 2009 21:31:57 +0200
parents b072085c6acd
children de38d8179cb2
files MoinMoin/filter/application_pdf.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/filter/application_pdf.py	Sun Oct 04 14:37:59 2009 +0200
+++ b/MoinMoin/filter/application_pdf.py	Tue Oct 06 21:31:57 2009 +0200
@@ -13,5 +13,9 @@
 from MoinMoin.filter import execfilter
 
 def execute(indexobj, filename):
-    return execfilter("pdftotext -enc UTF-8 %s -", filename)
+    # using -q switch to get quiet operation (no messages, no errors),
+    # because poppler-utils pdftotext on Debian/Etch otherwise generates
+    # lots of output on stderr (e.g. 10MB stderr output) and that causes
+    # problems in current execfilter implementation.
+    return execfilter("pdftotext -q -enc UTF-8 %s -", filename)