diff options
-rw-r--r-- | app/models/incoming_message.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 410d1039f..45089e0a7 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -19,7 +19,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: incoming_message.rb,v 1.225 2009-09-17 21:10:05 francis Exp $ +# $Id: incoming_message.rb,v 1.226 2009-09-22 18:28:39 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel @@ -318,7 +318,7 @@ class FOIAttachment html = File.read(tempfile.path + ".html") File.unlink(tempfile.path + ".html") elsif self.content_type == 'application/pdf' - IO.popen("/usr/bin/pdftohtml -zoom 1.0 -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child| + IO.popen("/usr/bin/pdftohtml -nodrm -zoom 1.0 -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child| html = child.read() end @@ -328,7 +328,7 @@ class FOIAttachment if html.size == 0 system("/usr/bin/pdf2ps " + tempfile.path + " " + tempfile.path + ".ps") system("/usr/bin/ps2pdf " + tempfile.path + ".ps " + tempfile.path) - IO.popen("/usr/bin/pdftohtml -zoom 1.0 -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child| + IO.popen("/usr/bin/pdftohtml -nodrm -zoom 1.0 -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child| html = child.read() end end |