aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorfrancis <francis>2008-10-29 11:26:32 +0000
committerfrancis <francis>2008-10-29 11:26:32 +0000
commit74593b511dadc5537c62be83d5cfcb63dce75327 (patch)
treeb29b7bb292c6b22cba4afec09330320336bf5b05 /app/models
parentfa25bd2ffd75dd9e072f24fbd41bc160225a674e (diff)
Zoom of only 1.0 for pdftohtml.
Set max width for images in HTML preview, so fit on screen.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/incoming_message.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 8802899ae..a0e423f45 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.162 2008-10-29 11:13:04 francis Exp $
+# $Id: incoming_message.rb,v 1.163 2008-10-29 11:26:32 francis Exp $
# TODO
# Move some of the (e.g. quoting) functions here into rblib, as they feel
@@ -176,7 +176,7 @@ class FOIAttachment
html = File.read(tempfile.path + ".html")
File.unlink(tempfile.path + ".html")
elsif content_type == 'application/pdf'
- IO.popen("/usr/bin/pdftohtml -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child|
+ IO.popen("/usr/bin/pdftohtml -zoom 1.0 -stdout -enc UTF-8 -noframes " + tempfile.path + "", "r") do |child|
html = child.read() + "\n\n"
end
else