From bee52d71bf1f5a2178afab5a78f8de7ddbefda42 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 12 Feb 2015 17:29:20 +0000 Subject: Set binary mode to false in call to pdftohtml We want the HTML to be encoding in the default encoding so that it can be combined with other strings. --- lib/attachment_to_html/adapters/pdf.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/attachment_to_html') diff --git a/lib/attachment_to_html/adapters/pdf.rb b/lib/attachment_to_html/adapters/pdf.rb index b91958c52..3183d1fd0 100644 --- a/lib/attachment_to_html/adapters/pdf.rb +++ b/lib/attachment_to_html/adapters/pdf.rb @@ -73,11 +73,10 @@ module AttachmentToHTML html = AlaveteliExternalCommand.run("pdftohtml", "-nodrm", "-zoom", "1.0", "-stdout", "-enc", "UTF-8", - "-noframes", tempfile.path, :timeout => 30 + "-noframes", tempfile.path, :timeout => 30, :binary_output => false ) cleanup_tempfile(tempfile) - html end end -- cgit v1.2.3