curationexperts / trove

Digital Image Library based on Tufts repository models
0 stars 2 forks source link

Trove fails to properly export course collection to PDF #219

Closed mkorcy closed 9 years ago

mkorcy commented 9 years ago

(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