(I already have a fix for this after looking at it in the console but I'm just logging the issue.)
The Rails log shows:
RuntimeError: There was an error generating the PDF file:
but with no details.
Rails Console shows:
sh: -c: line 0: syntax error near unexpected token (' sh: -c: line 0:soffice --headless --invisible --convert-to pdf --outdir /home/hydradm/tufts-image-library/tmp/exports/2015_01_14_105435 /home/hydradm/tufts-image-library/tmp/exports/2015_01_14_105435/rococo_toromanticism(prof._andrew_mc_clellan)20150114-27230-1yi59ua.pptx 2>&1'
RuntimeError: There was an error generating the PDF file:
from /home/hydradm/tufts-image-library/app/exporters/pdf_collection_exporter.rb:15:in export' from (irb):3 from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands/console.rb:90:instart'
from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands/console.rb:9:in start' from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:69:inconsole'
from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:in run_command!' from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands.rb:17:in<top (required)>'
from bin/rails:8:in require' from bin/rails:8:in'
2.1.2 :004 > quit
(I already have a fix for this after looking at it in the console but I'm just logging the issue.)
The Rails log shows: RuntimeError: There was an error generating the PDF file: but with no details.
Rails Console shows:
sh: -c: line 0: syntax error near unexpected token'
2.1.2 :004 > quit
(' sh: -c: line 0:
soffice --headless --invisible --convert-to pdf --outdir /home/hydradm/tufts-image-library/tmp/exports/2015_01_14_105435 /home/hydradm/tufts-image-library/tmp/exports/2015_01_14_105435/rococo_toromanticism(prof._andrew_mc_clellan)20150114-27230-1yi59ua.pptx 2>&1' RuntimeError: There was an error generating the PDF file: from /home/hydradm/tufts-image-library/app/exporters/pdf_collection_exporter.rb:15:inexport' from (irb):3 from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands/console.rb:90:in
start' from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands/console.rb:9:instart' from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:69:in
console' from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands/commands_tasks.rb:40:inrun_command!' from /home/hydradm/.rvm/gems/ruby-2.1.2@tdil/gems/railties-4.1.6/lib/rails/commands.rb:17:in
<top (required)>' from bin/rails:8:inrequire' from bin/rails:8:in