lib/grim/page.rb in grim-1.2.0 vs lib/grim/page.rb in grim-1.3.0
- old
+ new
@@ -48,9 +48,12 @@
# # => "This is text from slide 2.\n\nAnd even more text from slide 2."
#
# Returns a String.
#
def text
- `#{[@pdftotext_path, "-enc", "UTF-8", "-f", @number, "-l", @number, Shellwords.escape(@pdf.path), "-"].join(' ')}`
+ command = [@pdftotext_path, "-enc", "UTF-8", "-f", @number, "-l", @number, Shellwords.escape(@pdf.path), "-"].join(' ')
+ Grim.logger.debug { "Running pdftotext command" }
+ Grim.logger.debug { command }
+ `#{command}`
end
end
end