diff --git a/lib/heathen/processor_methods/libreoffice.rb b/lib/heathen/processor_methods/libreoffice.rb index 7c1c917..5e826ec 100644 --- a/lib/heathen/processor_methods/libreoffice.rb +++ b/lib/heathen/processor_methods/libreoffice.rb @@ -47,7 +47,6 @@ def libreoffice( format: ) target_file = "#{job.content_file}.#{to_suffix}" if to_suffix == 'txt' - pdf_file = "#{job.content_file}.pdf" executioner.execute( 'libreoffice', '--convert-to', 'pdf', @@ -58,7 +57,7 @@ def libreoffice( format: ) executioner.execute( 'pdftotext', - pdf_file, + "#{job.content_file}.pdf", target_file ) else